W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [cssom][css-display][css-cascade] revisiting "default display"

From: Simon Pieters <simonp@opera.com>
Date: Sat, 07 Sep 2013 21:28:53 +0200
To: "Tab Atkins Jr." <jackalmage@gmail.com>, "Mike Sherov" <mike.sherov@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.w2122fkqidj3kv@simons-macbook-pro.local>
On Sat, 07 Sep 2013 01:41:00 +0200, Mike Sherov <mike.sherov@gmail.com>  

> BTW, if you need another use case for this, it also solves the problem  
> for
> when someone tries to accidentally call .show() on an element that has
> default "display:none", like a <input type=hidden>. You may think that's
> non-sensical, but all an author has to do is $('form').children().show(),
> and you're accidentally showing hidden inputs.

That doesn't make the hidden inputs be rendered, though.

The user agent is expected to force the 'display' property of input  
elements whose type attribute is in the Hidden state to compute to 'none',  
irrespective of CSS rules.

Simon Pieters
Opera Software
Received on Saturday, 7 September 2013 19:22:21 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC