css-nth-child-of "Can I use..." widgets
The newest versions of :nth-child()
and :nth-last-child()
accept an optional of S
clause which filters the children to only those which match the selector list S
. For example, :nth-child(1 of .foo)
selects the first child among the children that have the foo
class (ignoring any non-foo
children which precede that child). Similar to :nth-of-type
, but for arbitrary selectors instead of only type selectors.
What browser do support css-nth-child-of widget
Add this code to your website
<script data-feature="css-nth-child-of" defer src="https://cdn.caniusewidgets.com/scripts/overviewtable.js"></script>
to display the following widget
⇓
How many browsers globally do support css-nth-child-of widget
Add this code to your website
<script data-feature="css-nth-child-of" defer src="https://cdn.caniusewidgets.com/scripts/browsersupport.js"></script>
to display the following widget
⇓
Is css-nth-child-of supported in my browser widget
Add this code to your website
<script data-feature="css-nth-child-of" defer src="https://cdn.caniusewidgets.com/scripts/single.js"></script>
to display the following widget
⇓
caniusewidgets.com/css-nth-child-of
Change caniuse.com to
caniusewidgets.com to
get to this page
Other interesting features: