Bug 126890 - Subpixel Layout: <input type="number"> reports wrong offsetWidth.
Summary: Subpixel Layout: <input type="number"> reports wrong offsetWidth.
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-13 07:18 PST by zalan
Modified: 2014-09-30 14:11 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2014-01-13 07:18:40 PST
unless the input value is reset (set to 1) in-between 2 queries.

shouldBe('numberWidth(0, 1000000, 1)', 'textWidthPlusSpinButtonWidth(7)');
shouldBe('numberWidth(0, 10000000, 1)', 'textWidthPlusSpinButtonWidth(8)');

fails at value '8' while

shouldBe('numberWidth(0, 1000000, 1)', 'textWidthPlusSpinButtonWidth(7)');

shouldBe('numberWidth(0, 1, 1)', 'textWidthPlusSpinButtonWidth(1)');

shouldBe('numberWidth(0, 10000000, 1)', 'textWidthPlusSpinButtonWidth(8)');

works ok.

LayoutTests/fast/forms/number/number-size.html
Comment 1 zalan 2014-01-13 21:30:30 PST

*** This bug has been marked as a duplicate of bug 126889 ***
Comment 2 zalan 2014-01-14 09:37:09 PST
Committed r161977: <http://trac.webkit.org/changeset/161977>
Comment 3 zalan 2014-01-14 09:38:19 PST
Bot closed it accidentally. Reopening.