mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 01:12:45 +00:00
This was mainly a matter of deferring the wrapping of the button's children until after its internal layout tree has been constructed. That way we don't lose any pseudo elements spawned along the way. Fixes #2397. Fixes #2399.
5 lines
188 B
HTML
5 lines
188 B
HTML
<!doctype html><style>
|
|
*, ::before, ::after { outline: 1px solid black; }
|
|
button:before { content: "foo"; }
|
|
button:after { content: "baz"; }
|
|
</style><body><button>bar</button>
|