Skip to content

[css-fonts-5] Define behavior for <meta text-scale> from #12380#13052

Merged
svgeesus merged 12 commits intomainfrom
spec
Dec 26, 2025
Merged

[css-fonts-5] Define behavior for <meta text-scale> from #12380#13052
svgeesus merged 12 commits intomainfrom
spec

Conversation

@davidsgrogan
Copy link
Copy Markdown
Member

@davidsgrogan davidsgrogan commented Nov 2, 2025

Initial definition of <meta name="text-scale" content="..."> resolved on in #12380

@davidsgrogan davidsgrogan marked this pull request as ready for review November 2, 2025 17:29
@davidsgrogan
Copy link
Copy Markdown
Member Author

davidsgrogan commented Nov 2, 2025

Hi @JoshTumath , this is my fork of Keith's initial PR. I left the definition of env(preferred-text-scale) in css-env-1 and just referred to it from here. Even though this PR is not fully complete (I didn't mention media queries, for example), I'm hoping to get it in as a kind of MVP spec. Let me know if you think something major is missing and definitely let me know if something is not correct.

Copy link
Copy Markdown
Collaborator

@fantasai fantasai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
@davidsgrogan
Copy link
Copy Markdown
Member Author

Also, in general, please follow https://rhodesmill.org/brandon/2012/one-sentence-per-line/ :)

Thanks for pointing that out.

@davidsgrogan davidsgrogan requested a review from fantasai November 5, 2025 23:07
Copy link
Copy Markdown
Contributor

@JoshTumath JoshTumath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @JoshTumath , this is my fork of Keith's initial PR. I left the definition of env(preferred-text-scale) in css-env-1 and just referred to it from here. Even though this PR is not fully complete (I didn't mention media queries, for example), I'm hoping to get it in as a kind of MVP spec. Let me know if you think something major is missing and definitely let me know if something is not correct.

This looks great! As far as I can tell, it covers everything in the Explainer.

Should the font-size section of the spec also redefine the absolute size keywords in relation to the meta tag/env var?

Once this is merged, we'll need to add the meta extension to this WHATWG wiki page: https://wiki.whatwg.org/wiki/MetaExtensions

Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs
Comment thread css-fonts-5/Overview.bs
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Comment thread css-fonts-5/Overview.bs Outdated
Co-authored-by: Josh Tumath <josh.tumath@bbc.co.uk>
- Sentence about >1 meta tag
- s/medium/initial/g
- earlier example
@davidsgrogan
Copy link
Copy Markdown
Member Author

@fantasai I'd love to get another round of feedback on this, or a stamp of approval if it's sufficient as is!

Comment thread css-fonts-5/Overview.bs Outdated
@svgeesus svgeesus merged commit 911331b into main Dec 26, 2025
1 check passed
@davidsgrogan davidsgrogan deleted the spec branch December 30, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants