Bug 126890

Summary: Subpixel Layout: <input type="number"> reports wrong offsetWidth.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: REOPENED ---    
Severity: Normal CC: webkit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

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.