[Webkit-unassigned] [Bug 274799] New: [view-transitions] View transitions can create arbitrary numbers of pseudo elements for the document element which are slow to restyle

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 28 14:41:53 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=274799

            Bug ID: 274799
           Summary: [view-transitions] View transitions can create
                    arbitrary numbers of pseudo elements for the document
                    element which are slow to restyle
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mattwoodrow at apple.com
                CC: koivisto at iki.fi
        Depends on: 274739

Created attachment 471533

  --> https://bugs.webkit.org/attachment.cgi?id=471533&action=review

Testcase

Style invalidation operates on Element, which triggers resolution of style for that Element and all attached pseudos.

View transitions can create an arbitrary set of pseudo elements, which then all get restyled for any change to any of the pseudo styles.

Attached is a test case that creates ~800 pseudo elements in a view transition, and only makes real changes to one of them.

Bug 274739 improved some O(n^2) behaviour here, but it's still slow due to the sheer number of elements that get restyled.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=274739
[Bug 274739] [view-transitions] Resolving styles with a large set of named view-transition elements is slow
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240528/c0252b29/attachment.htm>


More information about the webkit-unassigned mailing list