-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font-weight page doesn't explain whether it is possible to set a range, or if so, how #32619
Comments
There are two pages titled
The first one, which takes only one value, is a property that is applied on elements in html: div {
font-weight: bold;
font-weight: 100;
} The second one, which can take two values, is applied only in context of the /* font definition */
@font-face {
font-family: "MyCoolFont";
src: url(./assets/fonts/my_cool_font.woff2);
font-weight: 600 900; /* here the range tells browser to select this font if weight lies in between 600-900 */
}
/* font use */
div {
font-family: "MyCoolFont";
font-weight: 700; /* here we tell browser that we want text of 700 weight */
} You can play with it on MDN playground. Perhaps you meant to look at the first page @estelle @wbamberg Should we retitle all the pages under |
Yes, I was thinking the same thing, it is very confusing having both pages with the same title, especially when most of the syntax is the same as well. But it is a whole conversation, and opens the question of whether we should also have more informative titles for other CSS pages, like "font-weight property". |
Rather than retitling, I'd suggest cross-linking to related pages at the beginning of each article. It mentions the other pge early on, but I thought it must be linking back to itself. |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-weight
What specific section or headline is this issue about?
It's an overall issue
What information was incorrect, unhelpful, or incomplete?
What did you expect to see?
Information for users to set font-weight so that more pages will be readable.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/css/@font-face/font-weight
The text was updated successfully, but these errors were encountered: