w3c / w3c/csswg-drafts

[cssom-1] Should `CSSStyleSheet.href` be `null` for a constructed style sheet?

Open
#12,975 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cssom-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

The spec wants it to be "the base URL of the associated Document for the current global object", but it is currently null in Chrome and Firefox.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CSSOM-1 sections linked in the issue: the CSSStyleSheet.href definition and the constructed CSSStyleSheet creation algorithm. Trace how the current normative text handles constructed sheets and determine the intended href value. Done means the specification consistently defines the behavior and its prose or algorithm is updated accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.