Skip to content

Conversation

@davidsgrogan
Copy link
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
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
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 on lines 78 to 84
The recognized keywords in the [=text-scale=]
<code class=html>&lt;meta&gt;</code> element are:

<ul>
<li><code class="index" lt="legacy!!text-scale-meta">legacy</code></li>
<li><code class="index" lt="scale!!text-scale-meta">scale</code></li>
</ul>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be better to follow the DL format that we have for property values: list them in the DT with a DFN tag, and give them a definition that's understandable to authors wrt what they do.

Copy link
Member Author

Choose a reason for hiding this comment

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

Gave it a try. Let me know if you meant something different.

@davidsgrogan
Copy link
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
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

Co-authored-by: Josh Tumath <josh.tumath@bbc.co.uk>
- Sentence about >1 meta tag
- s/medium/initial/g
- earlier example
@davidsgrogan
Copy link
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 on lines 83 to 85
is recognized as setting the computed value
of the ''font-size/medium'' font size
and consequently scaling the computed size of the other <<absolute-size>> keywords.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think instead of this you want to create a concept and say that it controls this concept.

Copy link
Member Author

Choose a reason for hiding this comment

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

I factored the concept into "text scale factor" and refer to that. Is that approximately what you meant?

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.

5 participants