Re: [csswg-drafts] [css-selectors] Selectors for “text-ish” and “button-ish” inputs

Given that we are already seeing some debate about what the appropriate groupings would be, I'm tempted to argue that the most practical approach would be to make it easier for authors to define custom selector lists.

Yes, it still means you have to write out that long selector list at least once. But then it can be re-used many times in a project.  And it can be re-used in many projects, by `@import`-ing the definitions file, or including it with a preprocessor.

In https://github.com/w3c/csswg-drafts/issues/2298#issuecomment-364778609, I give a proposal for a syntax defined as an extension of `:matches()`, with example code based on this issue discussion.

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

Received on Sunday, 11 February 2018 19:14:35 UTC