Skip to content

Mention how one can apply a CSSStyleSheet to the document #42302

@sgbeal

Description

@sgbeal

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet

What specific section or headline is this issue about?

N/A

What information was incorrect, unhelpful, or incomplete?

The one detail missing from this page is how to actually make use of a CSSStyleSheet once it's been created or obtained. i.e. nowhere is there a reference to https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptedStyleSheets (and if there's some other way to properly use them, i've no idea what it/they is/are).

A single sentence along the lines of "to apply a constructed/obtained CSSStyleSheet, use (...link to adoptedStyleSheets)" would improve the page that little bit :).

What did you expect to see?

How to apply a CSSStyleSheet object to the DOM after constructing/obtaining an instance.

Do you have any supporting links, references, or citations?

n/a

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions