LibWeb: Support CSS modules

This adds support for importing CSS stylesheets from CSS files in
javascript.
This commit is contained in:
Glenn Skrzypczak 2025-10-26 18:06:19 +01:00 committed by Shannon Booth
parent 2362a65e3b
commit f1d3244b22
Notes: github-actions[bot] 2026-04-03 19:22:27 +00:00
21 changed files with 272 additions and 80 deletions

View file

@ -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) {