Closed Bug 1698302 Opened 4 years ago Closed 4 years ago

progress and meter display wrong width, don't match html value parameter

Categories

(Core :: Widget, defect)

defect

Tracking

()

RESOLVED FIXED
88 Branch
Fission Milestone M7a
Tracking Status
firefox88 --- fixed

People

(Reporter: aja, Assigned: emilio)

References

Details

Attachments

(2 files)

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

Steps to reproduce:

data:text/html,<progress max=1 value=.5></progress>
data:text/html,<meter high=.66 low=.33 max=1 min=0 optimum=.5 value=.25></meter>
data:text/html,<meter high=.66 low=.33 max=1 min=0 optimum=.5 value=.5></meter>
data:text/html,<meter high=.66 low=.33 max=1 min=0 optimum=.5 value=.75></meter>

Actual results:

Indicators are wrong width...too narrow

Expected results:

Indicators should match up with html value parameter.
Problem not found on beta/dev 87, broken on trunk.

This appears to be specific to Non-Native Theme...at least on win.
Sorry, but having issues getting moz-regression to run :(

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Component: General → Widget
Flags: needinfo?(emilio)

The progress chunk already has the right size, but it's easier to get
the right clipping if we just paint it as part of the progress bar.

This is much like we paint the range track and thumb. We apply the
native appearance atomically so this should be fine.

Finally got mozregression running, pointed to Bug 1689252, as you probably already figured out.

Figured it must be something like that, since low/optimum/high colors looked right, which made me assume DOM values must be okay.

I wonder if we could do something more fancy with the animation than
QueueAnimatedContentForRefresh, which is timer based, like a
transform-like animation that WebRender could run or something, but this
is probably good enough for now.

Depends on D108335

Not for this bug but, FWIW, IMHO, don't think you'd hear much screaming about non-animating progress. Nor if meter chunk was flat, rather than linear-gradient.

See Also: → 1698343
Fission Milestone: --- → M7a
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/71549d995fb4 Paint progress/meter chunks along with the track. r=mstange https://hg.mozilla.org/integration/autoland/rev/0b34c40347da bonus: support indeterminate progress meter. r=mstange
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: