W3C home > Mailing lists > Public > www-html@w3.org > February 2004

style attribute type

From: Greg Baker <ggbaker@cs.sfu.ca>
Date: Mon, 16 Feb 2004 16:25:18 -0800
To: www-html@w3.org
Message-ID: <20040217002516.GA9978@badgirlchocolates.com>

In the Style Attribute Module of the current XHTML2 draft, there is no 
mention of the MIME type of the attribute's value.

In HTML 4.0 (thus XHTML1), the value for the style attribute is 
interpretted according to the default style sheet language:
There is no mention of an equivalent in XHTML2.

Presumably the "Content-Style-Type" header isn't acceptable since it is 
linked to HTTP.  I would suggest the following, which is the least-ugly 
solution I see:
  <meta name="inline-style-type">text/css</meta>
  <meta name="inline-style-type">text/xml</meta>

The same comments apply to the "Content-Script-Type" header from HTML4.

There is also no mention of the media where inline style information
should be applied.  Does it apply to all media?  That would seem to make
sense since authors could select the media with the style sheet
  <div style="@media print { display: none }">...</div>

Greg Baker, Lecturer
School of Computing Science
Simon Fraser University
Burnaby, BC, V5A 1S6
E-mail: ggbaker@cs.sfu.ca
Received on Monday, 16 February 2004 19:25:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:07 UTC