W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

Re: [csswg-drafts] CSS Regex Selector (#1010)

From: Andreas Karz via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Dec 2019 11:06:40 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-561596627-1575457598-sysbot+gh@w3.org>
> This feature sounds like overkill; if one needs regular expressions to match element names, then something would seem to be wrong with the design of the language being styled.
> 
> In the case of `h1`/`h2`/`h3`/`h4`/`h5`/`h6`, the elements are a historical artifact and shouldn't exist and in practice one should rarely ever need to use more than `h1` and `h2` given the HTML5 outline algorithm.
> 
> In the case of `ruby`/`rt`, it'd be less verbose to write a selector without a regular expression and in practice you won't want to style those elements the same anyway.

Have you ever written automated tests? Not always see the problems from your point of view.

-- 
GitHub Notification of comment by AndreasKarz
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1010#issuecomment-561596627 using your GitHub account
Received on Wednesday, 4 December 2019 11:06:41 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:05 UTC