Skip to content

[css-properties-values-api] Example 2: should explain more clearly why inherit instead of green in description #152

@Marat-Tanalin

Description

@Marat-Tanalin

The example 2 of CSS Properties and Values API Level 1 draft contains the following code:

.thing {
    --my-color: green;
    --my-color: url("not-a-color");
    color: var(--my-color);
}

But then description says that the color property is set to inherit instead of green. So either this is a typo, and inherit in the description should be replaced with the correct green used in the code, or the description should be more clear on why the property is set to inherit instead of green.

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