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:
Andreas Kling
2024-10-12 16:52:36 +02:00
committed by Andreas Kling
parent c1a14f66ad
commit 02da288413
Notes: github-actions[bot] 2024-10-12 17:21:15 +00:00
3 changed files with 29 additions and 2 deletions

View 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>