Re: Computed Style and Border Width - Question [CSSOM]

On Mon, Jun 30, 2008 at 11:20 PM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
> On Mon, Jun 30, 2008 at 8:39 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
>> On Tue, Jul 1, 2008 at 6:04 AM, Garrett Smith <dhtmlkitchen@gmail.com>
>> wrote:
>>>
>
[snip-example]
> ======================================================
>

Should have included my results for the example. Here are results from
the first and second alerts.

==============================
borderLeftWidth: Expected 90.86
FF3...90
Sf3...90
IE8...TypeError <- (from attempting to call getComputedStyle)
Op9...91

Op9 rounds up. FF3 and SF3 round down. IE8 not supporting
computedStyles is disappointing.

==============================
marginLeft: expected: 90.86
FF3...90.8667
Sf3...90
IE8...TypeError <- (from attempting to call getComputedStyle)
Op9...91

Finally, one browser gets something right. Firefox3 got it right
(though in binary math, that apparently got rounded). The other
browsers did the same thing they did for border.

==============================

Garrett

> It's inconsistent, but why? Doens't zoom work for margin, too?
>
> Is it possible to acheive zoom effect in another way, or would the
> code for zoom have to be massively changed?
>
> Garrett
>
>> Rob
>

Received on Tuesday, 1 July 2008 06:33:43 UTC