mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb/CSS: Parse @font-face { font-weight } with two values
WPT has coverage for matching but not parsing, so the test is homemade.
This commit is contained in:
Notes:
github-actions[bot]
2026-02-24 10:06:14 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/f657a4b71b8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8031
@@ -628,11 +628,9 @@ GC::Ptr<FontLoader> FontComputer::load_font_face(ParsedFontFace const& font_face
|
||||
return {};
|
||||
}
|
||||
|
||||
auto weight = font_face.weight().value_or(0);
|
||||
|
||||
FontFaceKey key {
|
||||
.family_name = font_face.font_family(),
|
||||
.weight = { weight, weight },
|
||||
.weight = font_face.weight().value_or({ 0, 0 }),
|
||||
.slope = font_face.slope().value_or(0),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user