Comments (6)
Ah I see. I can reproduce using Lighthouse in DevTools but I'm not seeing the issue with Lighthouse CLI
from lighthouse.
Thank you for taking the time to make the repro and filing the upstream bug 🙇
It's fine to close this, I can track the upstream issue :)
from lighthouse.
During a Lighthouse run with mobile emulation enabled, I am seeing window.matchMedia('(any-pointer: coarse)').matches
return true
. Can you provide an example page where you are seeing the media query styles not being applied?
from lighthouse.
You can test with this example :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
a {
display: block;
margin: 0;
padding: 0;
}
@media (any-pointer: coarse) {
body {
background-color: green;
}
}
@media (any-pointer: coarse) {
a {
margin: 50px;
}
}
/* @media (width <= 600px) {
a {
margin: 50px;
}
} */
</style>
</head>
<body>
<a href="#1">One</a>
<a href="#2">Two</a>
</body>
</html>
I expect to see a green background and a lot of white space around each anchor.
Instead I see a white background and no white space.
I also see this notice:
Tap targets are not sized appropriately 0% appropriately sized tap targets
from lighthouse.
Thank you for checking again!
Interesting that it does work as expected in Lighthouse CLI.
from lighthouse.
I made a minimum repro and filed an upstream bug in chrome:
https://issues.chromium.org/u/1/issues/331757596
from lighthouse.
Related Issues (20)
- Isolate lantern in preparation for moving to trace engine
- Gathering trace data from iframe targets HOT 5
- Protocol error (Storage.getUsageAndQuota): Quota information is not available HOT 1
- Invalid_url when trying to run in Incognito HOT 2
- Page is hidden at first causing a `visibilitychange` event during testing HOT 11
- INP report in Detail HOT 2
- RootCauses Artifact is slow if there are lots of "SVG changed" invalidations HOT 3
- TraceElements: `impactedNodes` is not iterable HOT 3
- Allow clicking on timeline images to open the full-size image HOT 1
- Lighthouse SEO section shows "unable to download a robots.txt file" for every site HOT 5
- layout-shifts `details.headings[n].subHeadings` is missing `valueType: 'node'` HOT 1
- zstd not recognized as compression (new in M123)
- How to configure triggered of the end of a navigation?
- Utilize localized failure messages from axe HOT 1
- Excessive style recalcs caused by CSS usage tracking HOT 4
- Improve documentation on standalone mode runners HOT 5
- Page crashes when running test from large DOM.getDocument response HOT 4
- Unexpected changes in main thread time reported around March 8th HOT 10
- Sequential network requests are simulated as parallel and the first rtt is ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse.