You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove default background image in Firefox for Android #214
Does the HTML spec specify how elements should be styled by user agents that implement it? If it doesn't, I wouldn't consider this a bug but possibly an improvement to make Firefox on Android style its <button> element like other user agents already out there.
There are others background image on textarea, input and select: twbs/bootstrap#8702 (comment) (screenshots provided)
the problem is that the select tag is "fine", select[multiple] is not... details on the above comment. Someone is also trying to track firefox's platform-specific stylesheets
@tagliala Mozilla does use the shorthand background, but the only part that is abnormal is background-image. Internet Explorer, Chrome, and Firefox also style button elements with background-color, and so leaving that in tact for mobile Firefox seems fine. Normalize.css isn't trying to be a full CSS reset.
Not interest in doing that. I think it's the wrong solution.
The Firefox team seem uninterested in changing their default styles to avoid these problems. But, from a developer perspective, I think this stuff should be fixed in classes for button-like components, input components, etc., rather than in the base styles. So basically, I don't think the Bootstrap fix was the right way to do it. It should have been done in the .btn and form classes.
Activity
ssorallen commentedon Jul 29, 2013
The UA stylesheet isn't using
!important, and so using thebuttonselector does the trick:This is my test page: https://github.com/ssorallen/ssorallen.github.io/blob/master/button.html
And as a real page: http://ssorallen.com/button.html
ssorallen commentedon Jul 29, 2013
Ignore the slight difference in button sizes; I pinch zoomed to get a better view and didn't zoom to the exact same level for each screenshot.
DEFAULT, NO ADDED STYLES:

WITH

button { background-image: none; }:necolas commentedon Jul 29, 2013
Did anyone open an issue against Firefox for Android? Please can you link to it in this ticket. Thanks
zlatanvasovic commentedon Jul 29, 2013
I will report it at bugzilla, or someone else will do. :D
But we can wait a lot until it will be fixed and also older versions will
not be supported.
2013/7/29 Nicolas Gallagher notifications@github.com
Zlatan Vasović - ZDroid
ssorallen commentedon Jul 29, 2013
Does the HTML spec specify how elements should be styled by user agents that implement it? If it doesn't, I wouldn't consider this a bug but possibly an improvement to make Firefox on Android style its
<button>element like other user agents already out there.cvrebert commentedon Aug 2, 2013
Apparently
<textarea>and<input type="text">also have a similar problem; see comment twbs/bootstrap#8702 (comment)zlatanvasovic commentedon Aug 2, 2013
https://bugzilla.mozilla.org/show_bug.cgi?id=900871
zlatanvasovic commentedon Aug 2, 2013
@necolas They don't want to fix that. So, can it be normalized?
tagliala commentedon Aug 2, 2013
There are others background image on
textarea,inputandselect: twbs/bootstrap#8702 (comment) (screenshots provided)the problem is that the
selecttag is "fine",select[multiple]is not... details on the above comment. Someone is also trying to track firefox's platform-specific stylesheetstagliala commentedon Aug 3, 2013
The css file used by firefox mobile seems to be the following one: http://hg.mozilla.org/mozilla-central/file/d2ce76654a6a/mobile/android/themes/core/content.css
This one could help: http://tagliala.github.io/form-elements/ (version without bootstrap: http://tagliala.github.io/form-elements/default.html)
edit: another version with normalize: http://tagliala.github.io/form-elements/normalize.html
tagliala commentedon Aug 6, 2013
Any news about this one?
I'm using:
that also breaks the
selectgradient but it's fine for me.ssorallen commentedon Aug 6, 2013
@tagliala I would scope the change to only
background-imagesince that is the only style that is out of the ordinary here:tagliala commentedon Aug 14, 2013
@ssorallen I used
backgroundbecause mozilla is usingbackgroundto customize: http://hg.mozilla.org/mozilla-central/file/d2ce76654a6a/mobile/android/themes/core/content.css#l120alongside the gradient, there also is a white background color (overridden by bootstrap). I don't know the best practices to normalize this stuff. :)
ssorallen commentedon Aug 14, 2013
@tagliala Mozilla does use the shorthand
background, but the only part that is abnormal isbackground-image. Internet Explorer, Chrome, and Firefox also stylebuttonelements withbackground-color, and so leaving that in tact for mobile Firefox seems fine. Normalize.css isn't trying to be a full CSS reset.tagliala commentedon Aug 14, 2013
@ssorallen thanks for the clarification
cvrebert commentedon Aug 28, 2013
Setting
input { background-image: none; }breaks regular desktop Firefox, see twbs/bootstrap#10252necolas commentedon Aug 28, 2013
Is there a screenshot for the problem? On OS X it just looks like it exposes the default border style.
zlatanvasovic commentedon Aug 28, 2013
@necolas It can be easily fixed. Just target mobile devices with that (with
@media), not desktop ones. Look at my comment.necolas commentedon Aug 28, 2013
Not interest in doing that. I think it's the wrong solution.
The Firefox team seem uninterested in changing their default styles to avoid these problems. But, from a developer perspective, I think this stuff should be fixed in classes for button-like components, input components, etc., rather than in the base styles. So basically, I don't think the Bootstrap fix was the right way to do it. It should have been done in the
.btnand form classes.cvrebert commentedon Sep 22, 2014
Looks like Mozilla came to their senses and are shipping a fix for this in Android Firefox 35.
Remove background-image: none; on .form-control