Closed Bug 1273068 Opened 9 years ago Closed 9 years ago

background-clip:text left ghost image after text animated

Categories

(Core :: Layout, defect)

49 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox49 --- fixed

People

(Reporter: u459114, Assigned: u459114)

References

Details

Attachments

(3 files, 2 obsolete files)

Attached file text animation (obsolete) —
background text disappear while child text object animating. See the attachment.
Blocks: 1264905
Both 48(using glyph path) and 49(using mask) have this problem
Attached file text animation (obsolete) —
Attachment #8752712 - Attachment is obsolete: true
Assignee: nobody → cku
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla48
Attached file text animation
Two problem here 1. nsDisplayBackgroundColor::GetOpaqueRegion should respect bg-clip value. Easy to fix. 2. After animation of a text object start, that text frame is pulled out from frame tree(I _guess_), so we can not build correct mask from it. Have no idea how to fix it so far
Attachment #8752713 - Attachment is obsolete: true
Chrome and Safari seems to have this problems too.
It seems background-clip: text is a feature difficult to implement correctly... Chrome and Safari has various different issues with the testcase. I'd suggest it not be a blocker of shipping background-clip: text. And actually it is not clear what exactly should happen when the text has animation. I, as a web developer, would expect the clipped background would move with the text. But if that is too difficult to implement, and no vendor wants to do it, we need to ensure documenting this behavior in the spec.
Like I said, two problems here. The first one is a blocker, has ghost image on the screen is just too low. The second one may not be a blocker.
Summary: background-clip:text is not painting correct during text animation → background-clip:text left ghost image after text animated
Attachment #8752847 - Flags: review?(jfkthame)
Attached image ghost_image.png
Hi Jonathan, This bug(ghost image) happens with background-color only, since I didn't handle nsDisplayBackgroundColor::GetOpaqueRegion well. This bug exists since bug 759568
(In reply to Xidorn Quan [:xidorn] (UTC+10) from comment #6) > It seems background-clip: text is a feature difficult to implement > correctly... Chrome and Safari has various different issues with the > testcase. I'd suggest it not be a blocker of shipping background-clip: text. > > And actually it is not clear what exactly should happen when the text has > animation. I, as a web developer, would expect the clipped background would > move with the text. But if that is too difficult to implement, and no vendor > wants to do it, we need to ensure documenting this behavior in the spec. As a developer, we hope that the text background can be dynamically cut. Support for absolute positioning and transform.
Comment on attachment 8752847 [details] MozReview Request: Bug 1273068 - Part 1. nsDisplayBackgroundColor::GetOpaqueRegion should respect bg-clip value https://reviewboard.mozilla.org/r/52824/#review49938 Looks reasonable to me. I'd suggest splitting off a separate bug for the second issue here (which probably doesn't need to block shipping the feature, especially as other browsers also struggle with it), so that we can close this bug and keep track of the other separately.
Attachment #8752847 - Flags: review?(jfkthame) → review+
(In reply to Jonathan Kew (:jfkthame) from comment #11) > I'd suggest splitting off a separate bug for the second issue here (which > probably doesn't need to block shipping the feature, especially as other > browsers also struggle with it), so that we can close this bug and keep > track of the other separately. Done. bug 1273569
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: