Open Bug 2084993 Opened 1 month ago Updated 10 days ago

www.uol.com.br - The live stream player's volume slider is not displayed

Categories

(Web Compatibility :: Site Reports, defect, P2)

Firefox 160
Desktop
Linux

Tracking

(Webcompat Priority:P3, Webcompat Score:4, firefox160 affected)

ASSIGNED
Webcompat Priority P3
Webcompat Score 4
Tracking Status
firefox160 --- affected

People

(Reporter: bfarkas, Assigned: twisniewski)

References

(Depends on 1 open bug, )

Details

(4 keywords, Whiteboard: [webcompat-source:product][autowebcompat:processed][webcompat:sightline][webcompat:core][autowebcompat:repro-success])

User Story

autowebcompat-repro-status:success
autowebcompat-repro-chrome-mask-fixed:false
autowebcompat-repro-channels:nightly,stable,esr
autowebcompat-repro-report-os:all
autowebcompat-diagnosis-status:success
platform:windows,mac,linux,android
impact:significant-visual
configuration:general
affects:all
branch:release
diagnosis-team:layout
user-impact-score:60

Attachments

(5 files, 1 external file)

Environment:
Operating system: Linux / Windows 10
Firefox version: Firefox 158.0 (release) / Firefox Nightly 160.0a1 (2026-10-21)

Preconditions:

  • Clean profile

Steps to reproduce:

  1. Navigate to: https://www.uol.com.br/
  2. Observe the live stream's media player

Expected Behavior:
The volume slider is displayed and functions accordingly

Actual Behavior:
volume slider is not displayed, but it is works accordingly

Notes:

  • Reproducible on the latest Firefox Release and Nightly
  • Reproducible regardless of the ETP setting
  • Works as expected using Chrome

Created from webcompat-user-report:3d717d4e-f07b-42b5-8140-bf1bf97ef8e6

Whiteboard: [webcompat-source:product] → [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress]
Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress] → [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress][webcompat:sightline][webcompat:core]
User Story: (updated)
Whiteboard: [webcompat-source:product][autowebcompat:processed][autowebcompat:reproduction-in-progress][webcompat:sightline][webcompat:core] → [webcompat-source:product][autowebcompat:processed][webcompat:sightline][webcompat:core][autowebcompat:repro-success][autowebcompat:diagnose]

On www.uol.com.br, the volume slider in the Canal UOL live player (the <news-player> element) has no visible track in Firefox. Only the round thumb shows next to the speaker button, though the slider still works. Chrome draws the slider's blue filled track.

Whiteboard: [webcompat-source:product][autowebcompat:processed][webcompat:sightline][webcompat:core][autowebcompat:repro-success][autowebcompat:diagnose] → [webcompat-source:product][autowebcompat:processed][webcompat:sightline][webcompat:core][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress]

Root cause analysis generated by autowebcompat bot:

