Skip to content

[css-properties-values-api] [css-cascade] Interaction of @scope and @property #9077

@bramus

Description

@bramus

With @scope defined in css-cascade-6, should authors be able to register custom properties with @property inside the scope, without those properties loitering the global space?

@scope (.card) {
  /* Should --color be local to the scope or not? */
  @property --color {
    …
  }
}

If it should be scoped, should that happen automatically or should it be opt-in by means of an extra descriptor during registration?

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