mdn / mdn/browser-compat-data

Add the new `preferred-text-scale` env variable

Open
#26,923 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:chrome data:css p3
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

See https://chromestatus.com/feature/5328467685801984
And https://drafts.csswg.org/css-env-1/#text-zoom

The preferred-text-scale CSS environment variable exposes a user's preferred font scale to CSS.
This new CSS env variable is shipping in Chromium 138.

What browsers does this problem apply to, if applicable?

Chromium (Chrome, Edge 79+, Opera, Samsung Internet)

What did you expect to see?

New compat data in https://github.com/mdn/browser-compat-data/blob/main/css/types/env.json

Did you test this? If so, how?

N/A

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open css/types/env.json and review how existing CSS environment variables record browser support. Use the Chromium feature and CSSWG links in the issue to add preferred-text-scale compatibility data, with Chromium 138 as the reported shipping version; done means the new entry is represented in that file and matches the dataset's existing structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.