mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Support CSS modules
This adds support for importing CSS stylesheets from CSS files in javascript.
This commit is contained in:
committed by
Shannon Booth
parent
2362a65e3b
commit
f1d3244b22
Notes:
github-actions[bot]
2026-04-03 19:22:27 +00:00
Author: https://github.com/skyz1 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f1d3244b225 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6029 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/konradekk Reviewed-by: https://github.com/shannonbooth ✅
@@ -178,7 +178,7 @@ void HTMLScriptElement::execute_script()
|
||||
VERIFY(document->current_script() == nullptr);
|
||||
|
||||
// 2. Run the module script given by el's result.
|
||||
(void)as<JavaScriptModuleScript>(*m_result.get<GC::Ref<Script>>()).run();
|
||||
(void)as<ModuleScript>(*m_result.get<GC::Ref<Script>>()).run();
|
||||
}
|
||||
// -> "importmap"
|
||||
else if (m_script_type == ScriptType::ImportMap) {
|
||||
|
||||
Reference in New Issue
Block a user