-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop gathering element's CSS rules at the nearest HTML element #10608
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (parentObject.preview?.node?.nodeName === "HTML") { | ||
break; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the fix, the rest is just renaming things.
At first, I started playing with comparing this against data received from:
const ownerDocumentRequest = this.replayClient.getDocument(this.pauseId).catch(() => null);
but then I realized I could access this more directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice change!
Traversing elements from outer frames could lead to wildly confusing results for elements within iframes
Before
After