Skip to content

[cssom] "case-sensitive match for a supported CSS property"? #580

@SimonSapin

Description

@SimonSapin

In each of:

… one of the steps is:

If property is not a case-sensitive match for a supported CSS property, terminate this algorithm.

… with a link to:

https://drafts.csswg.org/cssom/#supported-css-property

The term supported CSS property refers to a CSS property that the user agent implements, including any vendor-prefixed properties, but excluding custom properties.

(Emphasis added.)

This does not match the behavior of at least Firefox and Chromium, where the matching is (probably ASCII) case-insensitive, and custom properties are not excluded:

document.documentElement.style.setProperty("Color", "green")
document.documentElement.style.setProperty("--a", "b")
assert_equals(document.documentElement.style.getPropertyValue("color"), "green");
assert_equals(document.documentElement.style.getPropertyValue("--a"), "b");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions