LibWeb: Add stroke-linecap attribute and plumb it to SVGGraphicsElement

SVGGraphicsElement then goes ahead and does nothing with it for now.
This commit is contained in:
Nico Weber 2024-10-10 10:15:49 -04:00 committed by Tim Ledbetter
commit cc0cfd044b
Notes: github-actions[bot] 2024-10-10 23:28:42 +00:00
11 changed files with 41 additions and 1 deletions

View file

@ -326,6 +326,12 @@ float StyleProperties::fill_opacity() const
return resolve_opacity_value(*value);
}
Optional<CSS::StrokeLinecap> StyleProperties::stroke_linecap() const
{
auto value = property(CSS::PropertyID::StrokeLinecap);
return keyword_to_stroke_linecap(value->to_keyword());
}
float StyleProperties::stroke_opacity() const
{
auto value = property(CSS::PropertyID::StrokeOpacity);