Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

What CSS still needs in August 2022

What CSS still needs in August 2022

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 by jamiebalfour04 in The Web
Powered by DASH 2.0
Scan and keep for the latest article or review every time!