background-clip with multiple values fails when one value is text




8 months ago
7 months ago


(Reporter: ana.tudor.lhnh, Unassigned)


61 Branch

Firefox Tracking Flags

(firefox61 affected, firefox62 affected, firefox63 affected)



(1 attachment)



8 months ago
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180621125625

Steps to reproduce:

1. Create a div.

2. Set two backgrounds on it:

background: linear-gradient(thistle, purple), 
                   linear-gradient(brown, lemonchiffon);

3. Make the text transparent and set

background-clip: text, border-box

Actual results:

The background-clip gets ignored (live test ).

Expected results:

The background layer above should be clipped to the text. This is what happens in Chrome and Edge.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0 (20180809101613)

I have tested this report using the latest Nightly and Firefox release build on Windows 10 x64 and OS X 10.12. I was able to reproduce the mentioned behavior using the steps above. When loading the provided test case the background layer should be clipped to text. However, this is not happening as it is in Chrome & Edge.
status-firefox61: --- → affected
status-firefox62: --- → affected
status-firefox63: --- → affected
Component: Untriaged → Layout: Text
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Component: Layout: Text and Fonts → Layout: Web Painting
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.