Open Bug 1934039 Opened 10 days ago Updated 3 days ago

Some websites escape the corner clip from bug 1908471

Categories

(Core :: Graphics: WebRender, defect, P1)

defect

Tracking

()

Tracking Status
firefox-esr128 --- unaffected
firefox133 --- unaffected
firefox134 --- unaffected
firefox135 --- fix-optional

People

(Reporter: emilio, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

E.g. https://developer.apple.com/ escapes the corner, so does zoom video calls.

I bet it has to do with backdrop-filter because https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter shows it but https://developer.mozilla.org/ doesn't.

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

:nsharpley, since you are the author of the regressor, bug 1908471, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Severity: -- → S3

That's interesting! You're right, it looks like backdrop-filter doesn't respect the overflow: hidden rule of the parent browser and paints above it?...

I'm working on a solution similar to the snippet Markus posted in bug 1908471, comment 5. We might be able to use a mask, though it gets complicated with using the toolbar background... see attachment

Severity: S3 → --
Flags: needinfo?(nsharpley)

Example fix in progress

Assignee: nobody → nsharpley
Whiteboard: [fidefe-sidebar]

In bug 1908471 we used a border-radius, however some website use backdrop-filter for their
background which doesn't respect the overflow: hidden rule we added with the border-radius.

Using a neighbouring element as a mask resolves that issue.

WIP - still need to get IntersectionObserver working and update based on tabbrowser-tabbox
position and need to get mask appearance working for RTL mode and when the sidebar is positioned
at the end.

(In reply to Emilio Cobos Álvarez (:emilio) from comment #0)

E.g. https://developer.apple.com/ escapes the corner, so does zoom video calls.

I bet it has to do with backdrop-filter because https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter shows it but https://developer.mozilla.org/ doesn't.

Emilio, is this something that can be fixed on the core side?

Flags: needinfo?(emilio)

Ideally, yes. This seems clearly like a WebRender bug to me (that's why I filed it here rather than in the sidebar component)... Not familiar enough with our backdrop-filter implementation to know whether this can be fixed easily or not. But in any case if we decide to move to a mask I'd do it in a dependent bug (as this bug would still be valid).

Glenn do you know off-hand what might be going on? In order to see this, you can flip sidebar.revamp=true on Nightly.

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

I dont know if this relevant or not if not please ignore but I always used from this code for rounded browser frame and it never had any issues, I tried the linked websites and it looks fine.

https://github.com/KiKaraage/ArcWTF/blob/main/global/browser.css

The only lines I removed was 115-117 as it was causing pixelate corners.

Assignee: nsharpley → nobody
Severity: -- → S2
Flags: needinfo?(gwatson)
Attachment #9440638 - Attachment is obsolete: true
Whiteboard: [fidefe-sidebar]

We'll be evaluating this type of thing when we discuss sidebar needs with Sarah in Q1 2025.

Severity: S2 → S3
Priority: -- → P1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: