Re: [csswg-drafts] Proposal: Custom CSS Functions & Mixins (#9350)

Since functions exist inside the value space of a property:

- It would be meaningless to nest selectors inside the function
- The cascade will need to finish _before_ the function itself resolves

Both the function-definition (if multiple rules define the same function name) and function-call (the property where the function is used) will participate in aspects of the cascade – but there really is no way for function internals to impact that.

Technically `result` would be a 'descriptor' belonging to an at-rule (like `@property { syntax: …; }`) and not a CSS `property` belonging to an element. 

-- 
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9350#issuecomment-2209856084 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 5 July 2024 01:43:32 UTC