Re: [csswg-drafts] [css-values] Time based numerical functions (#13659)

Why would these be functions instead of environment variables accessible by `env()`?

Could a single function like `current(<CLDR-datetime>)` be more useful? Why would I ever want to style depending on any date and time other than _now_?

How do you get the current month number of, for instance, the Hebrew, Islamic or Coptic calendar?

What would the function for the day of the week (DOW) return today, i.e. on a Sunday? Does it differ if I was from (or in) the US or Afghanistan instead of Europe?

Which number does the year function return when my browser/OS locale is set to Thailand, Japan, Ethiopia or Iran?

How do I use these functions to style something for Lent, Orthodox Easter, Ramadan, US Thanksgiving, Chinese New Year, Pisces or Mother’s Day?

Does the day function always change its result at local midnight or can I get it to switch at dusk, nightfall, sunset (at a specific place), 06:00 or noon?

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13659#issuecomment-4063752609 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 15 March 2026 19:42:44 UTC