Contact emails [email protected]
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 Android 147 DevTrial on iOS 147 Link to entry on the Chrome Platform Status https://chromestatus.com/feature/6080969641689088?gate=5131399617183744 This intent message was generated by Chrome Platform Status. -- You received this message because you are subscribed to the Google Groups "blink-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/69998ccf.710a0220.1e5fb2.091d.GAE%40google.com.
