W3C home > Mailing lists > Public > www-style@w3.org > May 1998

RE: style assignment

From: Chris Wilson <cwilso@MICROSOFT.com>
Date: Fri, 15 May 1998 12:01:18 -0700
Message-ID: <C35556591D34D111BB5600805F1961B905090023@red-msg-47.dns.microsoft.com>
To: "'Smith, Brooke'" <Brooke.Smith@Butterworths.com.au>, "'www-style'" <www-style@w3.org>
Brooke,
	as the person who implemented CSS in both IE3 and IE4, I can state
unequivocally that the behavior you described below was an IE3 bug.  It was
due to the architecture I used to graft stylesheet support into the IE3
rendering model.

-Chris Wilson


> -----Original Message-----
> From:	Smith, Brooke [SMTP:Brooke.Smith@Butterworths.com.au]
> Sent:	Thursday, May 14, 1998 5:57 PM
> To:	'www-style'
> Subject:	style assignment
> 
> Hi,
> 
> I started a discussion with Sue Jordan about CSS vs FONT tags but have
> come to an inpasse.  We were looking at the specificity and how that
> might resolve which style applies.  I said (using IE3 under Win95):
> 
> > I think it seems that the <FONT has specifity less than 1.  Take this
> > HTML:
>  
> > <STYLE TYPE="text/css"><!--
> > EM {color: red}
> > P EM {color: pink}-->
> > </STYLE>
> > </head>
> > <body>
> > <EM><FONT COLOR="GREEN">  This is an EM outside of the P.</font></EM>
> > 
> > The EM text renders red, but take the style rule for EM out and it
> > renders green.
> 
> and Sue said:
> 
> > On Netscape4x and IE4x, the text is green, so this is an IE3 bug.
> >  
> > I really think it is an implementation problem, rather than a
> > specification problem (which would interest the list).
> 
> So how should the combination be handled?  I would have thought that my
> orriginal assumption applied where <FONT and other presentational markup
> have a specifity less than 1 so that any CSS style would override.  If
> this was the case then pages can be delivered which for those with CSS
> browsers will render 'beautifully' and for those without CSS browsers
> will render adequately.  Was any specification made about this
> behaviour?  I'd be interested in knowing.
> 
> Regards,
> 
> Brooke
> ==============================================
> http://www.butterworths.com.au/profile/people/brooke/bw.htm
> +61 412 024 742                                       +61 2 9422 2223
>             Butterworths Electronic Publishing Developer
> 
> > -----Original Message-----
> > From:	Sue Jordan [SMTP:sjacct@worldnet.att.net]
> > Sent:	Friday, May 15, 1998 10:30 AM
> > To:	Smith, Brooke
> > Subject:	Re: style assignment
> > 
> > Hi, Brooke.
> > > 
> > > I think it seems that the <FONT has specifity less than 1.  Take
> > this
> > > HTML:
> >  
> > > <STYLE TYPE="text/css"><!--
> > > EM {color: red}
> > > P EM {color: pink}-->
> > > </STYLE>
> > > </head>
> > > <body>
> > > <EM><FONT COLOR="GREEN">  This is an EM outside of the
> > P.</font></EM>
> > > 
> > > The EM text renders red, but take the style rule for EM out and it
> > > renders green.
> > 
> > On Netscape4x and IE4x, the text is green, so this is an IE3 bug.
> >  
> > > Do you think I should take this to the list?  Perhaps you could
> > start if
> > > you think so.
> > 
> > I really think it is an implementation problem, rather than a
> > specification problem (which would interest the list). Since IE fixed
> > it in a subsequent version, there is no need to file a bug report. I
> > looked at out 'bugs' page, which stated that IE3 didn't recognize
> > colour names as well as 3 or 6 digit RGB, but I tested RGB with
> > exactly the same results. 
> > 
> > Sorry I couldn't be of more help. :-(
> > 
> > Sue
Received on Friday, 15 May 1998 15:01:27 GMT

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