W3C home > Mailing lists > Public > www-style@w3.org > January 2008

Re[6]: css with attribues [software]

From: Dmitry Turin <sql4-en@narod.ru>
Date: Fri, 18 Jan 2008 11:19:19 +0200
Message-ID: <167185026812.20080118111919@narod.ru>
To: www-style@w3.org

Alan,

>> > Can a CSS property be used as the attribute in Attribute Selectors?
>> > My answer is yes.
AG> Works in Opera, Safari, Gecko, and I guess many others.

AG> <surname color="orange">Name</surname>
AG> surname[color="orange"] {color:yellow}

<html>
<style type="text/css">
  p[color="orange"] {color:green}
</style>
<body>
  <p style="color:orange">Name</p>
</body>
</html>

There is nothing green in Opera.
If i'm disunderstanding you, correct example above.



Dmitry Turin
SQL5      (5.9.1)  http://sql50.euro.ru
HTML6     (6.5.1)  http://html60.euro.ru
Unicode7  (7.2.1)  http://unicode70.euro.ru
Computer2 (2.0.2)  http://computer20.euro.ru
Received on Friday, 18 January 2008 10:38:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:58 GMT