- From: Richard Rutter via GitHub <sysbot+gh@w3.org>
- Date: Wed, 11 Apr 2018 07:18:25 +0000
- To: public-css-archive@w3.org
Just in case I'm way off, I thought it worthwhile showing how I would go about providing fallback for non-variable fonts as it stands:
```
@font-face {
font-family: 'SourceSans';
src: url('source-sans-variable.woff2') format("woff2" requires variations),
url('source-sans-regular.woff2') format('woff2');
font-weight: 400;
}
@font-face {
font-family: 'SourceSans';
src: url('source-sans-variable.woff2') format("woff2" requires variations),
url('source-sans-black.woff2') format('woff2');
font-weight: 900;
}
```
So in the above example the variable font should be clamped to 400 and 900 weights. But what should happen if I were to append the following rule?
```
@font-face {
font-family: 'SourceSans';
src: url('source-sans-variable.woff2') format("woff2" requires variations);
}
```
I think I would expect it to release the clamps.
But then if I prepended that rule instead, I think I'd expect the clamps to apply. It's possible I'm missing something about how @font-face rules cascade and override each other.
--
GitHub Notification of comment by clagnut
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2485#issuecomment-380352456 using your GitHub account
Received on Wednesday, 11 April 2018 07:18:27 UTC