Skip to content

CssStyleSheet resolutionValue warning #992

Description

@Vlatombe

I'm seeing the following warning during execution

Jul 21, 2025 12:01:07 PM org.htmlunit.css.CssStyleSheet resolutionValue
WARNING: CSSValue '1x' has to be a 'dpi', 'dpcm', or 'dppx' value.

Looking at usages that could have caused this warning, I found https://developer.mozilla.org/en-US/docs/Web/CSS/image/image-set and checking existing source of org.htmlunit.css.CssStyleSheet#resolutionValue, it doesn't handle x as a valid suffix, which I think is an oversight.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions