mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Use correct specifier to pad font language override value
This commit is contained in:
@@ -5777,7 +5777,7 @@ RefPtr<CSSStyleValue> Parser::parse_font_language_override_value(TokenStream<Com
|
|||||||
}
|
}
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
if (length < 4)
|
if (length < 4)
|
||||||
return StringStyleValue::create(MUST(String::formatted("{<4}", string_value)));
|
return StringStyleValue::create(MUST(String::formatted("{:<4}", string_value)));
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
PASS (didn't crash)
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<script src="../include.js"></script>
|
||||||
|
<script>
|
||||||
|
test(() => {
|
||||||
|
const element = document.createElement('div');
|
||||||
|
element.style.fontLanguageOverride = '"eng"';
|
||||||
|
document.body.appendChild(element);
|
||||||
|
println("PASS (didn't crash)");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user