Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/selectors/selector-structural-pseudo-root.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<style>
html { background: red; }
html:nth-child(1):nth-last-child(1):nth-of-type(1):nth-last-of-type(1):first-child:last-child:only-child:first-of-type:last-of-type:only-of-type { background: green; }
</style>
<link rel="match" href="selector-structural-pseudo-root-ref.html">
<meta name="assert" content="Structural pseudo-classes match the root element, sibling pseudos are based on siblings without needing a parent (Selectors 3 erratum)">