Commenting out CSS already commented out

 I often make an error in my CSS by commenting out a chunk of CSS but forgetting about a comment already inside the chunk.


Some CSS following the chunk then does not run. But browsers soon recover and later CSS runs fine.


I like how browsers display a web page even when there are errors in the HTML or CSS.


Sometimes I also put JavaScript '//' comments in CSS which also confuses browsers.





Comments

Popular posts from this blog

Minifying CSS

Violating Flickr's terms of service

How a CSS fish animation works