Textarea padding crops text to the content box in the block direction, unlike other browsers.
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
People
(Reporter: karlcow, Assigned: emilio)
References
()
Details
(Whiteboard: [webcompat])
Attachments
(1 file)
Updated•7 years ago
|
Comment 1•6 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Comment 2•6 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Emilio, can you give this a better title? It kinda seems related to Bug 1561794 (in spirit, at least).
| Assignee | ||
Comment 4•6 years ago
|
||
So a reduced test-case would be something like:
data:text/html,<textarea placeholder="foo barr baz foo barr baz foo barr baz foo barr baz" style="max-width: 100px; height: 23px; padding: 6px; box-sizing: border-box; resize: none; overflow: hidden"></textarea>
If I understand correctly. Seems like Chrome doesn't clip the bottom to the content box but the padding box. The Gecko behavior is caused by this line.
It seems this is bug 752790, but for textareas.
| Assignee | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Looks like we should update these pages in response to this change:
https://developer.mozilla.org/en-US/docs/Mozilla/Gecko/Chrome/CSS/overflow-clip-box
https://developer.mozilla.org/en-US/docs/Mozilla/Gecko/Chrome/CSS/overflow-clip-box-block
Right now, those pages have a note saying ...<input type="text"> and similar use the value content-box...
Comment 7•6 years ago
|
||
(As of this bug, <input type="text"> and similar will use the compound value padding-box content-box.)
Comment 9•6 years ago
|
||
Backed out changeset 8514a3095fca (bug 1456052) for causing padding-scrollbar-placement.html to perma fail
push that caused the backout: https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedJob=257772939&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel%2Crunnable&revision=8514a3095fca5290475ec843e201c357944b63c5
backout: https://hg.mozilla.org/integration/autoland/rev/ff46b4053312b2320761acf4cb1e15d174456c8e
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 13•6 years ago
|
||
Backed out in bug 1569078.
Updated•6 years ago
|
Comment 14•6 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:emilio, could you have a look please?
For more information, please visit auto_nag documentation.
Comment 16•6 years ago
|
||
I have updated the notes on the pages dholbert referenced, as advised. Let me know if that looks OK for the docs.
Comment 17•6 years ago
•
|
||
Oops, sorry Chris -- this change was actually backed out (see comment 13), so the pages' old content is back to being accurate (and the update has inadvertently made it inaccurate).
Would you mind reverting the MDN change? Perhaps this patch will re-land at some point and we'll want to make the change again, but for now we're back to where we started. :)
Comment 18•6 years ago
|
||
[--> restoring the "dev-doc-needed" keyword as a reminder that we'll want to perform this MDN edit again, once this bug is fixed.]
Comment 19•6 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #17)
Oops, sorry Chris -- this change was actually backed out (see comment 13), so the pages' old content is back to being accurate (and the update has inadvertently made it inaccurate).
Would you mind reverting the MDN change? Perhaps this patch will re-land at some point and we'll want to make the change again, but for now we're back to where we started. :)
Ah, no worries - reverted!
| Assignee | ||
Comment 20•4 years ago
|
||
It doesn't seem like GTranslate breaks with a rebased version of the patch, so I'll try to reland this.
Comment 22•4 years ago
|
||
Comment 23•4 years ago
|
||
Comment 24•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bfa4852bf11f
https://hg.mozilla.org/mozilla-central/rev/36d6f96547e1
Updated•4 years ago
|
Comment 25•4 years ago
|
||
This is Firefox internal content, so not in the remit of the MDN writers team any more (it currently shows on MDN as archived, and we are hoping it'll be moved off MDN soonish). I'm therefore removing dev-doc-needed from here.
Description
•