serenity/Tests/LibWeb/Ref/css-has-descendant.html
Diego Frias e4d3b9060a LibWeb: Implement the :has() pseudo-class
See https://drafts.csswg.org/selectors-4/#relational.

(cherry picked from commit f63a945ba0300551417c740e450957f29c9b73d1)
2024-07-21 11:10:11 -04:00

9 lines
251 B
HTML

<!doctype html>
<link rel="match" href="reference/css-has-descendant.html" />
<style>
a:has(span) {
color: orange;
}
</style>
<a href="https://example.com"><em><span>Link</span></em></a>
<a href="https://example.com"><em>Link</em></a>