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

@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