RFR: 8336097: UserAgent Styles using lookups are promoted to Author level if look-up is defined in Author stylesheet [v2]
John Hendrikx
jhendrikx at openjdk.org
Mon Jul 22 14:10:57 UTC 2024
On Fri, 19 Jul 2024 22:53:36 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> John Hendrikx has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add test case
>
> modules/javafx.graphics/src/test/java/test/javafx/scene/CssStyleHelperTest.java line 705:
>
>> 703: INLINE_OVERRIDES_USER_AGENT(RED_STYLESHEET, null, null, "-fx-background-color: #808080"),
>> 704: INLINE_OVERRIDES_PROPERTY(RED_STYLESHEET, Color.BLUE, null, "-fx-background-color: #808080"),
>> 705: INLINE_OVERRIDES_AUTHOR(RED_STYLESHEET, null, RED_STYLESHEET, "-fx-background-color: #808080"),
>
> Should we add other combinations:
> (R,B,R,..
> (RED_INDIRECT,..
I've added cases where user agent stylesheet is `null`, but I've not added all combinations -- I feel there is no point to check if an inline style will override all combinations of user agent, property and author styles when there are already 3 cases that check if the inline style will override user agent, property and author styles individually. That said, I've added a few cases where ALL competing options are set (ie. for inline, a case where UA, property and author are set, and see if inline still wins).
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1503#discussion_r1686618843
More information about the openjfx-dev
mailing list