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)

defect
Not set
normal

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
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
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">
(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)
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)
Whiteboard: DUPEME → DUPEME [webcompat]
Thanks for adding this Karl!
(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)
That sounds plausible, yes.
Flags: needinfo?(bzbarsky)
I see it here: http://mmanuts.com
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.