Contact emails:
eco...@igalia.com
Spec:
https://drafts.csswg.org/selectors-4/#child-index
Summary:
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, but also worth noting
that this behavior makes those selectors work appropriately in shadow
trees.
Issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=675670
CL:
https://codereview.chromium.org/2588643004/
Is this feature supported on all six Blink platforms (Windows, Mac,
Linux, Chrome OS, Android, and Android WebView)?
Yes
Interoperability and Compatibility Risk:
This change made its way into Gecko a few months ago, see[1]. I would
be surprised if Edge or WebKit implemented it yet.
One known caveat is that this change breaks the Acid3 test, which
explicitly tests for this, see [2], though I don't consider that to be
a major problem (Acid3 has been adapted/fixed more times).
Worth noting that Gecko hasn't found any other web compat issues so
far.
It seems that the consensus is that this change is the way forward,
see the spec text and the discussion in[3].
[1]:
https://bugzil.la/1300374
[2]:
https://bugzil.la/1311329
[3]:
https://github.com/w3c/csswg-drafts/issues/695