Skip to content

CssStyleSheet resolutionValue warning #992

@Vlatombe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions