Child-indexed pseudo-classes matching elements without a parent

Change how the child-indexed pseudo-class selectors are matched so they also match elements without a parent. This is a change in the spec from selectors-3 to selectors-4. The reasoning for this is explained in the spec.

Demo

Specification

Working draft or equivalent

Status in Chromium

Blink


Enabled by default (launch bug) in:

  • Chrome for desktop release 57
  • Chrome for Android release 57
  • Chrome for iOS release 57
  • Android WebView release 57
  • Opera release 44
  • Opera for Android release 44

Consensus & Standardization

  • Shipped
  • No public signals
  • No public signals
  • No signals

Owner

Last updated on 2017-06-14