Closed Bug 1843040 Opened 1 year ago Closed 1 year ago

Incorrect positioning of <input type=range> slider on SoundCloud embed widget

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

VERIFIED FIXED
117 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox115 --- unaffected
firefox116 --- unaffected
firefox117 --- verified
firefox118 --- verified

People

(Reporter: padenot, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image incorrect positionning

STR:

Expected:

  • A widget appears at the bottom, the slider is positioned correctly at the center of the gutter

Actual:

  • A widget appears at the bottom, the slider is not centered
Flags: needinfo?(emilio)

It looks like they're using ::-moz-range-thumb/::-moz-range-track as well as ::-webkit-slider-runnable-track/::-webkit-slider-thumb. If I drop the moz-prefixed CSS it seems to work. Emilio, could we easily ignore one set of prefixes if we see both?

It doesn't for me? What's causing the shift is the transform: translateY(-4px) from the ::-webkit-slider-thumb rule.

Flags: needinfo?(emilio) → needinfo?(twisniewski)

The layout of our slider is incompatible with Chrome's, as suspected in
bug 1735575 comment 9.

So this needs more re-think, maybe reworking the pseudo-element
structure when it's enabled. A potential path forward:

  • Make these pseudo-elements proper pseudos (not just aliases).
  • When this pref is enabled we don't even query the ::-moz- pseudos,
    and read only ::-webkit-'s.
  • But we also don't generate the same tree structure, we generate
    something more like WebKit's tree (thumb inside track inside
    container), with this css1.

That would be somewhat sad because the whole situation of these pseudos
kinda sucks, see https://github.com/w3c/csswg-drafts/issues/4410.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

Yeah, your assessment makes more sense, Emilio .

Flags: needinfo?(twisniewski)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bb73759d9a27 Disable layout.css.webkit-range-pseudos.enabled. r=denschub
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
QA Whiteboard: [qa-117b-p2]

Reproducible on a 2023-07-12 Nightly build on macOS 12.
Verified as fixed on Firefox 117.0b5(build ID: 20230808215502) and Nightly 118.0a1(build ID: 20230809092330) on macOS 12, Windows 10, Ubuntu 22.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-117b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: