Skip to content

@media (hover:hover) is known to work incorrectly with Samsung Android devices #21515

@mikkorantalainen

Description

@mikkorantalainen

What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

The description of CSS at-rule: @media: hover media feature at https://caniuse.com/mdn-css_at-rules_media_hover is missing Known Issue that @media (hover:hover) is incorrectly applied on all Samsung Android devices. If I've understood correctly, this is caused by the respective firmware API reporting that the device has "touchpad" instead of "touchscreen".

Bug report about the issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=1349071

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

Test case https://codepen.io/kylegordy/pen/abOLbXV should show no support for hover on all Samsung Android devices with touchscreen (unless active S-pen accessory use if hardware supports that).

Did you test this? If so, how?

https://codepen.io/kylegordy/pen/abOLbXV

Reports hover support on Samsung Android devices even though device has no hover support.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

Bug reports:
https://bugs.chromium.org/p/chromium/issues/detail?id=1349071
https://bugs.chromium.org/p/chromium/issues/detail?id=940256

Do you have anything more you want to share?

Firefox has built-in workaround where it ignores the hardware information reported by the firmware but other browsers seem to trust the firmware to report correct information and having incorrect hover support reported to the CSS media query implementation.

MDN URL

No response

MDN metadata

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:cssCompat data for CSS features. https://developer.mozilla.org/docs/Web/CSS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions