[csswg-drafts] [MQ] Dates (#9710)

Crissov has just created a new issue for https://github.com/w3c/csswg-drafts:

== [MQ] Dates ==
In #4627 I entertained the idea of date-dependent styles, primarily in order to allow for holiday theming. 

Respondents mostly agreed that this could be useful, but would easily turn into a privacy nightmare.

@frivoal suggested, pointing to [Custom MQs](https://drafts.csswg.org/mediaqueries-5/#custom-mq):
> I think the the following is the way forward:
>
>- ability to access the date
>- ability to make up your own MQ based on the date

I’m proposing the first item since
I believe authors should not need to use JS to achieve that. 

~~~~ css
@custom-media --christmas (month: 12) and (day: 25);

@custom-media --weekend (day: Saturday), (day: Sunday);
~~~~

Although I think styling by time of day might even be more popular, it also is more prone to fingerprinting.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9710 using your GitHub account


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

Received on Thursday, 14 December 2023 20:26:02 UTC