Bug 81863 - Text inputs do not follow the rules for replaced absolutely positioned elements correctly
Summary: Text inputs do not follow the rules for replaced absolutely positioned elemen...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: data:text/html,<input style="position...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 18:54 PDT by Boris Zbarsky
Modified: 2022-07-12 17:02 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Zbarsky 2012-03-21 18:54:49 PDT
Consider the testcase in the url field.  In WebKit this renders with the input stretching the full width of the viewport.  Per CSS 2.1 section 10.3.8, the width should be the width a text input would normally have (rule 1 in 10.3.8), and the 'right' value should be ignored because the values are over-constrained (rule 6 in 10.3.8).

WebKit gets this right for images, but not for text inputs.

Gecko, Presto, and Trident all do this right.
Comment 1 Brent Fulgham 2022-07-12 17:02:11 PDT
WebKit and Blink agree on this behavior. Gecko is the outlier -- I'm not sure if we want to lose compatibility with Chrome behavior here.