1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

LibWeb: Blockify pseudo elements that are flex items

When deciding on a box type transformation (blockify/inlinify) for a
pseudo element, we have to use the originating element as a reference
rather than the parent.

(The originating element *is* the parent for its pseudo elements.)
This commit is contained in:
Andreas Kling 2023-04-27 15:38:50 +02:00
parent 806e08425a
commit c0b4083b02
3 changed files with 40 additions and 3 deletions

View file

@ -0,0 +1,15 @@
<style>
* {
font: 16px SerenitySans;
}
.foo {
display: flex;
gap: 1ch;
}
.foo:before {
content: "well";
}
.foo:after {
content: "friends";
}
</style><div class="foo">hello</div>