Crash when hiding :after pseudo class

Safari 1.2 will crash if you try to hide a block level element, such as a div, by setting style.display to 'none', if the element contains the following :after pseudo class:

div:after
{
	content: ".";
	display: block; 
	overflow: hidden; 
}

Test page Workaround is included
Reported by: sam.

(Orphaned), Safari | Reported on 1 April 2005.

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




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by ppk on 16 April 2005 | Permalink

Seems to be solved in 1.3

2 Posted by Krijn Hoetmer on 10 May 2005 | Permalink

Has http://ktk.xs4all.nl/stuff/css/generated-content-safari-crash/ anything to do with this (partly solved?) bug? Since I don't have Safari here I can't really test it thoroughly.

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