Re: [csswg-drafts] Revisiting standardization of the `zoom` property (#5623)

[Vivliostyle](https://github.com/vivliostyle/vivliostyle.js) is also relying on zoom, to solve the issue [Minimum font size setting in Chrome causes ruby font size problem](https://github.com/vivliostyle/vivliostyle.js/issues/673).

I admit that using `zoom: 0.5` instead of `font-size: 50%` in ruby-text is an insane way. However, I can't find a better workaround for the problem that `font-size: 50%` does not work correctly on Chrome because of [the default setting of minimum font size](https://bugs.chromium.org/p/chromium/issues/detail?id=36429).

See the following test sample, testing `font-size: 50%`, `zoom: 0.5`, and `transform: scale(0.5)` on ruby-text: https://jsbin.com/zewaloc/edit?html,css,output

Result screenshot on Chrome:
<img width="1343" alt="Screen Shot 2021-04-01 at 16 25 01" src="https://user-images.githubusercontent.com/3324737/113279082-ab2b2c00-931d-11eb-9f33-2990825852ad.png">

On Chrome, with the default setting of minimum font size, ruby is displayed typographically correctly only when zoom is used. (And on Firefox, only `font-size: 50%` works fine, of course.)

This zoom usage should never be recommended for normal web pages. However, for typographic apps (for print, in particular) running in browsers, Chrome's zoom property is still needed to workaround Chrome's limitations. 


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


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

Received on Thursday, 1 April 2021 10:12:29 UTC