The Canal UOL <news-player> volume slider (Svelte component, class svelte-1ytunfe, inside the player's shadow root) is an <input type="range"> with appearance: none. The site does not style the track with ::-moz-range-track/::-moz-range-progress or ::-webkit-slider-runnable-track. Instead it draws the whole visible track with generated content on the input itself: input[type='range']::after is the faint full-width background (background-color: var(--track-background); opacity: .2), and input[type='range']::before is the blue filled part (width: var(--perc)). Both are position:absolute; display:flex; content:''. The thumb is styled only through ::-webkit-slider-thumb.

Blink generates ::before/::after boxes for <input type=range>, so Chrome shows the blue track. Gecko generates no ::before/::after boxes for range inputs (they are replaced-like form controls with an anonymous internal structure), so the track is never painted. Only Firefox's native thumb shows, which is what the report describes. The slider still works because the input itself is fine; only its decoration is missing.

Whether ::before/::after apply to form controls such as <input> is not clearly defined in CSS (CSS Pseudo-Elements §3.1 leaves it to the host language/replaced-element rules). So this is a non-interoperable engine difference that the site relies on, not UA sniffing.

Evidence:

Site CSS read from the news-player shadow root in Firefox: input[type='range'].svelte-1ytunfe {appearance:none;height:var(--track-height)}, ...::after {content:'';background-color:var(--track-background);width:100%;position:absolute;opacity:var(--track-opacity,0.2)}, ...::before {content:'';background-color:var(--track-color);width:var(--perc);position:absolute}, and only ::-webkit-slider-thumb for the thumb. The input itself has background-image:none and a transparent background-color, so nothing else draws a track.

reproduction.mjs gives value=1 and unmuted in both browsers. Chrome finds blue track pixels in the left 60% of the slider; Firefox finds none (exit 1).

Reduced testcase (appearance:none range input whose ::before is a 150×10 blue block and whose ::after is a red one): Chrome draws a blue bar and a red bar with the thumb on top. Firefox draws only the native thumb. In both browsers getComputedStyle(input,'::before') reports content:"", display:block and width:150px, so the style matches in Firefox but no box is generated.


If you'd like to provide feedback on diagnosis, please use the 👍 or 👎 reaction.

User Story: (updated)
Whiteboard: [webcompat-source:product][autowebcompat:processed][webcompat:sightline][webcompat:core][autowebcompat:repro-success][autowebcompat:diagnosis-in-progress] → [webcompat-source:product][autowebcompat:processed][webcompat:sightline][webcompat:core][autowebcompat:repro-success]
Severity: -- → S3
User Story: (updated)
Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Priority: -- → P2
User Story: (updated)
Webcompat Score: 6 → 7

Emilio, I think you know about these things.

User Story: (updated)
Flags: needinfo?(emilio)

<input type=range> is a replaced element. Blink still allows ::before/::after on these but that's a bug. The internal layout of <input type=range> is not defined...

Flags: needinfo?(emilio)
See Also: → 1860666, 2003959
Depends on: 2003959
See Also: 2003959 →

So the site is hiding the slider track, and then trying to manually draw their own slider track, using a pseudo-element that happens to render in Chrome/WebKit due to nonstandard implementation details.

Our easiest fix here for the short term would be to ship a site-patch to un-hide the "real" slider track that the site is hiding.

The relevant declaration that hides the track is appearance:none here:

input[type="range"].svelte-1ytunfe {
	appearance: none;
	width: 100%;
	height: var(--track-height);
	outline: none;
	cursor: pointer;
}

In the actual spot that matters, the element is a grandchild of a <div class="volume-range"> element, which seems like a good way to target an intervention. So something like this would work:

.volume-range input[type="range"].svelte-1ytunfe {
  appearance: initial;
}

(We could also specify an accent-color to match the blue scrubber-bar color that the site shows, if we like, too. I'm not finding the exact color when poking around in devtools right now, but that's a potentially discoverable thing to make this even cleaner-looking. That would make the volume slider look more similar to the progress scrubber)

Ah hmm, so that suggested intervention doesn't actually work when applied via Stylus at least. I think it's because this content lives in a custom element <news-player>; and CSS rules that are applied at the page level have no impact on the shadow DOM of this custom element.

That element is defined here in some JS that wraps a call to the custom-element-registration API:

       em({
          tagName: "news-player",

https://mfe.fantascope.uol.com.br/player/news/fantascope-player.js

Maybe/hopefully we have a way to get around that and inject styles for custom elements in an intervention...? Tom, do you know?

It looks like the relevant track-color is literally called --track-color. Though also, I realized appearance:initial might not be the right intervention, since that also changes how the thumb look in a way that looks inconsistent with the progress-scrubber. So maybe the right fix (if we can inject the styles) would be to just add a background-color which ends up just rendering as a track color, basically:

.volume-range input[type="range"].svelte-1ytunfe {
  background: var(--track-color);
}
Flags: needinfo?(twisniewski)

For illustration, here's a screenshot of what that background: var(--track-color); declaration looks like, on the input[type="range"] volume-slider here.

It extends all the way across (since it's a background across the whole element) which is not quite how the site intends for it to look, but that's likely better than having no track at all. (The site is trying to achieve a design where the portion-after-the-thumb is this same color with 0.2 opacity; I'm not sure there's an easy way to achieve that with a sitepatch, but if we can do that, then that'd be all the better.)

Flags: needinfo?(twisniewski)

Yes, using the approach I mentioned in comment #11 does seem to work fine, though the volume slider track is a bit less wide than one might expect. I'll get the intervention together today.

Keywords: leave-open
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
User Story: (updated)
Webcompat Priority: P2 → P3
Webcompat Score: 7 → 4

Authored by https://github.com/wisniewskit
https://github.com/mozilla/enterprise-firefox/commit/29f3f9f040566620f2e2e8fb3cef532c14725715
[enterprise-main] Bug 2084993 - add a webcompat intervention for www.uol.com.br; r=ksenia,webcompat-reviewers

(via GitHub webhook, authenticated as shared-secret)

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

Attachment

General

Created:
Updated:
Size: