Re: [csswg-drafts] Allow applying style rules to the container itself (especially with style querries) (#10744)

@PupilTong I'm not saying it would be impossible to have a self-styling feature - that is what `if()` does – but that it can't be a new selector in a container rule. The `if()` function relies on resolving the value late, and makes properties Invalid at Computed Value Time. That is to say: selection has already finished, the entire cascade has completed, and other values set for the property have been discarded. Any fallback values need to be explicit. It's clear how to do that property-by-property in a function (we already have `var()` as prior art) but it's less clear how that would be handled at a block level.

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


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

Received on Thursday, 19 September 2024 17:44:40 UTC