Closed Bug 1991270 Opened 11 months ago Closed 11 months ago

::-moz-meter-bar not working

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 143
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: kubas.safranek, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached image firefox_VWnz92z7rO.jpg

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0

Steps to reproduce:

I have been using ::-moz-meter-bar on my website for a long time to change the color of the meter element, but it stopped working. It can be seen even in MDN example https://developer.mozilla.org/en-US/docs/Web/CSS/::-moz-meter-bar

Actual results:

The set color is not used, the meter has the default green color.

Expected results:

The meter should have the color set by ::-moz-meter-bar.

The Bugbug bot thinks this bug should belong to the 'Toolkit::UI Widgets' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → UI Widgets
Product: Firefox → Toolkit
Component: UI Widgets → CSS Parsing and Computation
Product: Toolkit → Core

Bisecting this, it boils down to either bug 1971443 or bug 663367, I believe.

Flags: needinfo?(emilio)
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

Probably bug 1971450 actually. See the commit message of the patch for details.

You just need to add appearance: none (or -moz-appearance: none) to the <meter> to disable the native styling.

Before that, a meter bar style would prevent the native appearance only if borders or backgrounds where specified. If you remove the background / border-radius from the MDN example, the box shadow doesn't render even before my patch.

I think given the fix is just adding appearance: none to the meter, that we've been shipping this for a while, and that there's ongoing effort in standardizing these, I think we should probably WONTFIX this behavior change.

I'll add dev-doc-needed to the other bug to document this on MDN / fix the example.

Status: NEW → RESOLVED
Closed: 11 months ago
Flags: needinfo?(emilio)
Keywords: regression
Regressed by: 1971450
Resolution: --- → WONTFIX

Thanks, this advice is enough for me.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: