mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +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
@@ -582,7 +582,8 @@ GC::Ref<WebIDL::Promise> FontFace::load()
|
||||
ParsedFontFace parsed_font_face {
|
||||
font_face_rule,
|
||||
m_family,
|
||||
m_weight.to_number<int>(),
|
||||
// FIXME: Actually parse this as we're supposed to.
|
||||
m_weight.to_number<int>().map([](auto weight) { return FontWeightRange { weight, weight }; }),
|
||||
0, // FIXME: slope
|
||||
Gfx::FontWidth::Normal, // FIXME: width
|
||||
m_urls,
|
||||
|
||||
Reference in New Issue
Block a user