Skip to content
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

fix(snapshot): render adoptedStyleSheets used in more than one node #8886

Merged

Conversation

JoelEinbinder
Copy link
Contributor

@JoelEinbinder JoelEinbinder commented Sep 13, 2021

Sometimes adopted style sheets reference other style sheets in the same document.

Fixes #7085.

(root as any).adoptedStyleSheets = [sheet2];
document.body.appendChild(div);

for (const element of [document.createElement('div'), document.createElement('span')]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also cover CSSStyleSheet.replace{,Sync} methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@JoelEinbinder JoelEinbinder merged commit eafba43 into microsoft:master Sep 16, 2021
mxschmitt pushed a commit to mxschmitt/playwright that referenced this pull request Sep 16, 2021
JoelEinbinder added a commit that referenced this pull request Sep 16, 2021
…8886) (#8972)


Co-authored-by: Joel Einbinder <joel.einbinder@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Traceviewer screens are not recorded well when using constructable stylesheets
2 participants