Re: Date queries (feature suggestion)
Christoph Päper <[email protected]> Mon, 01 Jun 2020 20:01:25 +0200
| Newsgroups | gmane.comp.web.css.general |
|---|---|
| Message-ID | <[email protected]> |
seasonal theming: <https://github=2Ecom/w3c/csswg-drafts/issues/4627>
Am 1=
=2E Juni 2020, 18:53, um 18:53, Max Harmony <maxh@maxh=2Eme=2Euk> schrieb:
=
>I'd like to suggest date/time queries as a feature=2E Example syntax
>woul=
d be something like:
>
>@date (hour<12){ /*morning style*/ }
>@date (month=
=3D=3D12 & day=3D=3D25){ /*Christmas style*/ }
>
>It's possible to do somet=
hing similar with server-side languages, of
>course, but that approach has =
several problems: it causes issues with
>cacheing, it uses the server's tim=
ezone instead of the viewer's, it
>increases load on the server, and it is =
only available if there *is* a
>server=2E