Skip to content
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

Chrome+Safari bug: background-image in non-1st column of multi-column layout isn't displayed #19600

Closed
MickeyElliott opened this issue Mar 23, 2016 · 13 comments

Comments

@MickeyElliott
Copy link

Seems like cards with a background-image set via css are not rendering the background-image in any column except the first column. -webkit-column-count: 3;

My data-attributes are rendering a <style> in ther header.

<div class="card-columns">
    <div class="card card-inverse">
        <div class="card-block bg-img" data-img-src="http://placehold.it/870x489" data-img-blur="5" data-img-opacity="1">
            <h5 class="card-title">Test</h5>
            <p class="card-text">xxxxxxxx xxxxxxxx </p>
        </div>
    </div>
</div>

https://jsfiddle.net/MickeyElliott/gamy6Lrs/

@cvrebert
Copy link
Collaborator

@MickeyElliott Please make a JS Bin or JS Fiddle that demonstrates the problem.

@MickeyElliott
Copy link
Author

Here you go!
https://jsfiddle.net/MickeyElliott/gamy6Lrs/

Works as expected in IE Edge and Firefox. Looks like it may be specific to Google Chrome.

@cvrebert cvrebert changed the title card-columns background-image bug Chrome+Safari bug: background-image in non-1st column of multi-column layout isn't displayed Mar 23, 2016
@cvrebert
Copy link
Collaborator

Confirmed in Safari 9.1 and Chrome Canary. Looks like a bug in WebKit/Blink's implementation of CSS multi-column layout.

@cvrebert cvrebert added this to the v4.0.0-alpha.3 milestone Mar 23, 2016
@cvrebert
Copy link
Collaborator

Reduced testcase for Chrome: https://jsfiddle.net/cvrebert/8dskgzah/

@cvrebert
Copy link
Collaborator

Hmm, I guess Chrome has multiple bugs, at least one of which is already fixed in Canary; my testcase doesn't repro in Canary 51. Guess I'll try again.

@MickeyElliott
Copy link
Author

I'm working on a solution. I've found a partial solution so far.

https://jsfiddle.net/MickeyElliott/tukyontb/45/

@cvrebert
Copy link
Collaborator

New reduced testcase for Safari & Chrome Canary: https://jsfiddle.net/cvrebert/fmsm1p9p/

@cvrebert
Copy link
Collaborator

@cvrebert
Copy link
Collaborator

Filed WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=155823

@cvrebert cvrebert removed this from the v4.0.0-alpha.3 milestone Mar 24, 2016
@cvrebert
Copy link
Collaborator

Closing since this isn't a bug in Bootstrap per se (since custom CSS is involved), and we've filed upstream bugs with the browser vendors.

@cvrebert
Copy link
Collaborator

The Safari bug has already been fixed in WebKit Nightly: https://bugs.webkit.org/show_bug.cgi?id=155823#c3

@MickeyElliott
Copy link
Author

Thank you. I hope to see a fix from the vendors soon!

@cvrebert
Copy link
Collaborator

MS Edge also seems to suffer from a filter bug that affects your example, though it's not related to multi-column:
https://connect.microsoft.com/IE/feedback/details/2518512/edge-border-radius-overflow-hidden-ignored-filter-blur-5px

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants