Skip to content

Incorrect and missing CSS longhands entries #1851

@cdoublev

Description

@cdoublev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions