W3C home > Mailing lists > Public > www-style@w3.org > July 2008

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

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 30 Jun 2008 23:33:07 -0700
Message-ID: <c9e12660806302333t3a5bb70dv64057011f7d69737@mail.gmail.com>
To: robert@ocallahan.org
Cc: Www-style <www-style@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT