mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibWeb: Use correct specifier to pad font language override value
This commit is contained in:
parent
96a35767b6
commit
7fe110225b
Notes:
github-actions[bot]
2024-11-18 22:39:04 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/7fe110225b7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2424 Reviewed-by: https://github.com/trflynn89
3 changed files with 12 additions and 1 deletions
|
@ -5777,7 +5777,7 @@ RefPtr<CSSStyleValue> Parser::parse_font_language_override_value(TokenStream<Com
|
|||
}
|
||||
transaction.commit();
|
||||
if (length < 4)
|
||||
return StringStyleValue::create(MUST(String::formatted("{<4}", string_value)));
|
||||
return StringStyleValue::create(MUST(String::formatted("{:<4}", string_value)));
|
||||
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>
|
Loading…
Reference in a new issue