W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

Re: [csswg-drafts] [css-mediaqueries] `lang` as a media feature: Conditional requests for CSSs in multilingual web sites (#5465)

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Wed, 02 Sep 2020 10:30:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-685580065-1599042618-sysbot+gh@w3.org>
The media query is mostly for the case that you have the same content, but different representation for the content under different settings. But in the case of language, the content needs to be changed anyway, and you can simply change the stylesheet referenced at the same time, e.g. for English users you serve
```html
<html lang="en">
<link rel="stylesheet" href="stylesheet-en.css">
<!-- English content -->
```
and for French users you serve
```html
<html lang="fr">
<link rel="stylesheet" href="stylesheet-fr.css">
<!-- French content -->
```

There is no extra bandwidth consumption, is it?

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 2 September 2020 10:30:21 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:15 UTC