mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-15 03:16:44 +02:00
See https://drafts.csswg.org/selectors-4/#relational. (cherry picked from commit f63a945ba0300551417c740e450957f29c9b73d1)
13 lines
271 B
HTML
13 lines
271 B
HTML
<!doctype html>
|
|
<link rel="match" href="reference/css-pseudo-element-in-has.html" />
|
|
<style>
|
|
span::after {
|
|
content: "bar";
|
|
color: red;
|
|
}
|
|
a:has(::after) {
|
|
color: orange;
|
|
}
|
|
</style>
|
|
<a href="https://example.com"><span>foo</span></a>
|