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

Re: [csswg-drafts] CSS pseudo-selector for h1-h6?

From: Tommy Hodgins via GitHub <sysbot+gh@w3.org>
Date: Fri, 23 Feb 2018 22:20:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-368155117-1519424426-sysbot+gh@w3.org>
@inoas are there any other HTML tag names, other than H1–6 where a regex-like selector like that would make sense?

If you're wanting to select tags by partial tag name like that, though CSS selectors won't currently do it, you can do this with XPath using a selector like: `//*[substring-after(name(), "h") > 0]`

Demo: https://codepen.io/tomhodgins/pen/ybgMpN

GitHub Notification of comment by tomhodgins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1008#issuecomment-368155117 using your GitHub account
Received on Friday, 23 February 2018 22:20:29 UTC

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