W3C home > Mailing lists > Public > www-style@w3.org > July 2013

[css-selectors][css-syntax] HTML5 Attribute names in CSS?

From: François REMY <francois.remy.dev@outlook.com>
Date: Mon, 1 Jul 2013 21:48:47 +0200
Message-ID: <DUB120-DS1534D4B7FA87A315B5FA57A5710@phx.gbl>
To: "CSS WG" <www-style@w3.org>
In HTML5, attribute names like <div data-x{32}=”17” data-a.b=”21”> are totally valid but not usable in CSS (which only accepts IDENTS). Wouldn’t it be good to change the syntax of attribute selectors to better reflect the attribute syntax of HTML5?

(my usecase was to create human-readable computed data attributes like “data-user.isAdmin” and use them in my CSS)
Received on Monday, 1 July 2013 19:49:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:31 UTC