doug crockford has a posse.

Posts Tagged ‘workaround’

Firefox getComputedStyle Table Margin Bug

There’s a bug in Firefox when computing table margins using getComputedStyle; it always returns 0px. See the test case.
The bug also effects current versions of Firebug (case 171, as well as YUI’s getStyle method (my library of choice.)
Thankfully, there’s a workaround. While technically you could alter the display property of your table to ‘block’, you’ll […]