Open Bug 1417236 Opened 7 years ago Updated 2 years ago

No opacity animation for text with background-clip:text

Categories

(Core :: Layout: Text and Fonts, defect, P3)

57 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: pygy79, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20171112125346 Steps to reproduce: Given this simple animation: @keyframes intro { from {opacity: 0;} to {opacity: 100;} } Give an element the following style: h1 { animation: intro 2s; background-image: linear-gradient(10deg, red, blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } Actual results: The text appears abruptly after two seconds Expected results: A gradual fade in. Live here: https://flems.io/#0=N4IgtglgJlA2CmIBcBmAHAOhQJgDQgGd4EBjAF3imRAxIIJHwDMIEGkBtUAOwEMxESGgAsyYWIxAkA9twpzqAHmEBGAAQlYvegF4A5gCdeUCPDkA+ABIQAhIoD0q8wB1uylVdsOnIAL64efkEaOgZ8GTkzMmo1AAEAa3gATyYjAQI1CDkDaTVgVzU1VOkwPOkAB14SCDIkpDUABl8CtTJc4Aqqmrq1FQam12buV1U8lt5uCDBeMghZeqyyHLVsAgBuFqZZMgBaAggAL3h6vvgwDe4h1wxDY1M5Me5CgCMq+MNpAFduKB2p3j0xzUsCy8F4Bh2txMUQAFH0oPA9Lg1AZKMjnrBPvAAJQXQo7ADu8Ge8RqO1eJHeOW+v00EHK9QoAA8yHi1BSqV8fjs6QzWvAWWzCcTSbtmbsWLBYDzpLBpAZGUZuARKqi5BdfH4ALr4EHceLsLggPgCaiQMjCAysSSfAwSISiMjlAhIez2b7ld60Er2c2W1ixFQYIMAVl9NX9sAwACswiBauVgrHtb4gA
Summary: No opacity animation for text with background-clip:text; and an image as bg → No opacity animation for text with background-clip:text
Component: Untriaged → Layout: Text
Product: Firefox → Core
> when the opacity increases I meant decrease, sorry
Aaargh... confused :-/ "when the opacity increases"/"the element whose opacity is _increasing_"
Priority: -- → P3

This works nowadays, the animation is smooth.

There are still differences in how the opacity is computed, but I'll open a different issue, this can be closed as "FIXED".

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.