Re: The SCRIPT element

This is not the way IE7, IE8b1 and Opera 9.5 does.
But this is in fact right in FireFox 2+ and Safari 3.

I also found a strange bug in Opera 9.5.
If you push the "fit to screen button"
(whatever the old state was), the
script appears on the screen.

If we have <script><!-- --></script> display, we should
see no content in the script (because this is a comment
that's in the script). But in Firefox and Safari, we see
the <!-- --> as plain text. In Opera, after the "fit" button
was pressed, we can see the "<!-- -->".

Fremy

--------------------------------------------------
From: "Anne van Kesteren" <annevk@opera.com>
Sent: Wednesday, July 16, 2008 5:28 PM
To: "Francois Remy" <fremycompany_pub@yahoo.fr>; "CSS 3 W3C Group" 
<www-style@w3.org>
Subject: Re: The SCRIPT element

>
> On Wed, 16 Jul 2008 14:28:35 +0200, Francois Remy 
> <fremycompany_pub@yahoo.fr> wrote:
>> How special is the SCRIPT element ? Is it only an element with {
>>     display: none !important;
>>     content: '';
>>     visibility: hidden;
>> } ? Is it an empty replaced element ? Can we have, in this case 
>> SCRIPT::after ?
>
> As far as the UA default style sheet is concerned, the HTML (and SVG) 
> <script> element(s) should have display:none specified. Once an author 
> overrides that it will simply show up, unless an ancestor has display:none 
> specified of course (e.g. the HTML <head> element). It's not really 
> special in any particular way when it comes to CSS layout.
>
>
> -- 
> Anne van Kesteren
> <http://annevankesteren.nl/>
> <http://www.opera.com/>
> 

Received on Wednesday, 16 July 2008 15:55:55 UTC