Skip to content

[css-mixins] Custom functions should have some access to custom properties on the calling element. How much? #9938

@mirisuzanne

Description

@mirisuzanne

And how explicit should that access be?

  • The initial proposal suggested explicitly passing in any variables needed, as part of the parameter list
  • The more recent proposal involves a using (<vars>) syntax in the at-rule prelude (the same impact, but a bit more concise)
  • Others have argued that all external variables should be (somehow) implicitly available.

Much of the previous discussion is in the initial proposal: #9350. There's also a related question about distinguishing between 'arguments' and 'variables' - which may belong as part of this issue, or may also deserve it's own thread?

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