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:07:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-561596861-1575457645-sysbot+gh@w3.org>
> The heading case could be solved with something like https://drafts.csswg.org/css-extensions/#custom-selectors
> 
> The section case could be solved with attribute selectors:
> 
> ```css
> section[id^="card-"] {
>      padding: 10px;
>      border-radius: 10px;
>      background: white;
> }
> ```
> 
> I think RegExp would only add a lot of complexity for everyone.

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-561596861 using your GitHub account
Received on Wednesday, 4 December 2019 11:07:27 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC