NEW 274799
[view-transitions] View transitions can create arbitrary numbers of pseudo elements for the document element which are slow to restyle
https://bugs.webkit.org/show_bug.cgi?id=274799
Summary [view-transitions] View transitions can create arbitrary numbers of pseudo el...
Matt Woodrow
Reported 2024-05-28 14:41:53 PDT
Created attachment 471533 [details] 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.
Attachments
Testcase (14.65 KB, text/html)
2024-05-28 14:41 PDT, Matt Woodrow
no flags
Radar WebKit Bug Importer
Comment 1 2024-06-04 14:42:13 PDT
Note You need to log in before you can comment on or make changes to this bug.