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

Re: what happens if first-line contains markup?

From: Scott E. Preece <preece@predator.urbana.mcd.mot.com>
Date: Tue, 25 Jun 1996 15:41:28 -0500
Message-Id: <199606252041.PAA09845@predator.urbana.mcd.mot.com>
To: cwilso@microsoft.com
Cc: lauren@sqwest.bc.ca, www-style@w3.org, html-erb@w3.org
 From: "Chris Wilson (PSD)" <cwilso@microsoft.com>
| >
| >>Note, by the way, that the spec does indicate how to handle "order of
| >>appearance" for STYLE attributes - they are appended at the end of the
| >>STYLE element (but since they are specified as if by ID, they would
| >>presumably be most-specific in any case).
| Where does the spec say that?  I looked through the current working
| draft on CSS [1] and the embedding style working draft [2], and didn't
| see where it said they were treated as if they were appended at the end
| of the STYLE element (as if they were linked via ID).  Perhaps this
| issue should be strictly defined - that is not how MSIE applies the
| style properties applied via a STYLE attribute (anything inside a STYLE
| attribute on an element is immediately applied to the element, before
| anything else.  Otherwise, it could be overridden by a rule with a
| higher specificity (e.g., "#ID1 #ID2 {}" ), which doesn't seem intuitive
| at all).

The next-to-last paragraph of section 3.2 of [1] says:

  A 'STYLE' attribute on an element (see section 1.1 for an example)
  should be considered as if an ID attribute had been specified at the end
  of the style sheet.

which I read as I indicated. Since it goes on to say:

  The UA may choose to honor other stylistic attributes (e.g. 'ALIGN') as
  if a 'STYLE' attribute had been used. When in conflict with other
  stylistic attributes, the 'STYLE' attribute should win.

I would say your interpretation was what they intended, anyway.


| [1]: http://www.w3.org/pub/WWW/TR/WD-css1.html


scott preece
motorola/mcg urbana design center	1101 e. university, urbana, il   61801
phone:	217-384-8589			  fax:	217-384-8550
internet mail:	preece@urbana.mcd.mot.com
Received on Tuesday, 25 June 1996 16:40:35 UTC

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