mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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:
parent
806e08425a
commit
c0b4083b02
Notes:
sideshowbarker
2024-07-16 22:11:09 +09:00
Author: https://github.com/awesomekling
Commit: c0b4083b02
Pull-request: https://github.com/SerenityOS/serenity/pull/18538
3 changed files with 40 additions and 3 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue