mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 01:47:00 +02:00
See https://drafts.csswg.org/selectors-4/#relational. (cherry picked from commit f63a945ba0300551417c740e450957f29c9b73d1)
12 lines
439 B
HTML
12 lines
439 B
HTML
<!doctype html>
|
|
<link rel="match" href="reference/css-has-compound.html" />
|
|
<style>
|
|
a:has(span.nice > em) {
|
|
color: orange;
|
|
}
|
|
</style>
|
|
<a href="https://example.com"><em><span class="nice"><em>Link</em></span></em></a>
|
|
<a href="https://example.com"><em>Link</em></a>
|
|
<a href="https://example.com"><em><span class="hello"><em>Link</em></span></em></a>
|
|
<a href="https://example.com"><em><span class="nice">Link</span></em></a>
|