Posts Tagged “css”
permalinkWhat's new in CSS Selectors 4
Please note that this article is written about an Editor’s Draft of a specification as of January 2015, which means the information may change without notice
CSS Selectors Level 4 is the next iteration of the CSS selector spec, the last version of which was made a recommendation in 2011 after being a working draft for a number of years.
So, what’s new?
Selector Profiles
(Ab)using CSS3's :nth-child selector to invent new ones
If you find this interesting, read more about CSS Selectors Level 4 which will offer you even more tools for stylesheet development.
CSS3’s :nth-child and :nth-last-child selectors are powerful: not only can they replace :first-child and :last-child, but they can style more complex patterns like the first (or all but the first) three children, every fourth child, or combinations of the pattern “a*n+b”.