<Swing Dev> Integrated: 8261094: Open javax/swing/text/html/CSS/4765271/bug4765271.java
Alexey Ivanov
aivanov at openjdk.java.net
Mon Feb 8 14:34:44 UTC 2021
On Sat, 6 Feb 2021 12:11:52 GMT, Alexey Ivanov <aivanov at 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-8231286): _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.
This pull request has now been integrated.
Changeset: dbc35f60
Author: Alexey Ivanov <aivanov at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/dbc35f60
Stats: 149 lines in 1 file changed: 149 ins; 0 del; 0 mod
8261094: Open javax/swing/text/html/CSS/4765271/bug4765271.java
Reviewed-by: serb, psadhukhan, kizune
-------------
PR: https://git.openjdk.java.net/jdk/pull/2445
More information about the swing-dev
mailing list