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

NEW
Unassigned

Status

()

P3
normal
3 months ago
3 months ago

People

(Reporter: ana.tudor.lhnh, Unassigned)

Tracking

61 Branch
Points:
---

Firefox Tracking Flags

(firefox61 affected, firefox62 affected, firefox63 affected)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 months ago
Created attachment 8998227 [details]
screenshots of expected result (Chrome, Edge) vs. actual result in Firefox

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 https://codepen.io/thebabydino/pen/yEKBJx ).


Expected results:

The background layer above should be clipped to the text. This is what happens in Chrome and Edge.

Comment 1

3 months ago
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.