mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Allow CSS @import rule to import non-UTF-8 style sheets
This fixes a number of WPT crashes in the /css/CSS2/syntax directory.
This commit is contained in:
committed by
Andreas Kling
parent
c1a14f66ad
commit
02da288413
Notes:
github-actions[bot]
2024-10-12 17:21:15 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/02da2884133 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1747
9
Tests/LibWeb/Text/input/css/import-rule-shift-jis.html
Normal file
9
Tests/LibWeb/Text/input/css/import-rule-shift-jis.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<style>
|
||||
@import "data:text/css;charset=shift_jis;base64,77u/I2RpdjIKewogICAgY29sb3I6IGdyZWVuOwp9Cgoulb2YYQp7CiAgICBjb2xvcjogcmVkOwp9Cg==";
|
||||
</style>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println("PASS (didn't crash)");
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user