mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibWeb: Implement CSS Time class
This corresponds to `<time>` in the grammar.
This commit is contained in:
committed by
Andreas Kling
parent
0465abcfec
commit
608bfac2a9
@@ -4310,6 +4310,8 @@ Optional<CalculatedStyleValue::CalcValue> Parser::parse_calc_value(TokenStream<S
|
||||
// Resolution is not allowed in calc()
|
||||
return {};
|
||||
}
|
||||
if (dimension.is_time())
|
||||
return CalculatedStyleValue::CalcValue { dimension.time() };
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user