Use WOFF2 examples in @font-face docs #44262
Conversation
|
Preview URLs (2 pages)
Flaws (4) Found an unexpected or unresolvable flaw? Please report it here. URL:
URL:
(comment last updated: 2026-05-27 11:04:49) |
There was a problem hiding this comment.
Hi there, @s4daexe, and thanks for your work on this. This is going in the right direction, but there is still more work to do here:
- In the example you have edited, your edits mean that the second line starting with
url(...)is now the same as the third. You should just delete the second one of these. - More seriously, this issue is not just present on the one page you have edited. It is present on all the child descriptor pages, too. It would be good for you to fix the problem there, too.
| src: | ||
| url("MgOpenModernaBoldIncr.otf") format("opentype") tech(incremental), | ||
| url("MgOpenModernaBold.otf") format(opentype); | ||
| url("MgOpenModernaBoldIncr.woff2") format("woff2") | ||
| url("MgOpenModernaBold.woff2") format("woff2") |
There was a problem hiding this comment.
[mdn-linter] reported by reviewdog 🐶
| src: | |
| url("MgOpenModernaBoldIncr.otf") format("opentype") tech(incremental), | |
| url("MgOpenModernaBold.otf") format(opentype); | |
| url("MgOpenModernaBoldIncr.woff2") format("woff2") | |
| url("MgOpenModernaBold.woff2") format("woff2") | |
| src: url("MgOpenModernaBoldIncr.woff2") format("woff2") | |
| url("MgOpenModernaBold.woff2") format("woff2"); |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
chrisdavidmills
left a comment
There was a problem hiding this comment.
Several other child pages also need fixes: see the list at https://pr44262.review.mdn.allizom.net/en-US/docs/Web/CSS/Reference/At-rules/@font-face#descriptors.
Summary
Updates the
@font-faceexamples to use WOFF2 font files instead of OTF files, following modern web font best practices.Fixes #42936