mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
When we generate pseudo elements, we create anonymous wrappers that might end up in an InlineNode, even if they have `display: block` set. This causes them not to be rendered. Do not rely on inline continuation logic for these anonymous wrappers, but rather find the first layout parent that's not an InlineNode and insert it into that. Fixes #5042.
11 lines
157 B
HTML
11 lines
157 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
span::after {
|
|
background: green;
|
|
content: "";
|
|
display: block;
|
|
height: 50px;
|
|
width: 50px;
|
|
}
|
|
</style>
|
|
<span>foobar
|