Textarea text scrolls under padding instead of over
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
Webcompat Priority | P1 |
People
(Reporter: erisds, Unassigned)
References
Details
(Whiteboard: [webcompat])
Attachments
(5 files)
Reporter | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Reporter | ||
Comment 5•10 years ago
|
||
Comment 7•10 years ago
|
||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Comment 12•6 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•5 years ago
|
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
Comment 15•4 years ago
|
||
Regarding the webcompat stuff, it still is broken, but way less noticeable when it's 8px rather than 40px.
Made a comment about it on https://github.com/webcompat/web-bugs/issues/18209#issuecomment-769982657
Attached the same screenshots above.
Comment 16•4 years ago
|
||
Originally I was just having a good time creating a component that used a textarea.
All was good, until I added some padding to it.
Then it became harder to use and way less accessible.
I spent some time fiddling with it, but came short on all my attempts. My general searches came up empty.
Then I opened it Chrome, and it worked as expected.
I narrowed my search to "firefox textarea padding bug" and found the old issue at https://bugzilla.mozilla.org/show_bug.cgi?id=157846
It seemed unrelated first, until I saw the comment https://bugzilla.mozilla.org/show_bug.cgi?id=157846#c155
And it was exactly what I was experiencing!
Unfortunately, it seemed like Hannah didn't file a new bug, but after some more desperate searches, I found this issue!
Though not closed, it was at least reopened, so I had hope. Even more so when there was an issue with Github regarding it.
Sadly, it seems this bug got ignored after Github solved it for them them by replacing a very noticeable 40px padding with a barely noticeable 8px instead.
But the issue still remain.
And it is driving me nuts.
This is my last resort to solve it before I have to let it go due to time constraints, and let Firefox users suffer, rather than all the others.
Does anyone know of a workaround, some weird -moz-textarea-padding-box-sizing: border-box
magic or anything, until I might be able to dig into this and try and solve it myself?
Updated•4 years ago
|
Comment 17•4 years ago
|
||
Bug 1456052 fixed this, but it broke google translate so had to be backed out. But that's the right fix, effectively.
Comment 18•4 years ago
|
||
Let's dupe forward, I'll try to reland bug 1456052.
Ole, can you confirm that if you go to about:config, change layout.css.overflow-clip-box.enabled
to true, and set overflow-clip-box: padding-box content-box
on the textarea with your example, it behaves as you expect?
Thanks.
Comment 19•4 years ago
|
||
Comment 20•4 years ago
|
||
Comment 21•4 years ago
|
||
Comment 22•4 years ago
|
||
Thank you, Emilio!!
So glad to see this being progressed.
I toggled layout.css.overflow-clip-box.enabled
to true, and slapped on overflow-clip-box: padding-box content-box
the Github comment box.
It's so close to working as you'd expect, as I'd say it's good to go!! Check out the screenshots above.
There's one issue with the bottom of it, check https://bug1099204.bmoattachments.org/attachment.cgi?id=9200379
I manually changed the padding from 8px to 20px to showcase it better.
The padding bottom is ignored or something, so the last line has no padding - you cannot scroll further, as you'd expect. Like the top padding.
Comment 23•4 years ago
|
||
That is bug 748518, so I'd say it's working as expected.
Comment 24•4 years ago
|
||
Perfect!! Thank you for linking that one.
Comment 25•4 years ago
|
||
I just randomly stumbled upon this again, but this time it was working!!
AWESOME
Thank you, Emilio!
Description
•