Files
ladybird/Tests/LibWeb/Text/input/css/descriptor-value-trailing-semicolon.html
Callum Law 8b66e7f463 LibWeb: Consider semicolon in parse_descriptor_value a SyntaxError
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
2026-03-30 19:57:36 +01:00

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>