Skip to content

[css-color] Why not just alias deprecated system colors at parse time? #13459

Description

@Loirooriol

https://drafts.csswg.org/css-color-4/#deprecated-system-colors

Earlier versions of CSS defined several additional system colors. These color keywords have been deprecated

https://drafts.csswg.org/css-color-4/#resolving-other-colors

The declared value for each <system-color> keyword and <deprecated-color> keyword is itself.

System colors are being implemented in Servo, and it seems to me it would be easier to treat the deprecated ones as aliases:

<!DOCTYPE html>
<script>
var { style } = document.documentElement;
style.color = "ActiveBorder";
document.write(style.color); // "activeborder". Why not "buttonborder"?
</script>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Tuesday afternoon

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions