mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +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:
parent
7a4854732a
commit
981ede900a
Notes:
github-actions[bot]
2025-05-03 11:02:59 +00:00
Author: https://github.com/AtkinsSJ
Commit: 981ede900a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4536
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue