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
"[...] reorder the component values to use the canonical order of component values as given in the property definition table
I spent several days on the CSSOM specification and while searching for an issue similar to mine, I remembered this part. Sorry if that doesn't help answer this issue.
Either way, this definitely needs to define the meaning of "Canonical order: per grammar", and if that definition does not work on all possible grammars, you might want some sort of lint to warn you of cases where it doesn't work. For example, does it actually make any sense for https://drafts.csswg.org/css-backgrounds/#propdef-border-width? The grammar isn't particularly complicated, but the mapping to longhand properties is defined in the prose, not the grammar.
CSSOM makes references to "canonical order" in a bunch of places to refer to the order in which a shorthand expands to their longhands.
For example, for:
Browsers serialize it as:
which means that "flex" expands "flex-shrink" before "flex-basis". I don't think that's defined anywhere, and it probably should.
cc @fantasai @tabatkins
The text was updated successfully, but these errors were encountered: