Intent to Prototype: baseURL option for CSSStyleSheet()

154 views
Skip to first unread message

Chromestatus

unread,
Feb 21, 2026, 5:45:49 AM (yesterday) Feb 21
to blin...@chromium.org, zees...@gmail.com
Contact emails
zees...@gmail.com

Specification
https://drafts.csswg.org/cssom-1/#dom-cssstylesheetinit-baseurl

Design docs
No information provided
https://drafts.csswg.org/cssom-1/#dom-cssstylesheetinit-baseurl

Summary
The CSSStyleSheet constructor supports a baseURL option in CSSStyleSheetInit, allowing developers to explicitly control how relative URLs are resolved for constructed stylesheets.

Blink component
Blink>CSS

Web Feature ID
constructed-stylesheets

Motivation
Currently, Chromium does not support the baseURL option in the CSSStyleSheet constructor, and constructed stylesheets inherit the base URL of the associated Document. This can lead to incorrect resolution of relative URLs when stylesheets are dynamically created, reused across components, or loaded from different origins such as CDNs. As a result, developers often resort to hardcoded absolute paths or brittle JavaScript-based rewriting of URLs. Introducing a baseURL property in CSSStyleSheetInit allows developers to explicitly define the stylesheet’s base URL, ensuring consistent resource resolution and aligning Chromium with the CSSOM specification. [1]: https://drafts.csswg.org/cssom-1/#dom-cssstylesheetinit-baseurl [2]: https://github.com/WICG/construct-stylesheets/issues/95 [3]: https://github.com/w3c/csswg-drafts/pull/6304

Initial public proposal
No information provided

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/issues/40207149

Estimated milestones
DevTrial on Android147
DevTrial on iOS147


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/6080969641689088?gate=5131399617183744

This intent message was generated by Chrome Platform Status.

Suyeon Ji

unread,
Feb 21, 2026, 5:51:04 AM (yesterday) Feb 21
to blink-dev, Chromestatus, Suyeon Ji
I would like to revise the milestone for this feature.
The estimated milestone for both Desktop and Android is 147.

2026년 2월 21일 토요일 PM 7시 45분 49초 UTC+9에 Chromestatus님이 작성:
Reply all
Reply to author
Forward
0 new messages