Filtering all posts in Css

28 April 2017
25 February 2017

How CSS selector specificity is calculated

I spent the end of this week working on Readership’s exporting tools, more specifically the CSS inliner.

To make sure that the correct styles are applied when multiple selectors with a common property match the same element, I needed to calculate the specificity of each individual selector, keeping only the declaration of the one with the highest specificity.

Continue Reading →

You can keep up to date with new posts by subscribing to the RSS Feed or by following me on Micro.blog.