mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Implement CSS Angle class
This corresponds to `<angle>` in the grammar.
This commit is contained in:
parent
a07fed4e53
commit
355d1936f2
Notes:
sideshowbarker
2024-07-17 18:20:14 +09:00
Author: https://github.com/AtkinsSJ
Commit: 355d1936f2
Pull-request: https://github.com/SerenityOS/serenity/pull/12727
9 changed files with 293 additions and 31 deletions
|
@ -4298,6 +4298,8 @@ Optional<CalculatedStyleValue::CalcValue> Parser::parse_calc_value(TokenStream<S
|
|||
return {};
|
||||
auto& dimension = maybe_dimension.value();
|
||||
|
||||
if (dimension.is_angle())
|
||||
return CalculatedStyleValue::CalcValue { dimension.angle() };
|
||||
if (dimension.is_length())
|
||||
return CalculatedStyleValue::CalcValue { dimension.length() };
|
||||
if (dimension.is_percentage())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue