Re: [csswg-drafts] [css-selectors] Compare values across different attributes? (#11536)

@Loirooriol – One example would be a non-opinionated backend rendering multiple elements, each with multiple attributes, and an opinionated frontend styling some elements that match certain conditions, or even showing/hiding such elements with filters. Some example conditions that reference other attributes:
- `[data-current-state==data-initial-state]` or `[data-current-state==data-final-state]`
- `[data-quantity==data-max-quantity]`
- I just realized that this would be even more powerful together with https://github.com/w3c/csswg-drafts/issues/354, e.g. `[data-daily-sales>data-monthly-sales]`

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


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

Received on Tuesday, 21 January 2025 17:25:00 UTC