Skip to content

Conversation

@SimonSiefke
Copy link
Contributor

Description

Updates the document.adoptedStyleSheets documentation to use the newer document.adoptedStyleSheets .push method.

Motivation

Previously, changing document.adoptedStylesheets only worked by assigning a new array. But the spec was updated to allow using the push method, which seems easier.

Additional details

GoogleChrome/web.dev#10412

Related issues and pull requests

@SimonSiefke SimonSiefke requested a review from a team as a code owner May 27, 2025 18:27
@SimonSiefke SimonSiefke requested review from sideshowbarker and removed request for a team May 27, 2025 18:27
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels May 27, 2025
@github-actions
Copy link
Contributor

@sideshowbarker sideshowbarker merged commit 49f27d5 into mdn:main Jun 3, 2025
7 checks passed
estelle pushed a commit that referenced this pull request Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants