- From: Peter S. Linss <peter@linss.com>
- Date: Mon, 31 Jan 2000 11:48:14 -0800
- To: Jonny Axelsson <jonny@metastasis.net>
- CC: www-style <www-style@w3.org>
- Message-ID: <3895E6FE.458BE752@linss.com>
The Mozilla engine can display head elements (last time I checked anyway). But not with the CSS you've presented. If you look at the user agent style sheet for Mozilla you'll find: head { display: none} so to override it, you'd have to use: <style> head * { display: none } /* to hide all the other head elements, othewise they'll be inline, the default */ head, head style { display: block } /* to make the head and style elements display */ </style> Jonny Axelsson wrote: > I have a question, how should this HTML page be displayed? > > <title>Example displaying the STYLE element</title> > <style> > style {background-color: #FF3333; visibility: visible; display:block;} > </style> > <body style="background-color: #33CC33;"> > <p>This is the body.</p> > > I think it should be displayed as: > > style {background-color: #FF3333; visibility: visible; display:block;} > This is the body. > > There is nothing I could find in the CSS standards that prohibit the > display of HEAD elements. The HTML 4.01 standard, sect. 7.4.1 states: > > The HEAD element contains information about the current document, such as > its title, keywords that may be useful to search engines, and other data > that is not considered document content. **User agents do not generally > render elements that appear in the HEAD as content.** They may, however, > make information in the HEAD available to users through other mechanisms. > [my emphasis] > > Neither Opera 3.60 nor Internet Explorer 5.0 displays the style element. > Should they? Furthermore, if they shouldn't display head elements, what > about XHTML? There is nothing magical in XML about HEAD, STYLE, TITLE or > SCRIPT (META, BASE and LINK are empty elements). > > Curiously yours, > Jonny Axelsson > Net asset
Received on Monday, 31 January 2000 14:49:51 UTC