Skip to content

[css-backgrounds-3] Use lowercase currentcolor for initial property values #7629

@cdoublev

Description

@cdoublev

border-<side>-color are defined with currentColor (camel case) as their initial value, instead of currentcolor (lowercase).

This prevents simplifying the serialization of border, border-color, border-<side>, when making use of the definitions extracted from the spec by w3c/webref to compare the initial longhand value to the longhand declaration values used to serialize these shorthands.

currentcolor always appear lowercase in CSS Color 4. Also, I think it is more accurate to define initial fields to a value that matches their serialization as a component of a specified value (keywords serialize to lowercase), not as an input with arbitrary case.

Please tell me if you want me to create a PR, if you agree.

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