The new non-native widget theme doesn't have any padding between blinking cursor & border, in a textarea
Categories
(Core :: Widget, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: dholbert, Assigned: emilio)
References
Details
Attachments
(3 files)
+++ This bug was initially created as a clone of Bug #1686606 +++
STR:
- Run Firefox with about:config
widget.disable-native-theme-for-content
set totrue
. - View https://bugzilla.mozilla.org/attachment.cgi?id=9196980
- Focus the textarea (the lower/taller form control)
ACTUAL RESULTS:
In the textarea, the blinking cursor is flush with (or maybe even overlaps?) the top border. This makes it look a bit misaligned / overflowing.
For comparison: in the textfield (the first widget), there's a little bit of space between the cursor and the borders, as of today's Nightly (thanks to bug 1686606).
EXPECTED RESULTS:
There should be a little bit of blank padding-area between the blinking cursor and the textarea's border, to visually separate them.
Reporter | ||
Comment 1•3 years ago
|
||
ni=emilio in case he's up for taking a look, since he just landed a fix for related bug 1686606.
Assignee | ||
Comment 2•3 years ago
|
||
We don't have any padding on textareas by default. I see the same behavior on other themes. We could certainly add some (Chrome seems to have 2px padding by default). But this doesn't seem like a non-native theme specific thing, unless I'm missing something?
Reporter | ||
Comment 3•3 years ago
|
||
Hmm -- on Ubuntu and MacOS, I do indeed see that there's no padding by default.
However, on Windows (where most of our users are), there does seem to be 2px of padding, in the default theme on Firefox release. (screenshot coming up). So we probably don't want to regress that; and given that it seems webcompat-friendly (per Chrome's behavior), maybe we should adopt it as our cross-platform standard behavior in the new non-native theme?
Reporter | ||
Comment 4•3 years ago
|
||
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 5•3 years ago
|
||
Here's the default computed 'padding' styles of a textarea
, in current Firefox on Win10 -- as you can see, it's 2px on all sides.
(On Ubuntu [not shown here], I do see that we have 0px padding on the top and bottom, by default. But on Win10, we seem to use 2px on all sides.)
Assignee | ||
Comment 6•3 years ago
|
||
This matches other browsers, and the default themed textareas on Windows
too.
To be landed after the soft freeze, just in case, of course.
Updated•3 years ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/64682b454ac6 Make textarea default padding 2px on all platforms. r=dholbert
Comment 8•3 years ago
|
||
Backed out for causing failures on browser_inplace-editor_maxwidth.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/31462a8e07406103e8d97b19faf9af3bd63530b6
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&selectedTaskRun=E9eyDlOnQi6c4aq97GSfGw.0&revision=64682b454ac62a9ad7bccedd3efce40e1dab29ae&searchStr=dt
Failure log: https://treeherder.mozilla.org/logviewer?job_id=327674911&repo=autoland&lineNumber=4367
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f2cef92ec339 Make textarea default padding 2px on all platforms. r=dholbert,jdescottes
Assignee | ||
Updated•3 years ago
|
Comment 10•3 years ago
|
||
bugherder |
Description
•