Skip to content

[css-values] Rename inherit() to parent(), add more inherit-like variant as inherit() #13426

Description

@Crissov

Comments tend to be overlooked after an issue has been closed, like #2864 was. Therefore, reraising as a separate topic.

The inherit() function should behave more like the inherit global keywords in that it always refers to the same (custom, computed) property it is used within! That means, drop the first parameter, thus only expect an optional fallback value within the functional notation.

For accessing ancestral values from arbitrary properties, there should be a separate function, called something like parent() or parental().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions