Only geometry of the text should effect background-clip: text
Categories
(Core :: Web Painting, defect)
Tracking
()
People
(Reporter: cgqaq, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36
Steps to reproduce:
background-clip: text in the spec is defined as such:
The background is painted within (clipped to) the intersection of the border box and the geometry of the text including any decorations and emphasis marks in the element and its in-flow and floated descendants. The text color has no effect on the painting of the background.
The spec only says 'the border box and the geometry of the text including any decorations and emphasis marks in the element and its in-flow and floated descendants' will affect the actual effect
And the spec side clarified it
https://github.com/w3c/csswg-drafts/issues/14373#issuecomment-5383837543
Comment 1•2 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Web Painting' component, but is not confident enough to move the bug to that component.
Updated•2 months ago
|
Tab provides a good test case:
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=14845
Comment 3•2 months ago
|
||
The severity field is not set for this bug.
:tnikkel, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 months ago
|
Description
•