Closed Bug 1861253 Opened 7 months ago Closed 6 months ago

Select color no longer affects dropdown arrow color.

Categories

(Core :: Layout: Form Controls, defect)

Firefox 119
defect

Tracking

()

VERIFIED FIXED
121 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- verified
firefox120 --- verified
firefox121 --- verified

People

(Reporter: guentherhanslphdyt, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached file index.html

Steps to reproduce:

Make a simple HTML file with a <select> element.

Give the select element a "color" property of "white" and a "background-color" property of "black".

Give the element the -webkit-text-fill-color: currentcolor property

Actual results:

The arrow stays grey -> not visible anymore

Expected results:

The arrow should follow the color property when using currentcolor. Currentcolor is also the initial default value, so the arrow should always follow the color value even without this property explicitly set.

Keywords: regression
Regressed by: 1849793
Status: UNCONFIRMED → NEW
Ever confirmed: true

Set release status flags based on info from the regressing bug 1849793

:emilio, since you are the author of the regressor, bug 1849793, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

In the regressing bug 1849793 I removed a hunk like this because we
don't use any of the parent state on the parent properly:

  if (aAppearance == StyleAppearance::MozMenulistArrowButton) {
    // HTML select and XUL menulist dropdown buttons get state from the
    // parent.
    nsIFrame* parentFrame = aFrame->GetParent();
    aFrame = parentFrame;
    elementState = GetContentState(parentFrame, aAppearance);
  }

However that aFrame = parentFrame also changed the frame we read the
color for the fill. This is not an issue for menus because those don't
override the colors, but for the select menulist button we need to
explicitly inherit.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Summary: -webkit-text-fill-color doesn't correctly apply currentcolor value → Select color no longer affects dropdown arrow color.

Maybe worth uplifiting to 120beta, given that this was a new regression shipped in 119 and we're early in the beta cycle?

Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dd29bee48c0c
Draw select's menulist arrow in the select's color. r=dholbert
Duplicate of this bug: 1861630

If it's low risk and :emilio agrees, then we can aim to include this in a 119 dot release (scheduled dot release planned for 2023-11-07)
This just needs a beta and release uplift request once it sticks in central.

Comment on attachment 9360485 [details]
Bug 1861253 - Draw select's menulist arrow in the select's color. r=dholbert,#layout

Beta/Release Uplift Approval Request

  • User impact if declined: comment 0
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 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): Trivial CSS tweak.
  • String changes made/needed: none
  • Is Android affected?: Yes
Attachment #9360485 - Flags: approval-mozilla-release?
Attachment #9360485 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch

Comment on attachment 9360485 [details]
Bug 1861253 - Draw select's menulist arrow in the select's color. r=dholbert,#layout

Approved for 120.0b4

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

Reproduced this issue on an affected Nightly build from 203-10-25, on Win 10.
Verified as fixed on Firefox 120.0b4 (20231030023604 - treeherder build) and Firefox 121.0a1 (20231028092407) on Win 10, Ubuntu 22 and macOS 10.15.

Comment on attachment 9360485 [details]
Bug 1861253 - Draw select's menulist arrow in the select's color. r=dholbert,#layout

Approved for 119.0.1

Attachment #9360485 - Flags: approval-mozilla-release? → approval-mozilla-release+
Flags: in-testsuite+
Flags: qe-verify+

Verified as fixed on Firefox 119.0.1 (20231106151204) on Win 10, Ubuntu 22 and macOS 13.1

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

Attachment

General

Creator:
Created:
Updated:
Size: