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

I would suggest the cssStampEl be created as `

` to minimize the page reflow impact during testing.

I was thinking you could test by dropping a new element inside the stamp element with inline style="height:5px" class="{assign here}", then test the element's offsetHeight. I suppose accessing offsetHeight would trigger a reflow (prematurely?) where accessing the style wouldn't. Including a manual fork for getComputedStyle seems more fragile than testing offsetHeight, but practically speaking, getCS has been reliable for years now, so maybe not an issue.