Styles assigned to OPTION elements aren't used for pull-down SELECT lists (comboboxes)
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: SkewerMZ, Unassigned)
References
()
Details
(Keywords: testcase, Whiteboard: [Chrome supports on Windows])
Attachments
(5 files)
Comment 3•24 years ago
|
||
Updated•24 years ago
|
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
Reporter | ||
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
Comment 12•22 years ago
|
||
Comment 13•22 years ago
|
||
Comment 14•22 years ago
|
||
Comment 15•22 years ago
|
||
Comment 16•22 years ago
|
||
Comment 17•22 years ago
|
||
Comment 18•22 years ago
|
||
Comment 19•22 years ago
|
||
Comment 20•22 years ago
|
||
Comment 21•22 years ago
|
||
Comment 22•21 years ago
|
||
Comment 23•21 years ago
|
||
Comment 24•21 years ago
|
||
Comment 25•21 years ago
|
||
Comment 26•21 years ago
|
||
Comment 27•20 years ago
|
||
Comment 28•20 years ago
|
||
Comment 29•20 years ago
|
||
Comment 30•20 years ago
|
||
Comment 31•20 years ago
|
||
Comment 32•20 years ago
|
||
Comment 33•20 years ago
|
||
Comment 34•20 years ago
|
||
Comment 35•20 years ago
|
||
Comment 36•20 years ago
|
||
Comment 37•20 years ago
|
||
Comment 38•20 years ago
|
||
Comment 39•20 years ago
|
||
Updated•20 years ago
|
Comment 40•20 years ago
|
||
Comment 41•20 years ago
|
||
Comment 42•19 years ago
|
||
Comment 43•19 years ago
|
||
Comment 44•19 years ago
|
||
Comment 45•18 years ago
|
||
Comment 46•18 years ago
|
||
Comment 47•18 years ago
|
||
Comment 48•18 years ago
|
||
Comment 49•18 years ago
|
||
Comment 50•18 years ago
|
||
Comment 52•17 years ago
|
||
Comment 53•17 years ago
|
||
Comment 54•17 years ago
|
||
Comment 55•17 years ago
|
||
Comment 56•17 years ago
|
||
Comment 57•17 years ago
|
||
Comment 58•17 years ago
|
||
Comment 59•17 years ago
|
||
Comment 62•16 years ago
|
||
Updated•15 years ago
|
Updated•15 years ago
|
Updated•9 years ago
|
Comment 67•7 years ago
|
||
Comment 68•7 years ago
|
||
Updated•7 years ago
|
Comment 69•7 years ago
|
||
Comment 71•7 years ago
|
||
Comment 73•6 years ago
|
||
This seems to work in Firefox 64.0.2 on Windows, but not 64.0 on Linux. Works in Edge and Chrome in Windows, and Chrome in Linux. Test codepen: https://codepen.io/Pointy/pen/YBqjxq
Updated•2 years ago
|
Comment 74•2 years ago
|
||
The severity field for this bug is relatively low, S4. However, the bug has 29 duplicates and 18 votes.
:emilio, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 75•2 years ago
|
||
We support it on windows and on all non-android platforms with dom.forms.select.customstyling=true
, but it unlikely to become the default on macOS at least, and probably Linux.
Comment 76•2 years ago
|
||
is there any good reason, why it a) was disabled ( because it was working on Linux long ago oob) and b) is not enabled by default at all?
Reference: https://www.w3schools.com/tags/tag_option.asp supports https://www.w3schools.com/tags/ref_standardattributes.asp here STYLE.
So it's in the w3c standards.
Comment 77•2 years ago
|
||
It never worked properly on Linux after e10s until relatively recently (see bugs that block bug 1406865). On macOS it was disabled in bug 1703866, see there for context.
Comment 78•2 years ago
|
||
Forgive me, what is/was "e10s"?
That bug is 5 years old and needs retesting, so I run a testcase for coloring the options background, which worked as expected on Fedora 35 FF 105, after I enabled it in the prefs.
Is there testsite to run a full test on it?
Comment 79•2 years ago
|
||
Presumably that needinfo was for me. A bit hilarious that there's an Emilio Alvarez with a very similar name to me.
e10s is electrolysis, the Firefox multi-process architecture that was worked on a while ago and reworked the select popup (to draw it in the parent process).
Locally, on Arch, there are two subtests of browser/base/content/test/forms/browser_selectpopup_colors.js
which fail:
FAIL TRANSLUCENT_SELECT_BECOMES_OPAQUE popup has expected background color (no top coat) - Got "rgb(245, 245, 247)", expected "rgb(255, 255, 255)"
Stack trace:
chrome://mochikit/content/browser-test.js:test_is:1485
chrome://mochitests/content/browser/browser/base/content/test/forms/browser_selectpopup_colors.js:testSelectColors:439
FAIL TRANSLUCENT_SELECT_APPLIES_ON_BASE_COLOR popup has expected background color (no top coat) - Got "rgb(245, 105, 107)", expected "rgb(255, 115, 115)"
Stack trace:
chrome://mochikit/content/browser-test.js:test_is:1485
chrome://mochitests/content/browser/browser/base/content/test/forms/browser_selectpopup_colors.js:testSelectColors:439
Would need to check automation as well since the test is skipped. Other than that it's just a UX decission.
Comment 80•2 years ago
|
||
quick testresult:
Working style attributes: color, background, font-*
Not working style attributes: line-height, border, padding ... and i can't blame the engine for it as it's in a select box context ;)
Other attributes have not been checked and do not make any sense in the context anyway.
Conclusion: rationally working as expected. I upload a blurred image ( content needs to be private, but will do )
Comment 81•2 years ago
|
||
Comment 82•2 years ago
|
||
Yeah, supported properties are in https://searchfox.org/mozilla-central/rev/b4150d1c6fae0c51c522df2d2c939cf5ad331d4c/toolkit/actors/SelectChild.jsm#29-44
Comment 83•2 years ago
|
||
except for "direction", which hasn't been tested, the above test works. "text-shadows" works, but i have my doubts abouts it's usefullness :)
Description
•