Skip to content

Supporting CSS Color Module Level 4 and 5 #801

Open
@JakeQZ

Description

@JakeQZ

This is a task list of enhancements required to fully support the above (strictly).

High priority (ideally included in next release)

Low priority (would be nice to have, but we have other fish to fry in the meantime, so to speak)

  • Add rendering option to output color functions using "modern" syntax
  • Reject color functions with invalid length arguments, such as 10px, including rejecting percentage arguments where these are not permitted (e.g. in "legacy" syntax)
  • Parse color functions containing var() substitutions as Color rather than generic CSSFunction
  • Support additional color functions (these will currently be parsed as generic CSS functions, which may not work reliably):
    • hwb
    • lab
    • lch
    • oklab
    • oklch
  • Support color function:
  • Support relative colors (level 5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    css4Relating to features introduced in CSS4enhancement

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions