W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: The SCRIPT element

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 16 Jul 2008 17:28:16 +0200
To: "Francois Remy" <fremycompany_pub@yahoo.fr>, "CSS 3 W3C Group" <www-style@w3.org>
Message-ID: <op.ued49etm64w2qv@annevk-t60.oslo.opera.com>

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:28:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT