Open Bug 1989862 Opened 1 month ago Updated 15 days ago

`background-clip: text` fails when content has large `transform: translate`

Categories

(Core :: Web Painting, defect)

Firefox 143
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mattm, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:143.0) Gecko/20100101 Firefox/143.0

Steps to reproduce:

Apply a large transform: translate to an element with background-clip: text

Actual results:

The background is not visible.

Expected results:

The background is visible, clipped to the text.

The Bugbug bot thinks this bug should belong to the 'Firefox::Translations' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Translations
Component: Translations → General
Summary: `background-clip: text` fails when content has large translation → `background-clip: text` fails when content has large `transform: translate`
Component: General → Layout: Images, Video, and HTML Frames
Product: Firefox → Core
Component: Layout: Images, Video, and HTML Frames → Web Painting

I think we are probably trying to apply the transform inside the display list builder that is used to build the mask for the text.

I believe it's bug 1545128; there's an interactive test indicating that the "yeet distance threshold" is somewhat related to a total bounding box dimension of the element being translated.

The severity field is not set for this bug.
:tnikkel, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tnikkel)
Severity: -- → S3
Flags: needinfo?(tnikkel)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: