LibWeb: Fix ::marker placement in tree

Fixes ::marker (pseudo-element) placement in the tree for list-items.

Previously:
- ::before
- content
- ::marker
- ::after

Now (matches Firefox, afaik per-spec):
- ::marker
- ::before
- content
- ::after
This commit is contained in:
Oliver Medhurst 2025-03-27 22:26:16 +00:00 committed by Andreas Kling
commit b272bb3373
Notes: github-actions[bot] 2025-03-27 23:11:17 +00:00
8 changed files with 83 additions and 34 deletions

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<style>
span {
display: list-item;
}
div {}
span::before {
content: "before";
}
span::after {
content: "after";
}
</style>
<span><div></div></span>