Open Bug 1663819 Opened 5 years ago Updated 3 years ago

moz-range-thumb cannot be relatively-positioned

Categories

(Core :: CSS Parsing and Computation, defect)

80 Branch
defect

Tracking

()

REOPENED
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- wontfix
firefox81 --- fix-optional
firefox82 --- ?

People

(Reporter: daniel.livingston, Assigned: emilio, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36

Steps to reproduce:

Stacked input range sliders, with z-index set on the thumb to simulate a multi-range sider e.g. http://projects.verou.me/multirange/

Actual results:

z-index set on pseudo element moz-range-thumb seem to be ignored

Expected results:

The thumb of a lower slider should be stacked according to z-index on top of the track of the upper slider for instance, as per Firefox less than 80

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

That polyfill was relying on a Firefox bug. It broke with bug 1256980.

However they can't do the same thing they do in WebKit because we enforce their position to be static, so you can't relatively-position the thumbs. We should loosen that restriction.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Regressed by: 1256980
Summary: moz-range-thumb z-index ignored → moz-range-thumb cannot be relatively-positioned
Has Regression Range: --- → yes

These were there to prevent crashes because when the type of the frame
changes dynamically we would mess up and fail to find the right
insertion point.

We deal with this correctly nowadays:

https://searchfox.org/mozilla-central/rev/b2716c233e9b4398fc5923cbe150e7f83c7c6c5b/layout/base/nsCSSFrameConstructor.cpp#8521-8536

And the list was never exhaustive in the first place (e.g., writing-mode
can also cause us to reframe, and so do a bunch of other properties). So
there's no real reason to be so strict anymore.

Also change ::-moz-complex-control-wrapper while at it too, because it's
not web exposed so there's no need for those declarations in the first
place.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Attachment #9174644 - Attachment description: Bug 1663819 - Loosen the styling restrictions on input[type=range] pseudo-elements. r=jwatt,#layout-reviewers → Bug 1663819 - Loosen the styling restrictions on meter and input[type=range] pseudo-elements. r=jwatt,#layout-reviewers

After this fix, the polyfill needs to be updated to use position: relative instead of / as well as transform: scale(1) which is what it was using.

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

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b0587b321c5b Loosen the styling restrictions on meter and input[type=range] pseudo-elements. r=jwatt
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

(To address mats' comment)

Flags: needinfo?(emilio)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 82 Branch → ---
Severity: -- → S3

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:emilio, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

Had some progress.
I tried to put a text in the middle of the input range, but the text is in front making it difficult to move the range-thumb.

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

Attachment

General

Created:
Updated:
Size: