mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
LibWeb: Support CSS modules
This adds support for importing CSS stylesheets from CSS files in javascript.
This commit is contained in:
parent
2362a65e3b
commit
f1d3244b22
Notes:
github-actions[bot]
2026-04-03 19:22:27 +00:00
Author: https://github.com/skyz1
Commit: f1d3244b22
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 ✅
21 changed files with 272 additions and 80 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue