davglass/yui3 — comment on commit 7320cc1a23bd0ed4fce4bc6eac8be201f09dfbce
File:  line 0
By davglass:

Matt and I talked about this approach too, but thought the single rule approach worked well and was not that fragile. Since the only real way for someone to break this would be to add:

div { display: none !important; }

Which in turn would completely trash everything they would be trying to use

My first run at this used a similar approach, but Matt noted that offsetHeight is not very reliable (and the reflow of touching it).