Closed Bug 1536264 Opened 6 years ago Closed 6 years ago

Some <option> CSS properties should be preserved while the option is active (was: Custom styling of <option> elements in a <select> is lost while they are active)

Categories

(Core :: Layout: Form Controls, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla68
Tracking Status
firefox-esr60 --- wontfix
firefox66 --- wontfix
firefox67 --- verified
firefox68 --- verified

People

(Reporter: jfkthame, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file testcase

Open the <select> menu in the testcase, and move the mouse up and down to different options within it. Note how the custom styling of options is "forgotten" while they are active/highlighted.

Yeah, I guess the color / background change is intentional, but the other properties should probably be kept. Will take a look this week.

Blocks: 1375476
Flags: needinfo?(emilio)
Summary: Custom styling of <option> elements in a <select> is lost while they are active → Some <option> CSS properties should be preserved while the option is active (was: Custom styling of <option> elements in a <select> is lost while they are active)
Assignee: nobody → emilio
Flags: needinfo?(emilio)

Otherwise you see font changes when hovering, which is not really desirable.

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/de836d015f32 Only reset color / background / text-shadow for active options. r=jaws

Ouch, I always forget that these are disabled on Linux....

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/104d3e54d7ab Only reset color / background / text-shadow for active options. r=jaws
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68

Comment on attachment 9052157 [details]
Bug 1536264 - Only reset color / background / text-shadow for active options. r=jaws,mconley

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: Bug 1375476
  • User impact if declined: Some <option> elements with custom font may look jumpy when hovering.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See comment 0.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a relatively-simple patch.
  • String changes made/needed: none
Attachment #9052157 - Flags: approval-mozilla-beta?
Flags: qe-verify?
Flags: qe-verify? → qe-verify+

Comment on attachment 9052157 [details]
Bug 1536264 - Only reset color / background / text-shadow for active options. r=jaws,mconley

Safe patch already verified on nightly and a follow up for the fix for bug 1375476 landed in the 67 cycle which fixed a notable CSS support regression caused by e10s, approved for beta 5, thanks.

Attachment #9052157 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:67.0) Gecko/20100101 Firefox/67.0
Build ID: 20190325125126

Verified as fixed on the latest Nightly build and on the latest Beta build.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: