[Webkit-unassigned] [Bug 8883] REGRESSION (14317-14333): input and span elements with the same CSS width are not the same width

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sun May 14 15:27:12 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8883





------- Comment #7 from hyatt at apple.com  2006-05-14 15:27 PDT -------
(In reply to comment #6)
> A page developer must be able to describe content layout consistently and
> predictably with CSS. If 2 boxes with width A, no padding or border, and
> inter-margin B layed out horizontally are specified, it is expected that their
> combined horizontal width is 2A+B. 

I think you're confused.  The rule you cite above (of A + B + A = 2A + B) is
satisfied even after the changes.  The text fields in the file you attached
have borders and padding that you have not removed.  You have many options for
fixing this:

(1) You can explicitly specify -webkit-box-sizing: border-box (along with
-moz-box-sizing: border-box) to make width specified in CSS include the
border/padding.
(2) You can switch to quirks mode by removing your doctype.
(3) You can explicitly remove the border/padding from the textfields in
question by adding border/padding declarations with 0 values to your CSS rules.

The non-overridable internal padding is a red herring that I should not have
mentioned.  It is transparent to you and not relevant to your problem.

With this change, we are now consistent with both Firefox and WinIE.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list