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


>> > 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}

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

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 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:33 UTC