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

RE: [css21-selectors] Interpretation of attribute selector

From: Belov, Charles <Charles.Belov@sfmta.com>
Date: Wed, 2 Jun 2010 12:04:49 -0700
Message-ID: <E17F75B6E86AE842A57B4534F82D03769C29F1@MTAMAIL.muni.sfgov.org>
To: "Zack Weinberg" <zweinberg@mozilla.com>
Cc: "Boris Zbarsky" <bzbarsky@MIT.EDU>, "www-style list" <www-style@w3.org>, "Daniel Glazman" <daniel.glazman@disruptive-innovations.com>
Zack Weinberg [mailto:zweinberg@mozilla.com] on Wednesday, June 02, 2010
11:35 AM wrote:
> "Belov, Charles" <Charles.Belov@sfmta.com> wrote:
> > >    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.
> > 
> > Alas, it appears not to work at all, producing justified text in 
> > Firefox 3.6.3 Windows, Safari 4 Windows and Internet Explorer 8.
> > 
> > Please see http://www.sfmta.com/cms/testSelectorD.htm .
> 
> You need to add an !important.  (A user style sheet would not 
> need that, but style="..." trumps all normal declarations 
> from document style sheets.)

My bad. Unfortunately, that only fixes it for Firefox and Safari.
Internet Explorer 8 steadfastly remains justified.

Thank you for your assistance.

Charles Belov
SFMTA Webmaster
Received on Wednesday, 2 June 2010 19:12:08 GMT

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