mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Like 1132c858e9, out-of-flow elements such
as float elements would get inserted into block level `::before` and
`::after` pseudo-element nodes when they should instead be inserted as a
sibling to the pseudo element. This change fixes that.
This fixes a few layout issues on the swedish tax agency website
(skatteverket.se). :^)
10 lines
156 B
HTML
10 lines
156 B
HTML
<!DOCTYPE html><style>
|
|
body::before {
|
|
content: "foo";
|
|
display: block;
|
|
}
|
|
div {
|
|
float: left;
|
|
}
|
|
</style><body><div>bar
|