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

Re: what happens if first-line contains markup?

From: Lauren Wood <lauren@sqwest.bc.ca>
Date: Wed, 26 Jun 1996 10:39:48 -0700
Message-Id: <199606261741.KAA14355@sqwest.west.sq.com>
To: howcome@w3.org
Cc: preece@predator.urbana.mcd.mot.com, cwilso@microsoft.com, www-style@w3.org, html-erb@w3.org

> From: Hakon Lie <howcome@w3.org>
> Lauren Wood writes:
>  > This raises another question that I've been thinking about for a
while -
>  > it says that the STYLE attribute should win. This means that if
>  > is silly enough to write 
>  > <FONT COLOR="red" STYLE="color: blue"> that they should get blue
> Since the two are in direct conflict, the STYLE attribute should win
> (as defined in 3.2 of the CSS1 spec). It's less clear for other
> stylisitc attributes, and the spec does not dictate any behavior.
> Perhaps we should?

It should be made clear in the draft that this applies to attributes
other than ALIGN, and that, as Chris Wilson said, if someone uses <I
STYLE='font-style:none'> that it ends up in plain text. Otherwise users
are going to be trying to figure out why that happened. 

In the section on block-level vs inline elements, it does state that
browsers may hard-code that the HTML 2 elements are either block or
inline depending on the element. If this is to be an option for the
style sheet mechanism (e.g. some browsers may always render <I> as
italic), this should be stated. Personally, I wouldn't mind defining
that B, I, TT should always be rendered as bold, italic and mono-spaced
as befits the names, although the EM, STRONG, CODE etc elements should
be able to have the rendering information changed. This would probably
confuse users unfortunately.

Received on Wednesday, 26 June 1996 13:55:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:40 UTC