- From: Benoît Rouleau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 03 Sep 2024 03:33:41 +0000
- To: public-css-archive@w3.org
benface has just created a new issue for https://github.com/w3c/csswg-drafts: == Should there be a `:inert` pseudo-class? == HTML has a new-ish [`inert` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inert), but as far as I can tell, the only way to select inert elements in CSS is with `:is([inert], [inert] *)` (since children of `inert` elements are also inert), which I don't think is perfect as it ignores [the DOM property](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert). Would it make sense to introduce a `:inert` pseudo-class, similar to `:disabled`? There may not be a lot of use cases for it, but I was still surprised by the lack of discussion about it (it's possible I didn't search well enough, if so I apologize). Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10824 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 3 September 2024 03:33:42 UTC