On Sat, 6 Feb 2021 12:11:52 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
> 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. Marked as reviewed by psadhukhan (Reviewer). ------------- PR: https://git.openjdk.java.net/jdk/pull/2445