Newer
Older
minerva / Tests / LibWeb / Ref / css-has-subsequent-sibling.html
@minerva minerva on 13 Jul 443 bytes Initial commit
<!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>