Bootstrap carousel has white spaces between photos
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect, P3)
Tracking
()
People
(Reporter: theharvestr, Unassigned)
Details
Comment 2•8 years ago
|
||
Comment 5•8 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 6•3 years ago
|
||
For anyone still finding that this is still an issue with bootstrap carousel and Firefox (and I'm using the latest Firefox as of Sept 2022 and BS 4 and 5)... I have tried just about every method suggested on the forums.... with limited / intermittent success. Latterly, the white flash between carousel items stopped after the first pass-through of the carousel - with backface-visiblity set to visible or hidden - made no difference. But I have now added a z-index value on each carousel-item line (stepped +1 each item), and that has worked.... no white flashed between slides.
Comment 7•3 years ago
|
||
Can you set decoding="sync" on the img elements in the carousel?
Comment 8•3 years ago
|
||
All img attributes should work.... sync and async included. But browsers effectively sync carousel images and the image text by default so I'm not sure you're really gaining anything with "sync"... unless other code is generally causing a problem (maybe lazy loading and "async" being the outcome) and then "sync" would hopefully resolve those issues. Checkout the Mozilla site for "image element decoding".
Comment 9•3 years ago
|
||
(In reply to David Matthews from comment #8)
All img attributes should work.... sync and async included. But browsers effectively sync carousel images and the image text by default so I'm not sure you're really gaining anything with "sync"... unless other code is generally causing a problem (maybe lazy loading and "async" being the outcome) and then "sync" would hopefully resolve those issues. Checkout the Mozilla site for "image element decoding".
What? Do you want to give this comment another try I'm having difficulty undersanding what you are saying. I'm quite familiar with how Firefox does image decoding.
Comment 10•3 years ago
|
||
Is there an example page where this problem happens?
Comment 11•3 years ago
|
||
Your original question can be read two ways. I understood it as you having an issue with an img and text being displayed simultaneously, and you then wondering if you can use "sync" in a carousel item line. Obviously I now see that you were asking if "sync" could resolve the white flash issue. It's something I personally haven't checked, and I haven't seen anyone else refer to it as a solution. The forums have lots of examples of people having Firefox white flash issues. I'm simply saying how I recently resolved the problems for my sites (using z-index on bootstrap carousels). I'm simply offering something for people having these issues to additionally try.
Comment 12•3 years ago
|
||
I think I know why I still see white flashes with bootstrap carousels - it's because I often have transparent sections in the images I use. It's likely why using z-index works. And so "sync" might also do the job.
Comment 13•3 years ago
|
||
If someone could provide an example of where they see this problem (I've tried to reproduce the problem and I've not been able to so far based on the descriptions here) so that Firefox developers like myself could investigate and potentially fix the bug if it exists.
Updated•3 years ago
|
Description
•