Closed
Bug 1273068
Opened 9 years ago
Closed 9 years ago
background-clip:text left ghost image after text animated
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla48
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: u459114, Assigned: u459114)
References
Details
Attachments
(3 files, 2 obsolete files)
background text disappear while child text object animating. See the attachment.
Both 48(using glyph path) and 49(using mask) have this problem
Attachment #8752712 -
Attachment is obsolete: true
![]() |
||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla48
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
Review commit: https://reviewboard.mozilla.org/r/52824/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/52824/
Comment 6•9 years ago
|
||
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)
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
Comment 10•9 years ago
|
||
(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 11•9 years ago
|
||
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+
![]() |
Assignee | |
Comment 12•9 years ago
|
||
(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
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
bugherder |
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.
Description
•