Re: [csswg-drafts] [css-pseudo][MQ][css-env] Seasonal Theming (#4627)

Besides date and time (e. g. ISO 8601), one would also need some kind of information about the userʼs location (e. g. ISO 3166) .

~~~~ css
@env (date(-07-04) and location(us))
  or (date(-07-14) and location(fr)) {
      --color-1: red;
      --color-2: blue;
      --color-3: white;
} 
~~~~

~~~~ css
@date month = 7 {
  @date day = 4 or (1 week before) {
    @location us {
      color-scheme: red-white-blue;
    } 
  @date 7 < day =< 14 {
    @location fr {
      color-scheme: red-white-blue;
    } 
  } 
} 
~~~~

~~~~ css
@media local-season = winter {
   cursor: url("snowflakes.ani");
} 
~~~~

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

Received on Thursday, 26 December 2019 14:42:10 UTC