Skip to content
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

fix(css): update italic font variation example #37173

Merged
merged 3 commits into from
Dec 12, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions files/en-us/web/css/css_fonts/variable_fonts_guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ Click "Play" in the code blocks below to edit the example in the MDN Playground.
<div>
<p class="p1">Italic</p>
<span>(font-style: italic)</span>
<p class=".p1-no-synthesis">Italic</p>
<span>(font-style: italic; font-synthesis: none)</span>
</div>
<div>
<p class="p2">Italic</p>
Expand Down Expand Up @@ -322,14 +324,18 @@ p {
```css live-sample___variable-fonts-italic-example
/* italic range is 0 or 1 */
estelle marked this conversation as resolved.
Show resolved Hide resolved
.p1 {
font-synthesis: none;
font-style: italic;
}

.p1-no-synthesis {
font-style: italic;
font-synthesis: none;
}

/* italic range is 0 or 1 */
.p2 {
font-synthesis: none;
font-variation-settings: "ital" 1;
font-synthesis: none;
}

/* Adjust with slider & custom property */
Expand Down
Loading