<Swing Dev> RFR: 8231286: HTML font size too large with high-DPI scaling and W3C_UNIT_LENGTHS

Alexey Ivanov aivanov at openjdk.java.net
Wed Jan 27 11:50:39 UTC 2021


On Tue, 26 Jan 2021 20:46:49 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> > I believe we're talking about javadoc spec: its text has not changed.
> > CSS spec is updated. Since you follow the rules of CSS 2.2, it's better to link to CSS 2.2.
> 
> No, I did not mean the JavaDoc, my question was - "what part of the CSS spec was updated"?

You're right. I looked closely at the text in CSS 2.1 and 2.2 and length definitions are the same. CSS 2.1 contains a warning that several sections have been updated. Yet this particular one seems to have remained the same.

Yet the fix is still required. Swing handles High DPI by scaling all UI therefore all length units factors should not depend on the screen resolution or print resolution, the changes in resolution are automatically handled by 2d transform.

However, changing the link to the CSS specification is optional. Shall we update it to the most recent one?

-------------

PR: https://git.openjdk.java.net/jdk/pull/2223


More information about the swing-dev mailing list