Closed Bug 1904866 Opened 2 years ago Closed 1 year ago

Pointer media query not respected

Categories

(Firefox for Android :: Browser Engine, defect)

Firefox 127
All
Android
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: lilly, Unassigned, NeedInfo)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

Using the following HTML snippet:

<!DOCTYPE html>
<html>
<head>
<style>
@media (pointer:fine){
p {
background-color: red;;
}
}
@media (pointer: coarse){
p {
background-color: blue;
}
}
</style>
</head>
<body>
<p>Hello world</p>
</body>
</html>

I would expect a normal desktop to display a red background, and a normal Android device to display a blue one. This is following the compatibility chart on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer

Actual results:

Firefox on Desktop displays it in Red as expected
Google Chrome on Android displays Blue as expected
Firefox on Android displays Blue

Expected results:

Firefox on Android should display Red

The example at https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer does not work either.
The checkbox still has a blue background when it should be red

Hey Lilly, I wasn't able to reproduce this issue on my device. Both your example and MDN used the appropriate coarse colors in Fenix. Do you happen to have any extensions or modified about:config values? If you do a fresh install of another variant (Nightly, Beta or Release) can you reproduce the issue?

Flags: needinfo?(lilly)

Going to close this as works for me. Please re-open if you're still able to reproduce!

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: