Re: [csswg-drafts] [Selectors] Numeric or Typed Attribute Value and Pseudo Attribute Selectors (#354)

To numerically compare attribute values today, authors can work around this by:

1. Injecting all the values that the item is not equal to, using `data-*` attributes.
2. Using the CSS Attribute “Value Contains” Selector (e.g. `[attribute~=value]`) on those `data-*` attributes.

I’ve detailed this nasty and cumbersome hack back in the day over at https://www.bram.us/2016/10/13/css-attribute-value-less-than-greater-than-equals-selectors/.

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


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

Received on Monday, 12 September 2022 11:21:46 UTC