Re: Date queries (feature suggestion)

seasonal theming: <https://github.com/w3c/csswg-drafts/issues/4627>

Am 1. Juni 2020, 18:53, um 18:53, Max Harmony <maxh@maxh.me.uk> schrieb:
>I'd like to suggest date/time queries as a feature. Example syntax
>would be something like:
>
>@date (hour<12){ /*morning style*/ }
>@date (month==12 & day==25){ /*Christmas style*/ }
>
>It's possible to do something similar with server-side languages, of
>course, but that approach has several problems: it causes issues with
>cacheing, it uses the server's timezone instead of the viewer's, it
>increases load on the server, and it is only available if there *is* a
>server.

Received on Monday, 1 June 2020 18:01:42 UTC