-
Notifications
You must be signed in to change notification settings - Fork 711
CSS support differs from regular Firefox Android? #4252
Comments
I'm using this for implementing a sticky footer. display: flex;
flex-direction: column;
min-height: 100vh; /* fallback */
min-height: stretch; /* aka fill, aka fill-available */
/* Firefox prefix does not work with height properties, force fallback */
@supports (min-height:-moz-available) {
min-height: 100vh;
}
> main {
flex: 1;
}
> footer {
flex-shrink: 0;
} I've noticed that if I remove other EDIT: Turns out Firefox Focus is using I tried the following which normally is rendered like a desktop site with very small text: <!doctype html>
<html>
<head>
<title>Basic webpage</title>
</head>
<body>
This is a basic webpage.
</body>
</html> This didn't render like Chrome and Firefox but instead as if the markup was setup to cater for mobile by default: <!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<title>Basic webpage</title>
</head>
<body>
This is a basic webpage.
</body>
</html> The options have a "Request Desktop Site" but with either markup I'm not seeing a difference. So that may very well be another bug I should raise an issue for? Both markups add additional scrolling height to account for the URL bar, while regular Firefox on android and Chrome do not. |
Please give a screenshot about that. Focus on iOS indeed is without gecko. Please give one that it is from Android. Make a testcase, make sure you only detect -webkit-fill-available and when it is detected add some styles to the body or make a container that will contain these ones. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Steps to reproduce
I'm using a CSS-in-JS library that prefixes at run-time client-side. Unfortunately using this prefix with height properties in Firefox has been a bug for 9 years (with recent version 66 making a slight improvement, but this particular value/prefix still is bugged).
As a result, to workaround the prefixing, I have used the feature query as shown above. This works in Firefox on the desktop and android apps, allowing me to enforce the fallback value(100vh for min-height). However Firefox Focus appears to ignore it, the
background-color
does not change.Expected behavior
background-color
should change toseagreen
, or at least the CSS above should match what other Firefox apps are doing.Actual behavior
Feature query is ignored,
background-color
remainsaliceblue
.Device information
caniuse.com does not list a separate target for Firefox Focus. If the CSS differs from the Android app, could you please point me to a reference where I can see the support/differences? MDN does not differentiate Focus as different either.
The text was updated successfully, but these errors were encountered: