LibWeb: Don't crash on encountering display: list-item on pseudo element

On any `display: list-item` Node a CSS pseudo element (`::marker`) needs
to be created. This commit allows the ::maker pseudo element to be
nested within other pseudo elements (e. g. ::before or ::after).

This fixes this WPT test:
http://wpt.live/css/CSS2/generated-content/after-content-display-003.xht
This commit is contained in:
Simon König 2024-10-15 23:07:58 +02:00 committed by Sam Atkins
commit 15d2857a01
Notes: github-actions[bot] 2024-10-17 06:43:58 +00:00
3 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<style>
div::after {
content: "Filler Text";
display: list-item;
margin-left: 1em;
}
</style>
<div>Filler text</div>