I'm not sure whether this bug applies to Firefox only or also to WebKit-based browsers, but it's really, really annoying.
I've got a template/framework for my CMS interface, using box-shadow on a few elements with a width of 100%. Since this causes shadow on the right side of the element, a scroll bar appears. To hide the ugly scrollbar, I set "overflow: hidden" on the body element and on the wrapper div.
This causes some strange behaviour. Though there aren't any scrollbars, the page still scrolls to the right when I scroll using my touchpad (horizontal scroll). I've tried a hell of a lot and googled my ass off, but I can't seem to find a solution for this..
Anyone know a problem solver? or is this just an example of conflicting implementation of css3 box-shadow?
If you're looking for the best browser for Android, the two are great options. Chrome is a faster and more full-featured browser for everyday use, but many will prefer Firefox for its privacy and security.
With your security settings fully optimised, there is not a huge difference between Firefox and Chrome. That said, many cyber security experts consider Chrome to be the market leader for a range of anti-malware threats that you might come into contact with while browsing.
Who owns Firefox? Firefox is made by Mozilla Corporation, a wholly owned subsidiary of the not-for-profit Mozilla Foundation, and is guided by the principles of the Mozilla Manifesto.
Firefox is still very much alive and well as Mozilla has no plans to stop development of their web browsers for desktop (Windows, macOS, Linux) and mobile versions for iOS and Android.
I just had this issue with a design I was working on. Basically, Firefox creates a scrollable area for any shadow that extends past the right edge of the page. For whatever reason, Firefox doesn't create scrollable area if the shadow extends to the left. So my simple solution is to move the shadow completely to the left.
Problematic Code:
-moz-box-shadow: 5px 5px 5px #000;
Simple solution:
-moz-box-shadow: -5px 5px 5px #000;
I tried setting the x-offset to 0px, but since the blur is 5, there was still a scrollable area about 2-3px wide.
Since I'm dealing with the same annoying issue, I'll go ahead and chime in here to say that this is definitely a shitty feature (if indeed it should be referred to as a feature). To have a box shadow cause a scroll bar is useless, though I'd be happy to eat my words if someone could give me a really good reason that it should be like that.
I think the answer here is just rendering the page a little different and letting firefox users miss out on the box shadow. Easy enough if you just don't declare -moz-box-shadow
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With