Closed Bug 171761 Opened 23 years ago Closed 23 years ago

Pixel values are not rounded consistently

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 182670

People

(Reporter: vladimire, Assigned: jst)

Details

Attachments

(1 file)

Getting computed value of min-height property set to pixels rounds to 1 decimal, while getting the computed value of min-height property set to percentage rounds to 4 decimals. See testcase attached.
Attached file testcase
I see the exact same rounding on both of those (to 4 decimals). The fact is, those are "unrounded" values -- we just take the twips value layout has, convert to pixels, and return whatever the conversion result is. If it looks like it's rounded, someone in the guts of layout may be rounding (and all of layout rounds to the nearest twip, of course).
*** This bug has been marked as a duplicate of 182670 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Vfy
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: