NEW 268116
Avoid compositing layers for opacity:0 subtrees
https://bugs.webkit.org/show_bug.cgi?id=268116
Summary Avoid compositing layers for opacity:0 subtrees
Matt Woodrow
Reported 2024-01-25 15:39:44 PST
Creating compositing layers takes time, and also prevents backing store sharing from working when it otherwise could. We should be able to skip these while opacity is 0.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-01-25 15:39:53 PST
Matt Woodrow
Comment 2 2024-01-25 15:47:05 PST
Simon Fraser (smfr)
Comment 3 2024-01-25 16:11:44 PST
One reason we've avoided doing this in the past is to avoid hiccups when animating away from opacity 0.
Matt Woodrow
Comment 4 2024-01-25 16:22:22 PST
I'd argue that this is the purpose of will-change (which isn't handled in the PR currently, but should be). I realise that it's definitely a perf compat risk though :(
Note You need to log in before you can comment on or make changes to this bug.