The second split PR of the CSS saga™.

Some pre-existing issues were found once again in 
https://github.com/openjdk/jfx/pull/2225, which were made more obvious with the 
changes.

When using a relative property like `-fx-padding: 1em;` with a font-size set 
like this: `-fx-font-size: 20px;` may not correctly reset the padding as soon 
as the font size is removed.

In this example, the padding is 20, and when removed, it should reset to 0.

Problem in code is simple: Two different code locations are similar, but not 
completely, leading to a bug just with relative properties, but not otherwise.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8393844: Relative CSS property may not be correctly reset sometimes

Changes: https://git.openjdk.org/jfx/pull/2337/files
  Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2337&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8393844
  Stats: 112 lines in 2 files changed: 101 ins; 9 del; 2 mod
  Patch: https://git.openjdk.org/jfx/pull/2337.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/2337/head:pull/2337

PR: https://git.openjdk.org/jfx/pull/2337

Reply via email to