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.

To download the current JDK release, click here.
JDK 17
17 b09Fixed
Related Reports
Relates :  
Relates :  
Description
Open bug4765271.java test which tests W3C_LENGTH_UNITS

This test verifies the CSS unit mappings when JEditorPane.W3C_LENGTH_UNITS is in effect.
Comments
Changeset: dbc35f60 Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2021-02-08 14:31:34 +0000 URL: https://git.openjdk.java.net/jdk/commit/dbc35f60
08-02-2021

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.
06-02-2021