Closed
Bug 1399776
Opened 9 years ago
Closed 9 years ago
background-color: transparent makes the checkbox disappear on Firefox Android
Categories
(Core Graveyard :: Widget: Android, defect, P1)
Tracking
(firefox-esr52 unaffected, firefox55 unaffected, firefox56 unaffected, firefox57blocking fixed)
RESOLVED
FIXED
mozilla57
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | unaffected |
| firefox55 | --- | unaffected |
| firefox56 | --- | unaffected |
| firefox57 | blocking | fixed |
People
(Reporter: karlcow, Assigned: lochang)
References
()
Details
(Keywords: regression, Whiteboard: [webcompat])
Attachments
(1 file)
This is a spin off of https://webcompat.com/issues/9899
but I created a https://codepen.io/webcompat/pen/PJwOYG for the reduced test case.
<input type="checkbox" style="background-color: transparent;">
On Safari iOS, it displays the checkbox.
On Firefox Android, it becomes invisible.
On Chrome Android, it displays the checkbox.
Probably since the release of Bug 1352238
Flags: webcompat?
| Reporter | ||
Updated•9 years ago
|
Summary: background-color: transparent makes the checkbox disappears on Firefox Android → background-color: transparent makes the checkbox disappear on Firefox Android
| Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(lochang)
Updated•9 years ago
|
| Assignee | ||
Comment 1•9 years ago
|
||
I will investigate the bug. Leave the ni to remind myself.
| Reporter | ||
Comment 2•9 years ago
|
||
So there are two things at play. I discovered this with https://webcompat.com/issues/9746
1. the default state of the background-color button (radio, checkbox) in the Firefox Android (after Bug 1352238) is transparent. It takes the color of any background. It is white on Firefox Desktop and other browsers.
See https://codepen.io/webcompat/pen/PJwOYG
2. Applying "background-color: transparent" has no effect on Safari and Chrome. and no effect on desktop.
Maybe it has no effect on Firefox Android too, but because the default state is currently transparent, it gives the impression it had.
See Also: → https://webcompat.com/issues/9746
| Reporter | ||
Updated•9 years ago
|
See Also: → https://webcompat.com/issues/9819
Comment 3•9 years ago
|
||
Marking as release blocker based on the number of already known webcompat issues linked to this regression.
status-firefox55:
--- → unaffected
Updated•9 years ago
|
Updated•9 years ago
|
Assignee: nobody → lochang
Status: NEW → ASSIGNED
Priority: -- → P1
Comment 4•9 years ago
|
||
It looks like we simply forgot to add a background in the Paint methods:
http://searchfox.org/mozilla-central/source/widget/android/nsNativeThemeAndroid.cpp#19
Should be pretty easy to fix by adding a Fill there with some grey-ish color.
| Assignee | ||
Comment 5•9 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #4)
> It looks like we simply forgot to add a background in the Paint methods:
> http://searchfox.org/mozilla-central/source/widget/android/
> nsNativeThemeAndroid.cpp#19
> Should be pretty easy to fix by adding a Fill there with some grey-ish color.
Ya. I have added background painting in both checkbox and radio. Could you review the patch? Thanks.
Flags: needinfo?(lochang)
Comment 8•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8909211 [details]
Bug 1399776 - Draw a default background-color: white for checkbox/radio on Android.
https://reviewboard.mozilla.org/r/180796/#review186064
r=mats
nit: I think we normally draw the background before the border,
but either way is probably fine. It might make a difference for
anti-aliasing though?
Attachment #8909211 -
Flags: review?(mats) → review+
| Assignee | ||
Comment 9•9 years ago
|
||
| Assignee | ||
Comment 10•9 years ago
|
||
| Assignee | ||
Comment 11•9 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #8)
> nit: I think we normally draw the background before the border,
> but either way is probably fine. It might make a difference for
> anti-aliasing though?
I think I will leave it the same for now. Since I tried to paint background before border (comment 10), it doesn't fix any fuzzy test.
Also checkin-needed since the try result looks good (comment 9).
Keywords: checkin-needed
Comment 12•9 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4dc8f5f9259c
Draw a default background-color: white for checkbox/radio on Android. r=mats
Keywords: checkin-needed
Comment 13•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•9 years ago
|
status-firefox-esr52:
--- → unaffected
Updated•4 years ago
|
Product: Core → Core Graveyard
Comment 14•3 years ago
|
||
Removing regressionwindow-wanted keyword because this bug has been resolved.
Keywords: regressionwindow-wanted
Comment 15•3 years ago
|
||
Removing regressionwindow-wanted keyword because this bug has been resolved.
Comment 16•3 years ago
|
||
Removing regressionwindow-wanted keyword because this bug has been resolved.
You need to log in
before you can comment on or make changes to this bug.
Description
•