playwright/src/cli/traceViewer
Dmitry Gozman a9de3d8fd2
feat(snapshots): switch MutationObserver to only observer attributes (#5220)
Everything but attributes in the light dom is manually compared during
DOM traversal, for example child nodes or scroll offset.

This way we get a bullet-proof solution that works with input values,
scroll offsets, shadow dom and anything else web comes up with.

We also restore scroll only on the document scrolling element, for
performance reasons. We should figure out the story around scrolling.

Changes stationary snapshots from ~0.5ms to ~2.5ms due to DOM traversal.
2021-01-31 19:20:20 -08:00
..
screenshotGenerator.ts chore(trace viewer): split SnapshotServer (#5210) 2021-01-28 15:09:20 -08:00
snapshotServer.ts feat(snapshots): switch MutationObserver to only observer attributes (#5220) 2021-01-31 19:20:20 -08:00
traceModel.ts feat(snapshots): make cssom overrides efficient (#5218) 2021-01-29 15:24:38 -08:00
traceServer.ts chore(trace viewer): split SnapshotServer (#5210) 2021-01-28 15:09:20 -08:00
traceViewer.ts feat(snapshots): make cssom overrides efficient (#5218) 2021-01-29 15:24:38 -08:00