W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2017

Re: [csswg-drafts] CSS Regex Selector

From: Damian Senn via GitHub <sysbot+gh@w3.org>
Date: Wed, 15 Feb 2017 07:46:01 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-279939583-1487144759-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.

-- 
GitHub Notification of comment by topaxi
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1010#issuecomment-279939583
 using your GitHub account
Received on Wednesday, 15 February 2017 07:46:07 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:29 UTC