style attribute type

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:
  http://www.w3.org/TR/html401/present/styles.html#default-style
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
language:
  <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