Closed
Bug 1117532
Opened 11 years ago
Closed 8 years ago
box-sizing and text in value attribute of input element causing text disappearance on particular text field
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
DUPLICATE
of bug 752790
People
(Reporter: Swarnava, Unassigned)
References
Details
(Whiteboard: DUPEME [webcompat])
From http://lists.w3.org/Archives/Public/www-style/2014Nov/0037.html
Check this test in Firefox (Gecko) and in Opera/Chrome (Blink)
http://jsbin.com/hegatadeju/1/edit?html,css,output
The value "hi" doesn't appear in Gecko, because there's no room left for it.
<input type="text" value="hi">
In both Blink and Gecko the inner height is 0 (at least as shown by the devtools).
The spec doesn't say anything specific in this corner case.
http://dev.w3.org/csswg/css-ui/#box-sizing0
but it creates Web Compatibility issues.
https://bugzilla.mozilla.org/show_bug.cgi?id=1093626
https://bugzilla.mozilla.org/show_bug.cgi?id=1084906
![]() |
||
Comment 1•11 years ago
|
||
This has nothing to do with box-sizing. It's just a matter of what the content height is.
There are also existing bugs on this.
Whiteboard: DUPEME
Comment 2•11 years ago
|
||
You're right.
Here's a reduced testcase, with no "border-box" dependency, where we only display a tiny strip of the <input>'s text, whereas chrome displays the full height of the text:
data:text/html,<input style="box-sizing: content-box; height: 5px; padding: 10px" value="hi">
![]() |
||
Comment 3•11 years ago
|
||
The thread about this is at http://lists.w3.org/Archives/Public/www-style/2014Nov/thread.html#msg37
The bug was discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1084906
Comment 4•11 years ago
|
||
(In reply to Karl Dubost :karlcow from comment #3)
> The thread about this is at
> http://lists.w3.org/Archives/Public/www-style/2014Nov/thread.html#msg37
> The bug was discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1084906
Was there consensus after the 18th of November about what should happen here? As best I could tell at the time, there were still outstanding questions. :-(
Flags: needinfo?(kdubost)
![]() |
||
Comment 5•11 years ago
|
||
not that I know. But Boris and David might have ideas on what we should do next.
I just know that it creates webcompat issues.
Flags: needinfo?(kdubost)
Comment hidden (obsolete) |
Comment hidden (obsolete) |
![]() |
||
Updated•9 years ago
|
Whiteboard: DUPEME → DUPEME [webcompat]
![]() |
||
Comment 8•9 years ago
|
||
Another case has been found online
found at https://misfit.com/customer/account/forgotpassword
noticed by https://twitter.com/sharperdotnet/status/773328281147932672
![]() |
||
Comment 10•9 years ago
|
||
Another case for this issue. On a big Web site https://www.theweathernetwork.com/
See https://webcompat.com/issues/3436
See Also: → https://webcompat.com/issues/3436
![]() |
||
Comment 11•8 years ago
|
||
Another instance of this issue.
https://webcompat.com/issues/4927
See Also: → https://webcompat.com/issues/4927
![]() |
||
Comment 12•8 years ago
|
||
Another instance of this issue
https://webcompat.com/issues/4914
See Also: → https://webcompat.com/issues/4914
![]() |
||
Comment 13•8 years ago
|
||
(In reply to Boris Zbarsky [:bz] (still a bit busy) (if a patch has no decent message, automatic r-) from comment #1)
> This has nothing to do with box-sizing. It's just a matter of what the
> content height is.
>
> There are also existing bugs on this.
I wonder if Boris was thinking about Bug 752790
Flags: needinfo?(bzbarsky)
Comment 15•8 years ago
|
||
I see it here: http://mmanuts.com
![]() |
||
Comment 16•8 years ago
|
||
Let's close this one as a duplicate of Bug 752790
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•