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

Computed Style and Border Width - Question [CSSOM]

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 30 Jun 2008 11:04:33 -0700
Message-ID: <c9e12660806301104w2316b5cak5a3b671b5ab1db0c@mail.gmail.com>
To: Www-style <www-style@w3.org>

When an element's border width is computed from EM, should the
computed border width include fractions of a pixel?

IOW, when calling:-

 getComputedStyle(el, '').borderWidth,

- is the return a float or an int?

Furthermore, should the precision, if rounded down for rendering, be
preserved? If it is preserved, it would seem that three border-widths
of 33.3px would add up to 100px, and that this is where the element
should appear, and that measurement should be reflected in

Received on Monday, 30 June 2008 18:05:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:37 UTC