✍️ Here’s my list of things I wish CSS could gain in 2023. Get busy, browser makers! https://meyerweb.com/eric/thoughts/2023/02/08/css-wish-list-2023/
CSS Wish List 2023

In which I set out to write down a wish or two for CSS in 2023, and ended up with a list of sixt—no, wait, seventeen.

I FORGOT TO INCLUDE A THING (`hanging-punctuation`) so I’ve added it to the list. I’m up to 17 wishes now, gonna need a whole lotta genie lamps.
The wishing well 🤪 from Sam and Max Hit The Road PC Game

YouTube

@Meyerweb re: variables in media queries: there is a spec for this:
https://www.w3.org/TR/mediaqueries-5/#at-ruledef-custom-media

and a PostCSS plugin to use it: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-media

For my taste a bit more cumbersome to use than necessary, but close enough to be usable in some cases. Not yet natively supported anywhere, though.

Media Queries Level 5

@Meyerweb thumbs up on almost all of these. But what's "logical"? I haven't seen that before.
@sil As a keyword, it’s a thing I made up. As a concept, it means stuff like `margin-block` and `padding-inline` instead of `margin-top` or `padding-left`.
@Meyerweb aaaah, didn't realise that was the name for that change! gotcha, cheers
CSS Logical Properties and Values Level 1

@AmeliaBR @Meyerweb I have learned the proper name for this concept! Useful, thank you both :)
@Meyerweb @sil Wait… that was you?! You absolute beauty!
@oliverturner @sil No no, other people came up with logical properties. I just made up adding a keyword, which might not even be the right (or a good) way to do it.

@Meyerweb @sil Ohhh... gotcha! Of the many awesome ideas in your post it's still one of my faves though: hope it gets picked up 😀

Personally I'd love to see declarative scoping via the link element:
```
<link rel="stylesheet" href="/vendor.css" scope="vendor">
```

@Meyerweb That is a rock solid list. 👍

@Meyerweb Lots of goodies on this list, pretty much 100% on board for all of these!

For logical properties, I hope they just come up with something like `shorthand-mode: logical` (physical would be the initial value) that inherits so you can swap it if needed on a descendent…

Additive values sounds very interesting. I'd use it a lot for box-shadow for sure!

Heed our prayers, browser gods!

@Meyerweb When you mentioned having to inline an SVG to inherit colors, I no longer felt alone in this world. Excellent list.
A Call for ::nth-everything | CSS-Tricks

We already have ::first-letter and ::first-line which are useful. Why not expand those out into a full set of selectors that follow the same pattern of the ::nth-child family? I attempt to make the case here.

CSS-Tricks
@Meyerweb as someone who uses data attributes for everything, attr() everywhere would be mind blowingly powerful.
Adding to values like transforms in further rules is a great idea too.
@Meyerweb I’d love to see a way to deal with balancing ragged lines and rules to deal with widows and orphans.
CSS Anchor Positioning

@donnie Huh, I thought I‘d linked that. Whoops!
@Meyerweb I have never heard the term “masonry layout”. Do you have a pointer?
@a The warnings in this went out of date literally today, but: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Masonry_Layout
Masonry layout - CSS: Cascading Style Sheets | MDN

Level 3 of the CSS Grid Layout specification includes a masonry value for grid-template-columns and grid-template-rows. This guide details what masonry layout is, and how to use it.

@Meyerweb Oh, this looks great! Thanks.

@Meyerweb > Subgrid, masonry

Both in Fx already (and using). I'm currently having to think way harder than I should because the Blink team, which has the resources, is being a laggard on subgrid.

> Grid track styles

I'm also finding myself wanting say a background that can go 50% or 100% into the gap.

> Color shading and blending

I'm happy this is going the route it has correcting the gamma issue with blending colors in *most* tools, including Sass & Less.

P.S. typo @ "addd"

@Meyerweb
Scoped Imports is not my favorite solution. It might have not so semantic approach in a starter programmer hand. It is not a global style thing, modern frameworks (React, Vue) already have this feature. Restrictions besides style props. I do not like this idea. Forgetting what CSS cascade can do that way. What's your opinion?