1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibWeb: Implement CSS Time class

This corresponds to `<time>` in the grammar.
This commit is contained in:
Sam Atkins 2022-02-21 19:29:43 +00:00 committed by Andreas Kling
parent 0465abcfec
commit 608bfac2a9
9 changed files with 268 additions and 5 deletions

View file

@ -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();
}