Repository navigation
--computed follow-ups: clean snapshot errors, size-aware collapse, hidden pseudo-elements - #34
Merged
Merged
Conversation
…dden pseudo-elements - A failed snapshot keeps only the page's message, not page.evaluate's prefix and stack. - The walk records each element's specified width and height; a box whose own size is set is never collapsed away, and a height: 100% child gives way to the parent it follows. - An element going display: none no longer adds a ::before/::after finding. - docs: a wrapper's class change re-keys its subtree; dom counts a re-keyed element once per side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups from the re-review of
--computed(#30).pageErrorinsrc/computed.ts, used bysrc/run.ts): a page throw keeps only its text after the firstError:, first line, socomputedError, the progress line, the summary and the report no longer carry page.evaluate's stack. A message with noError:(e.g. a selector timeout with its call log) is kept whole. Tested with a real Playwright evaluate error string.computedStyleMap()(auto,100%,200px; em/rem/vw come back as px).collapseInheritedkeeps a box whose own size is px on either side (a child widened inside aninline-blockis no longer dropped in favour of the span), and a%height child gives way to its px-height parent (aheight:100%child no longer hides the parent's own change). In an auto-height parent a%child is treated as auto, so one of the two heights always remains. WithoutcomputedStyleMap(other browsers) the old behaviour holds. Measured cost: ~19ms on a 51k-element page.display: noneno longer adds a::before/::aftercontentfinding.docs/output.md): a wrapper's class change re-keys its subtree, so style changes under it show only asdom differs/unmatched;domcounts a re-keyed element once per side; the new collapse rules.Known, not changed:
calc(100% - Npx)heights count as%; a fixed-width child squeezed by its parent (max-width, flex-shrink) is now kept beside the parent's change.🤖 Generated with Claude Code