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

Re: Specificity and conflicting selectors

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Fri, 15 Apr 2011 17:37:21 +0200
Message-ID: <4DA86631.3000805@disruptive-innovations.com>
To: www-style@w3.org
Le 15/04/11 15:44, Yael.Aharon@nokia.com a écrit :
> Hi,
> I have a question about how to handle selectors that have conflicting
> meaning.
> The background for this question is a webkit bug
> https://bugs.webkit.org/show_bug.cgi?id=52511 .
> In that bug, the "right" selector has a higher specificity than the
> "left" selector, yet all major browsers ignore the "right" selector and
> display the image on the left side.
> Should browsers be expected to have the knowledge about these
> conflicting selectors?
> thanks, Yael

try

   .rtl #comments img {
     left: auto;
     right: 10px;
   }

instead of the original corresponding rule...

</Daniel>
Received on Friday, 15 April 2011 15:37:51 GMT

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