-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buttons look funky in Firefox for Android #8702
Comments
OK, marking as "confirmed" then. |
:) 2013/7/28 Chris Rebert [email protected]
Zlatan Vasović - ZDroid |
I dug into this using Firefox remote debugging on a Nexus 4. It turns out the default user agent stylesheet for Android Firefox 22.0 uses a
Bootstrap 3.0 only sets To fix this, Bootstrap could set |
@ssorallen Nice work! I wonder whether this would be appropriate for normalize.css. |
Yea. Good idea Chris. It can go to Normalize. 2013/7/29 Chris Rebert [email protected]
|
So, has anyone filed a bug about this with Mozilla like necolas asked? |
@cvrebert Is this a bug? Is there a spec that specifies how user agents should style elements? Using a background gradient is annoying since it's different from all other user agents, but it's not broken. |
https://bugzilla.mozilla.org/show_bug.cgi?id=900871 2013/8/2 Ross Allen [email protected]
Zlatan Vasović - ZDroid |
@zdroid I wouldn't call this a "bug". It could be filed as an improvement for the sake of making Android Firefox conform to convention, but styles don't appear to be a standard. The default style sheet for HTML 4 provided by the W3C says, "Developers are encouraged to use it as a default style sheet in their implementations." It doesn't say it's a standard though; styling is up to the user agent. The HTML5 spec gives suggested styles for elements, like the |
@ssorallen It's UX bug... improvment. |
|
@cvrebert I will let you know and provide screenshots asap. Do you prefer this thread or the other one in normalize.css repo for feedbacks? |
Some screenshots Before:
After:button,
textarea,
input,
select[multiple] /* WARNING!!! */
{
background-image: none;
}
input[type="file"] {
border: none;
} WarningThe |
Good point. 2013/8/2 Geremia Taglialatela [email protected]
Zlatan Vasović - ZDroid |
Perhaps someone could track down Fennec's user agent stylesheet so that we can make sure we don't miss any elements from the @tagliala You should report your hard-earned findings about these additional affected elements in the normalize.css issue. (Probably don't need to re-post the screenshots there though.) |
Fennec's button {
-moz-appearance: none;
min-width: @touch_button_small@ !important; /* button size */
min-height: @touch_button_small@ !important; /* button size */
color: #000;
border-radius: @border_radius_normal@;
margin: @margin_normal@;
padding: @padding_xnormal@;
background-image: url("chrome://browser/skin/images/button-bg.png");
background-size: auto 100%;
border: @border_width_tiny@ solid #cacdd5;
} I couldn't navigate Firefox's repository well enough to find its platform-specific stylesheets, but it looks like they're somewhere in here: https://hg.mozilla.org/mozilla-central/file/d3a0ac52d5d4/browser/themes |
@ssorallen the file should be this one: http://hg.mozilla.org/mozilla-central/file/d2ce76654a6a/mobile/android/themes/core/content.css button {
border-style: solid;
border-color: #7d7d7d;
color: #414141;
background: white linear-gradient(rgba(255,255,255,0.2) 0, rgba(215,215,215,0.5) 18px, rgba(115,115,115,0.5) 100%);
} here it is a fiddle: http://jsfiddle.net/tagliala/SkdNr/ edit: a new version with html.css + forms.css + content.css + bootstrap.css: http://jsfiddle.net/tagliala/SkdNr/1/ edit2: the fiddle is just an example |
Nice find, @tagliala. I thought the one I found looked a bit off. |
So what's the deal here then? Do we need to override some styles or is this all browser bugs and Normalize? |
@mdo It's not a bug. The change belongs in Normalize. |
Groovy. Thanks so much @ssorallen. |
Until normalize gets updated, shouldn't we add a note in the docs, perhaps with a link to this issue? |
@ggam I suppose there is no mention because firefox mobile is not officially supported |
@tagliala nor Linux is officialy supported (what I think is bad), but if there are known issues, at least we should warn of them to provide a decent user experience. I understand we have not enough community to test everything in all browsers, but if we mantain IE8 support, we cannot totally ignore emerging platforms. |
Looks like Mozilla came to their senses and are shipping a fix for this in Android Firefox 35 (with regard to gradients). |
A fix is shipping in Firefox 35: https://bugzilla.mozilla.org/show_bug.cgi?id=763671
A fix is shipping in Firefox 35: https://bugzilla.mozilla.org/show_bug.cgi?id=763671
See comment w/ screenshot: #6342 (comment)
/cc @suralc
/cc @zdroid (why Zlatan didn't just file this issue themself, I don't understand)
Questions:
Caution: Firefox for Android isn't currently on the list of officially supported browsers (http://twbs.github.io/bootstrap/getting-started/#browsers ). But we'll try our best!
The text was updated successfully, but these errors were encountered: