W3C home > Mailing lists > Public > www-style@w3.org > June 2010

Re: [css21-selectors] Interpretation of attribute selector

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 01 Jun 2010 15:23:16 -0400
Message-ID: <4C055E24.5070101@mit.edu>
To: "Belov, Charles" <Charles.Belov@sfmta.com>
CC: www-style list <www-style@w3.org>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>
On 6/1/10 3:12 PM, Belov, Charles wrote:
> No, Word 2003 generates filtered HTML such as
> <p style="text-align:justify;">

Which is fine.

> which I wish to override using CSS using
> p[style="text-align:justify;"] {
> 	text-align:left;
> }

This is what I claimed was rare.  That doesn't help the few people 
trying to do it, of course.....

Note that your situation happens to have a simple solution, though, 
given the small scale and specific nature of what you're trying to do:

   p[style="text-align: justify;"], p[style="text-align:justify;"] {
     text-align: left;

This will obviously not work if the @style has more stuf in it, etc, but 
neither did your original selector above.

Received on Tuesday, 1 June 2010 19:23:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:47 UTC