* {visibility: hidden}

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

When you define visibility: hidden on * Explorer Windows and Safari don't show anything ever again.

Test page. Workaround not included.
Reported by Giuseppe Bertone.

Explorer 5-6 Windows, Explorer 7 beta 2, Safari | Reported on 20 November 2004.

Comments

(Add your own)

Posted by ppk on 21 November 2004

1

Come to think of it, I feel that Explorer is right and the other browsers are wrong.

After all, the * selector includes the body, and when the body is invisible none of its child nodes will show up, either.

Posted by Philip Hazelden on 23 November 2004

2

According to the specs, explicity visibilified children of an invisible element should show up:
"hidden
The generated box is invisible (fully transparent, nothing is drawn), but still affects layout. Furthermore, descendents of the element will be visible if they have 'visibility: visible'."

That certainly seems the logical way to do it, since it allows for greater control.

Posted by Wout van der Klip on 25 November 2004

3

Opera 7.23 doesn't show anything either

Posted by ppk on 25 November 2004

4

Interesting, I didn't know that you could show children of an invisible element.

For completeness' sake I include the relevant link: http://www.w3.org/TR/CSS21/visufx.html#propdef-visibility

Posted by Giuseppe Bertone on 26 November 2004

5

I think it's clearly a IE bug: if I view the test page with IE6 and XP-SP2, the right mouse button is disabled. So I think the parsing engine of IE crashes handling such feature.

Byez!

Posted by ppk on 23 January 2005

6

Bug also appears in Safari; added this bug report to the Safari category.

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes