mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Everywhere we use this expects us to parse the whole value, either because we are parsing the value of a declaration (in which case there will be no semicolons), or because it is called from a JS setter which takes whole values and semicolons make the value invalid. Previously we would just ignore everything after a semicolon. This also allows us to avoid creating a new `Vector` and copying all the component values
14 lines
300 B
HTML
14 lines
300 B
HTML
<!doctype html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const face = new FontFace("Foo", "url(foo.woff2)");
|
|
try {
|
|
face.weight = "400;";
|
|
println(`FAIL`);
|
|
} catch (error) {
|
|
println(`PASS`);
|
|
}
|
|
});
|
|
</script>
|