mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb/CSS: Make font-stretch a legacy alias for new font-width
CSS Fonts level 4 renames font-stretch to font-width, with font-stretch being left as a legacy alias. Unfortunately the other specs have not yet been updated, so both terms are used in different places.
This commit is contained in:
committed by
Andreas Kling
parent
7c50a31402
commit
4a67b28600
@@ -407,7 +407,7 @@ int CSSStyleValue::to_font_slope() const
|
||||
return normal_slope;
|
||||
}
|
||||
|
||||
int CSSStyleValue::to_font_stretch_width() const
|
||||
int CSSStyleValue::to_font_width() const
|
||||
{
|
||||
int width = Gfx::FontWidth::Normal;
|
||||
if (is_keyword()) {
|
||||
|
||||
Reference in New Issue
Block a user