Closed Bug 1211387 Opened 10 years ago Closed 10 years ago

Web content does not expect background-image set on <input> UA stylesheet, result strange gradient on e.g. Facebook

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox44 fixed)

RESOLVED FIXED
FxOS-S9 (16Oct)
Tracking Status
firefox44 --- fixed

People

(Reporter: timdream, Assigned: timdream)

References

()

Details

Attachments

(2 files, 4 obsolete files)

Attached image facebook.png
I proposed we remove all background gradients from <input> since lot of sites like Facebook does not expect to reset |background-image| property on the UA style sheet.
I believe simply remove the background first is better than waiting for bug 1157307 to be fixed.
See Also: → 1157307
Attached patch bug1211387.patch (obsolete) — Splinter Review
I did not start fixing the reftest because I figured it's probably better to wait for one more persons acknowledgement on this issue on the fact that I am not bikeshedding. I did not completely map the fixes done on Fennec in bug 763671 because the button style was replaced with an SVG file -- I don't know if we want to do that in B2G (or "Mozilla Foxfood") too. Sorry for the unrelated reference too bug 1034832 comment 37.
Attachment #8669585 - Flags: review?(fabrice)
Attachment #8669585 - Flags: review?(21)
Comment on attachment 8669585 [details] [diff] [review] bug1211387.patch Review of attachment 8669585 [details] [diff] [review]: ----------------------------------------------------------------- I'm fine with doing that if that doesn't break pages that use default unstyled controls. Eg. do we still display a simple <button> properly?
Attachment #8669585 - Flags: review?(fabrice)
Attachment #8669585 - Flags: review?(21)
Attachment #8669585 - Flags: review+
Attached patch bug1211387.patch (obsolete) — Splinter Review
I don't really know why bug 763671 set the background color of buttons as white but yes that's not going to work for B2G. There is the updated style in which colors are taken as the value at 50% position of all the gradients. https://treeherder.mozilla.org/#/jobs?repo=try&revision=77ed21439f09
Attachment #8670091 - Flags: review+
Attachment #8669585 - Attachment is obsolete: true
Attached patch bug1211387.patch (obsolete) — Splinter Review
Fixing all reftests and remove the resulting unexpected pass https://treeherder.mozilla.org/#/jobs?repo=try&revision=48fd35d228dd
Attachment #8670091 - Attachment is obsolete: true
Attached patch bug1211387.patch (obsolete) — Splinter Review
Revert the changes on <button> and <select size=1> etc to retain the accordance. The disabled selectors duplicates but I don't want to fix them in this bug because the patch should not changed too much with the r+'d one. https://treeherder.mozilla.org/#/jobs?repo=try&revision=f41cc81994e0
Attachment #8670131 - Attachment is obsolete: true
Attachment #8670162 - Flags: review+
Looks good.
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S9 (16Oct)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: