1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 13:55:08 +00:00
serenity/Tests/LibWeb/Layout/input/css-pseudo-element-blockification.html
Andreas Kling c0b4083b02 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.)
2023-04-27 18:29:02 +02:00

15 lines
No EOL
197 B
HTML

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