[webkit-dev] content-visibility (Was Re: Request For Position on CSS containment)
cathiechen at igalia.com
Wed Dec 22 01:23:06 PST 2021
> On 25 Jun 2021, at 4:23 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> Please rename the subject when you're going to discuss the work on a new feature.
> On Thu, Jun 24, 2021 at 9:44 AM cathiechen via webkit-dev <webkit-dev at lists.webkit.org> wrote:
> We made a lot of progress regarding CSS containment .
> Rob and I have finished the layout containment and size containment .\o/
> And the patches of paint containment and style containment are ready for review now .
> So we think now it's time to move on to content-visibility:
> That seems premature. Have we implemented all the perf optimizations for layout, size, & paint containment? I'd rather not start piling on more features before we get to a point where we're happy with the performance of these features.
Thanks for the advice! Yeah, we kept working on the CSS containment performance, here is the summary (also sent to the previous thread)
> Since content-visibility depends on paint and style containment, we will do some specification research first, then prototype it based on Rob's patches.
> Does the research part also include making a judgement call as to whether it's a good idea at all? It's wholly unclear to me that content-visibility is a feature we'd like to implement in WebKit given its implications to the accessibility and other browser features.
Yeah, while working on the performance, we found CSS Contain improves performance inside the containment box, for instance, setting relayout boundary to stop dirty layout propagating to ancestor elements. And we think content-visibility would improve the performance from outside, for instance, skipping painting content that is offscreen. And we asked for help from chromium team, they provided us some very positive feedbacks from the developers.(Also list in the document)
Regarding the accessibility feature, the values of content-visibility can decide whether or not the content is accessible.
And there are over 80 cases in WPT to test the behaviour of content-visibility.
Also we would like to analyse the performance in the future.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev