Skip to content

Commit 2ba2239

Browse files
authored
[css-env-1] Fix typos in explainers/env-preferred-text-scale.md
1 parent f281b7e commit 2ba2239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-env-1/explainers/env-preferred-text-scale.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ We recommend this as best practice, but it might not be practical to do on an ex
337337
}
338338
```
339339

340-
#### Explicitly adjusting the text size {#explicitly-adjusting-the-text-size}
340+
#### Explicitly adjusting the text size
341341

342342
Authors can use the `text-size-adjust` property to selectively boost the font size and line height of certain elements. Note that currently, `text-size-adjust` only has an effect on mobile browsers, but mobile browsers are where text boosting is more prominently needed.
343343

@@ -367,7 +367,7 @@ Authors can use `env(preferred-text-scale)` in media queries and container queri
367367
.sidebar-layout {
368368
display: grid;
369369

370-
@media {
370+
@media (width > calc(50rem * env(preferred-text-scale))) {
371371
grid-template-columns: 1fr 18rem;
372372
}
373373
}

0 commit comments

Comments
 (0)