mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Implement CSS Time class
This corresponds to `<time>` in the grammar.
This commit is contained in:
parent
0465abcfec
commit
608bfac2a9
Notes:
sideshowbarker
2024-07-18 05:01:22 +09:00
Author: https://github.com/AtkinsSJ
Commit: 608bfac2a9
Pull-request: https://github.com/SerenityOS/serenity/pull/12727
9 changed files with 268 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue