On Sun, 14 Dec 2025 18:57:50 GMT, Michael Strauß <[email protected]> wrote:

>> Implementation of [viewport characteristics media 
>> features](https://www.w3.org/TR/mediaqueries-5/#mf-viewport-characteristics):
>> * `width`
>> * `height`
>> * `aspect-ratio`: width / height
>> * `orientation`: `portrait`, `landscape`
>> * `display-mode`: `fullscreen`, `standalone` (note: `browser` and 
>> `minimal-ui` are not supported in JavaFX)
>
> Michael Strauß has updated the pull request with a new target base due to a 
> merge or a rebase. The pull request now contains 14 commits:
> 
>  - Merge branch 'master' into feature/media-features-viewport-characteristics
>  - resolve merge conflicts
>  - Merge branch 'master' into feature/media-features-viewport-characteristics
>    
>    # Conflicts:
>    #  
> modules/javafx.graphics/src/test/java/test/javafx/css/CssParser_mediaQuery_Test.java
>  - update cssref.html
>  - Merge branch 'master' into feature/media-features-viewport-characteristics
>  - whitespace, add final modifier
>  - Merge branch 'master' into feature/media-features-viewport-characteristics
>  - Refactor context awareness
>  - Merge branch 'master' into feature/media-features-viewport-characteristics
>  - Merge branch 'master' into feature/media-features-viewport-characteristics
>  - ... and 4 more: https://git.openjdk.org/jfx/compare/32e667df...19cdaeaa

A CSS example (either in the ticket or the PR) would be nice, for ease of 
reviewing.

Here, I am trying to see if the button background will change when I move the 
monkey tester window from one monitor to another (one is 1900 px wide, the 
other is 2560).  I see no change:


    @media (width < 2000) {
        .button {
            -fx-background-color: red;
        }
    }


What am I doing wrong?

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

PR Comment: https://git.openjdk.org/jfx/pull/1844#issuecomment-3657576232

Reply via email to