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

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
css
Comments

There are no comments on this page.

New comment

Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you.

Comments powered by BalfComment

Powered by DASH 2.0
Scan and keep for the latest article or review every time!
https://www.jamiebalfour.scot/redirect/action/latest-article/