This test verifies the CSS unit mappings when `JEditorPane.W3C_LENGTH_UNITS` is 
in effect.

The test needs to be modified to take into account the changes under 
[JDK-8231286](https://bugs.openjdk.java.net/browse/JDK-8257664): _HTML font 
size too large with high-DPI scaling and W3C_LENGTH_UNITS_. 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.

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

Commit messages:
 - Open javax/swing/text/html/CSS/4765271/bug4765271.java

Changes: https://git.openjdk.java.net/jdk/pull/2445/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2445&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8261094
  Stats: 149 lines in 1 file changed: 149 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2445.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2445/head:pull/2445

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

Reply via email to