Skip to content

Add formal syntaxes for <system-color> and <deprecated-color> #1647

@tidoust

Description

@tidoust

Via #1519 (comment)

The CSS color specs define a number of values that the <system-color> and <deprecated-color> types can take but not synthesize things in a formal syntax. Ideally, the syntax of these types would be:

<system-color> = AccentColor | AccentColorText | [...] | <deprecated-color>
<deprecated-color> = ActiveBorder | ActiveCaption | [...]

Approaches to consider to get these syntaxes into Webref by order of preference:

  1. Craft a PR against the specs to introduce the formal syntax there.
  2. Explore the possibility to extract and use values in Reffy when a more formal syntax does not exist. Make sure that this does not create bad syntaxes for other constructs though (and note a patch would likely still be needed to add <deprecated-color> to <system-color>).
  3. Create a patch in Webref, but note the patching mechanism is not well-suited for this type of permanent updates.

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