Bug 108967 - Rendering error when changing horizontal padding on an input element
Summary: Rendering error when changing horizontal padding on an input element
Status: CLOSED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-05 12:32 PST by Chris H-C
Modified: 2013-05-02 11:57 PDT (History)
4 users (show)

See Also:


Attachments
Test Case (471 bytes, text/html)
2013-02-05 12:32 PST, Chris H-C
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris H-C 2013-02-05 12:32:50 PST
Created attachment 186676 [details]
Test Case

Try the attached test case: It has an input with left padding (padding-right exhibits the same issue, but padding-left makes it look even worse) set by style .leftpad and a button that toggles .leftpad on the input.

Toggling the style results in the text moving, but not updating its clip properly. You can edit the input to force it to update its text's clip (interesting, too, that it doesn't self-correct on focus).
Comment 1 Robert Hogan 2013-02-07 11:42:15 PST
The test case appears fine to me on:

Google Chrome	26.0.1397.2 (Official Build 179372) dev
OS	Linux 
WebKit	537.28 (@140956)
Comment 2 Chris H-C 2013-02-07 12:22:52 PST
(In reply to comment #1)
> The test case appears fine to me on:
> 
> Google Chrome    26.0.1397.2 (Official Build 179372) dev
> OS    Linux 
> WebKit    537.28 (@140956)

Broken on 24.0.1312.57 (WebKit 537.17) (Windows). That narrows it down...
Comment 3 Robert Hogan 2013-05-02 11:54:39 PDT
I'm going to resolve this - it is not reproducible on trunk WebKit. Please re-open if I'm wrong on that point.
Comment 4 Chris H-C 2013-05-02 11:57:52 PDT
Yes, sounds right.