W3C home > Mailing lists > Public > www-style@w3.org > April 2016

[css-selectors] Tagname based substrings

From: Davis, Greg <greg.davis@pearson.com>
Date: Tue, 5 Apr 2016 10:59:55 -0600
Message-ID: <CANnhi75V=dBj4uVxo5xVT78X_DDnJVN6sKayATHbnPSoCRR6wg@mail.gmail.com>
To: www-style@w3.org
Hi all,
In my ongoing investigation of web components, I'm finding a place where I
want to target a substring of a tagname to keep the authoring semantic.
That is, when I author my tags like this:
<x-navigation />
<x-quiz />

I want to namespace to them so they have shared attributes like fonts, etc.
I can't find a way in the documentation on attribute substrings, but might
just be missing it. Is there a way to target a tagname? I'm thinking like

*[tagname^="x-"] { ... }

Received on Tuesday, 5 April 2016 17:00:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:02 UTC