w3c / w3c/csswg-drafts

CSSStyleSheet constructor doesn't invoke URL parser

Open
#7,799 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

css/cssom/CSSStyleSheet-constructable-baseURL.tentative.html tests what should happen when the constructor runs, but the actual behavior doesn't seem to be defined. E.g., that an invalid URL ends up throwing.

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 css/cssom/CSSStyleSheet-constructable-baseURL.tentative.html and inspect what it expects when the CSSStyleSheet constructor runs, especially for invalid URLs. Read the surrounding CSSStyleSheet constructor specification, then update the definition so the constructor behavior is explicit and the test's expected outcome is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
frontend, testing, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.