CSS is always getting more and more features, but something that I have always thought is missing is an expression that allows or statements inline. For example:
div.content_zone p > img, div.content_zone p > span { }
With my idea, this could be more nicely written as:
div.content_zone p > (img, span) { }
The bracketed part here represents either img
or span
, meaning one selector needs to be written to affect both of them, not two. Not only is this nicer, but by being smaller it makes it more efficient, and thus faster to download.
Posted in The Web
Comments
Powered by DASH 2.0
Scan and keep for the latest article or review every time!