-
Notifications
You must be signed in to change notification settings - Fork 118
Description
The longhands property has recently been added for shorthands in @webref/css, but there are two problems:
- it includes entries that are not longhands but shorthand sub-properties
- it is missing reset-only sub-properties
For example, the longhands of border are defined with border-width, border-style, border-color. I do not think that a definition of "longhand" exists in CSS specs, but CSS Cascade 5 defines this:
A shorthand property sets all of its longhand sub-properties, exactly as if expanded in place.
Ie. a shorthand sets a declaration for all its longhands. But there is no shorthand declarations internally stored.
So I believe that these are shorthand sub-properties, not longhands.
The longhands of border are missing border-image-* longhands, which are its reset-only sub-properties. When border is declared, it sets a declaration for all its longhands, including its reset-only sub-properties.
If you are interested, you can see my own maintained version of the shorthand/longhands mapping here. Note that I split reset-only subproperties in a separate group, which would be handy in @webref/css.