You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-fonts-5] font property uses it's own concept for reset-only sub-properties #11904
The definition for font lists properties that are "reset implicitly" rather than using the "Reset-only sub-property" concept from Cascade-5. I assume it was written first? It would be nice to unify those.
Specifically I recently was going to implement font's concept of it generically but couldn't find it used anywhere else. Turns out it is used elsewhere, it just has a different name. 😅
I agree that harmonization would be good, but Cascade 5 does not seem to cover all the categories (Cascaded Independently is missing) so this needs further discussion and coordination.
My understanding is that properties which cascade independently are not sub-properties, so I'm not sure what it does to define the type of sub-property that behaves as not a sub-property? Is the goal to call out that some props named foo-* are actually longhand sub-properties of foo, while some are independent but still part of the larger foo feature? I don't think I've seen that called out before.
My understanding is that properties which cascade independently are not sub-properties, so I'm not sure what it does to define the type of sub-property that behaves as not a sub-property?
Put like that, it seems obvious. The problem was that some implementations were treating properties called font-foo as if they were sub-properties, and so resetting them to initial values when the font shorthand were set. We needed to clarify which were not sub-properties.
I'm fine to add that clarification to Fonts 4, and to link to the Cascade 5 definition for reset-only sub-property.
Activity
svgeesus commentedon Mar 11, 2025
Yes these categories were introduced first, to clarify a specific bug in setting font shorthand properties:
font-palettebe reset by thefontshorthand? #7832in accordance with this CSSWG resolution
I agree that harmonization would be good, but Cascade 5 does not seem to cover all the categories (Cascaded Independently is missing) so this needs further discussion and coordination.
@fantasai @mirisuzanne @tabatkins
mirisuzanne commentedon Mar 12, 2025
My understanding is that properties which cascade independently are not sub-properties, so I'm not sure what it does to define the type of sub-property that behaves as not a sub-property? Is the goal to call out that some props named
foo-*are actually longhand sub-properties offoo, while some are independent but still part of the largerfoofeature? I don't think I've seen that called out before.svgeesus commentedon Mar 12, 2025
Put like that, it seems obvious. The problem was that some implementations were treating properties called
font-fooas if they were sub-properties, and so resetting them to initial values when thefontshorthand were set. We needed to clarify which were not sub-properties.I'm fine to add that clarification to Fonts 4, and to link to the Cascade 5 definition for
reset-only sub-property.[css-fonts-4] Refered to Cascade 5 for reset-only sub-property, rathe…
AtkinsSJ commentedon Mar 13, 2025
Perfect, thank you!