Anne van Kesteren

On valid CSS

html{
 display:none
}

Comments

  1. Wow, that solves all my problems!

    Thanks!

    Posted by Daniel Morrison at

  2. We all have that feeling every once and a while

    Posted by Joël Kuiper at

  3. Why not just

    * { display:none; }

    For complete coverage ;)

    Posted by Jeff Minard at

  4. That still doesn't fix your flag...

    Posted by dolphinling at

  5. Was the purpose of this to illustrate what is valid in CSS, yet not supported by Mozilla? In my test, the DOM inspector showed the computed value for 'display' as none, but the content was still displayed. The same test worked correctly in Opera.

    Posted by Lachlan Hunt at

  6. dolphinling, I know. But then I also know that :root{ display:none } is not supported by Internet Explorer or Opera. Using the universal selector did not seem right to me.

    Lachlan, I forgot about that. Which is stupid, since I filed a bug about that a few days ago.

    Posted by Anne at

  7. At least this makes the website way prettier than many others out there - although still a bit boring. But I do agree with Jeff Minard, you get 100% coverage, and you save yourself 3 bytes.

    Posted by Arve Systad at

  8. And who says minimalist work is overrated? ;)

    Posted by Marco at

  9. I think you can save yourself even more by just not having any CSS at all, and then not have anything in your HTML between the <body> and </body> tags. :)

    Posted by Timothy McClanahan at

  10. Why don't we just stop with designing websites at all? That would make our problems disappear at once ;)

    Posted by Bart at

  11. Why don't we just stop with designing websites at all? That would make our problems disappear at once ;)

    It's certainly solved mine.

    Posted by Mark at