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)
20 lines
443 B
HTML
20 lines
443 B
HTML
<!doctype html>
|
|
<link rel="match" href="reference/css-has-subsequent-sibling.html" />
|
|
<style>
|
|
a:has(~ span) {
|
|
color: orange;
|
|
}
|
|
</style>
|
|
<div>
|
|
<a href="https://example.com">Link</a><span>Hello!</span>
|
|
</div>
|
|
<div>
|
|
<a href="https://example.com">Link</a><em>Hello!</em>
|
|
</div>
|
|
<div>
|
|
<a href="https://example.com">Link</a><em>Hello</em><span>world!</span>
|
|
</div>
|
|
<div>
|
|
<a href="https://example.com">Link</a>
|
|
</div>
|