JDK-8261094 : Open javax/swing/text/html/CSS/4765271/bug4765271.java
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:17
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2021-02-03
Updated:2021-02-16
Resolved:2021-02-08
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The test needs to be modified to take into account the changes under JDK-8231286. Once the changeset for JDK-8231286 is integrated, the bug4765271.java test will fail on High DPI systems or systems where the default screen resolution (dpi) as returned by Toolkit.getScreenResolution() is not 96.
JDK-8231286 makes the font size consistent with what one sees in browsers. The scenarios where the dpi is higher are handled by Java 2D transforms. Thus the unit mappings should not depend on the resolution.
The updated test can be run headless. For debugging purposes and visual inspection, pass ���-show��� parameter to the test.