This bug can be reproduced when the screen resolution is at 125%, 150% and 175% for Windows, which correpsonds to `pixelScale` values of 1.25, 1.5 and 1.75, respectively.
Issue: The rectangle inside canvas is rendered on `pixelScale` while the borders are rendered on `Math.ceil(pixelScale)` Fix: Use `Math.ceil(pixelScale)` for calculating `pixelScaleTransform` ------------- Commits: - fde17b8c: 8234471: Canvas in webview displayed with wrong scale on Windows Changes: https://git.openjdk.java.net/jfx/pull/62/files Webrev: https://webrevs.openjdk.java.net/jfx/62/webrev.00 Issue: https://bugs.openjdk.java.net/browse/JDK-8234471 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.java.net/jfx/pull/62.diff Fetch: git fetch https://git.openjdk.java.net/jfx pull/62/head:pull/62 PR: https://git.openjdk.java.net/jfx/pull/62