air-quality.com - Map is displayed too small
URL: https://air-quality.com/map?center_lon=116.68090000748636&span_lon=4.075848609209061¢er_lat=39.653387918297646&span_lat=5.157042907475542
Browser / Version: Firefox Mobile 90.0 Operating System: Android 10 Tested Another Browser: Yes Chrome
Problem type: Design is broken Description: Items not fully visible Steps to Reproduce: The map height is too small on Firefox while it is large enough on Chrome.
View the screenshot
Browser Configuration
- gfx.webrender.all: false
- gfx.webrender.blob-images: true
- gfx.webrender.enabled: false
- image.mem.shared: true
- buildID: 20210503094544
- channel: nightly
- hasTouchScreen: true
- mixed active content blocked: false
- mixed passive content blocked: false
- tracking content blocked: false
From webcompat.com with ❤️
Thanks for the report, I was able to reproduce the issue.

Note: The issue is not reproducible on Chrome.
Tested with: Browser / Version: Firefox Nightly 90.0a1 (🦎 90.0a1-20210505095249) Operating System: Samsung Galaxy S8 (Android 9) - 1440 x 2960 pixels, 18.5:9 ratio (~570 ppi density), Google Pixel 5 (Android 11) - 1080 x 2340 pixels, 19.5:9 ratio (~432 ppi density)
Moving to Needsdiagnosis for further investigation.
Looks like map container has its height defined using calc function, but its parent container doesn't have height property set.
.detail-full-map {
height: calc(100% - 45px);
width: 100%;
border-radius: 8px;
background: #fff;
position: relative;
}
Setting height: 100% for .map_wrapper should fix the issue. Or using height: calc(100vh - 45px); instead of % value will give the same result.
I've noticed that the site doesn't have doctype declaration. As for the difference with Chrome, it appears to be that Chrome doesn't require parent element to have explicit height, but only in quirks mode . If I add a doctype, the behaviour matches Firefox. Here is a reduced test case:
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<style>
.detail-full-map {
height: calc(100% - 45px);
width: 100%;
border-radius: 8px;
background: rgb(255, 255, 255) none repeat scroll 0% 0%;
position: relative;
border: 1px solid red;
}
</style>
</head>
<body>
<div class="detail-full-map" id="map"></div>
</body>
</html>
Lets move this to needscontact and I think adding an intervention also would be useful
From https://air-quality.com/places?lang=en&standard=aqi_us -> Google Play Store app listing (https://play.google.com/store/apps/details?id=com.freshideas.airindex) I've found a contact email address [email protected].
Also confirmed on their (company) website: https://air-matters.com/
Email sent to address provided by reinhart1010
Thanks for this report. We will look into it.
The issue has been fixed and it is no longer reproducible:

Tested with: Browser / Version: Firefox Nightly 97.0a1 (2015856747 -🦎97.0a1-20220108220226🦎) Operating System: Samsung A51 (Android 11) -1080 × 2400 pixels 20:9 aspect ratio (~405 ppi density)
Closing this as FIXED