On Thu, 21 May 2026 15:46:49 GMT, Andy Goryachev <[email protected]> wrote:

> should this malformed css fail? (it does not)
> 
> ```
> @media
>     {
>         .button { -fx-background-color: red; }
>     }
> ```

This should work and correspond to a true query. See `MediaQueryList` L74:

    /**
     * Evaluates whether any of the media queries is {@code true}.
     *
     * @param context the evaluation context
     * @return {@code true} if any of the media queries is {@code true} or if 
the list is empty,
     *         {@code false} otherwise
     */
    public boolean evaluate(MediaQueryContext context)


See also [here](https://www.w3.org/TR/mediaqueries-5/#mq-list):
> An empty [media query 
> list](https://www.w3.org/TR/mediaqueries-5/#media-query-list) evaluates to 
> true.

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

PR Comment: https://git.openjdk.org/jfx/pull/2162#issuecomment-4510108294

Reply via email to