caniuse icon indicating copy to clipboard operation
caniuse copied to clipboard

Suggest split Container Style Queries into custom properties and standard properties

Open woody-li opened this issue 10 months ago • 4 comments

The first standard of Container Style Queries is CSS Containment 3. But there's some questions for standard properties usage: https://github.com/w3c/csswg-drafts/issues/7185

Chrome implementd it only for custom properties. Webkit expressed support position fot custom properties: https://github.com/WebKit/standards-positions/issues/57 MDN data only shows the custom properties usage.

So is it necessary to split it into the two pages?

woody-li avatar Sep 27 '23 01:09 woody-li

I'm not sure that Style Queries for standard properties will ever happen. It's likely it will not.

jensimmons avatar Sep 27 '23 21:09 jensimmons

I'm not sure that Style Queries for standard properties will ever happen. It's likely it will not.

The resolution from last week indicates that they'll be added to level 4.

Anyway, in regard of the resolution, I suggest to just change the feature title and description to note that they only apply to custom properties for now. I.e. change the title to "CSS Container Style Queries for custom properties" and the description to "Style queries in Container Queries provide a way to query the current styling defined in custom properties of a container, and conditionally apply additional CSS to the contents of that container."

Once Style Queries for standard properties become a thing, a new entry can be added to cover them.

Sebastian

SebastianZ avatar Jan 03 '24 09:01 SebastianZ