1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

LibWeb/DOM: Create style element style sheets with document's base URL

This is the simplest fix I could find that resolves a buggy interaction
between this and the CSS fetch algorithms, which also doesn't regress
anything. (As far as I can tell.)
This commit is contained in:
Sam Atkins 2025-05-02 11:48:40 +01:00
parent 7a4854732a
commit 981ede900a
Notes: github-actions[bot] 2025-05-03 11:02:59 +00:00

View file

@ -84,7 +84,8 @@ void StyleElementUtils::update_a_style_block(DOM::Element& style_element)
: String {},
CSS::StyleSheetList::Alternate::No,
CSS::StyleSheetList::OriginClean::Yes,
{},
// AD-HOC: Use the document's base URL as the location instead. Spec issue: https://github.com/whatwg/html/issues/11281
style_element.document().base_url(),
nullptr,
nullptr);