Closed Bug 1746758 Opened 3 years ago Closed 3 years ago

Firefox doesn't consider the min attribute of the <meter> element

Categories

(Core :: Widget, defect)

Firefox 95
Unspecified
All
defect

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- fixed

People

(Reporter: cpartiot, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Steps to reproduce:

create a <meter> element with attributes min="1.0" max="2.0" value="1.5".

Actual results:

gauge should appear at middle (50%) of the meter .

Expected results:

gauge appear at middle-right (75%) of the meter as if min was 0.0.

playground: https://codepen.io/pen/wvreMBY

We tried to reproduce this issue on Ubuntu 20.04 using Firefox 97.0a1 (2021-12-20) and we could not recreate a middle-right positioning.

Can you test the issue while in Safe Mode? You can find helpful info here: https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode.
Further, a fresh new profile could help. You can find more about creating a new profile here: https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems#w_6-create-a-new-firefox-profile.

If possible, please provide a screenshot/screen recording of the issue.

Flags: needinfo?(cpartiot)
Attached image meter min bug

Tested on Firefox 95 with clean profile, also tried on Firefox 96 and 97

Flags: needinfo?(cpartiot)

bug also observed on firefox 95 windows 10 and firefox 95 macOS 10 Catalina

This bug seam to be introduced since Firefox 89 and doesn't occur on Firefox ≤ 88

OS: Unspecified → All

Thanks for the screenshot and letting us know that this used to work back in ~88. We could also reproduce the issue now and also found out that it is a regression caused by Bug 1690842.

Severity: -- → S4
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Component: Untriaged → Layout
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Regressed by: 1690842
Component: Layout → Widget
Flags: needinfo?(emilio)

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

Flags: needinfo?(emilio)

And cleanup related code for <progress> and so while at it.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4d6fcbc95eb4 Correctly compute meter position in nsNativeBasicTheme. r=spohl
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32175 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Upstream PR merged by moz-wptsync-bot

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

It's an old regression, probably no need to uplift.

Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: