W3C home > Mailing lists > Public > www-style@w3.org > February 2009

[css3-selectors] The universal attribute selector

From: Gabriele Romanato <gabriele.romanato@gmail.com>
Date: Fri, 27 Feb 2009 03:36:58 +0100
Message-Id: <11DC6A07-9FC6-4731-BEF6-AD24C87350F1@gmail.com>
To: www-style@w3.org
The universal attribute selector should match an element by the  
presence of an attribute, whatever its name or value. Format:

E[@]

Examples:

p[@] {color: green}

matches:

<p id="test"></p>
<p class="test"></p>
<p title="test"></p>

regards.

ps. problem: one or more attributes per element?


http://www.css-zibaldone.com
http://www.css-zibaldone.com/test/  (English)
http://www.css-zibaldone.com/articles/  (English)
http://mimicry.css-zibaldone.com/ (Blog)
http://www.flickr.com/photos/gabrieleromanato/ (Flickr)
Received on Friday, 27 February 2009 02:37:42 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:16 GMT