Re: [csswg-drafts] font-size-adjust: auto (#5539)

>  Such an auto value would not provide that functionality, just provide ex-heght consistency for font-family changes.

Why so? It is simply doing 

```js
let aspect = font_size[0] / x_height[0];
```
and then for all fonts in the list after the first one
```js
font_size[n] = x_height[n] * aspect;
```

> p.s. It's a little unfortunate that such a generic syntax is relevant only to European writing systems: 

It is, but [that proposal (by Todd Fahrner)](https://lists.w3.org/Archives/Public/www-style/1997Dec/0235.html) was made a long, long time ago. The Web was still proud of being 8859-1 instead of ASCII, and handling all (Western) European languages.

It was proposed just after [the first WD of CSS2 in 1997](https://www.w3.org/TR/WD-CSS2-971104/fonts.html) but made it into [the next one in 1998](https://www.w3.org/TR/1998/WD-css2-19980128/fonts.html#propdef-font-size-adjust):


> Property name:  'font-size-adjust'
> Value: z | none | inherit
> 
> z
>    This value refers to the ratio of em- to x-heights of the "first choice" font in decimal notation.

Notice it was automatically calculated, just as Myles is proposing.

The [1998 Proposed Rec](https://www.w3.org/TR/1998/PR-CSS2-19980324/fonts.html#propdef-font-size-adjust) had changed it to a number:

>  'font-size-adjust'
> Value:  <number> | none | inherit
> Initial: | none



-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5539#issuecomment-700814404 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 29 September 2020 16:17:03 UTC