Issue metadata
Sign in to add a comment
|
::after selector is applyed to the items in the first column of a `column-count` -container only
Reported by
alexandr...@kilokilo.ch,
May 18 2016
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36 Example URL: https://jsfiddle.net/mekanics/tu4ef9m1/ Steps to reproduce the problem: see an example here: https://jsfiddle.net/mekanics/tu4ef9m1/ and here is the code html: <div class="items"> <article class="item"> <div class="item__image"></div> </article> <article class="item"> <div class="item__image"></div> </article> <article class="item"> <div class="item__image"></div> </article> <article class="item"> <div class="item__image"></div> </article> <article class="item"> <div class="item__image"></div> </article> <article class="item"> <div class="item__image"></div> </article> </div> css: .items { -webkit-column-count: 4; -moz-column-count: 4; column-count: 4; -webkit-column-gap: 25px; -moz-column-gap: 25px; column-gap: 25px; font-size: 0; border: 1px solid black; } .item { display: inline-block; position: relative; height: 130px; width: 100%; background-color: #968782; margin-bottom: 25px; } .item__image { width: 100%; height: 100%; position: absolute; top: 0; left: 0; overflow: hidden; background-size: cover; background-position: center center; background-repeat: no-repeat; //background-image: url(...) display: inline-block; } .item__image::after { content: ''; position: absolute; width: 100%; height: 60%; background: 0 0; background: linear-gradient(to bottom, transparent 0, rgba(255, 0, 0, 0.7) 100%); bottom: 0; top: auto; left: 0; } What is the expected behavior? all .item_image should have an ::after with a red gradient What went wrong? only the items in the first column have the gradient Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? No Does this work in other browsers? Yes Chrome version: 50.0.2661.102 Channel: stable OS Version: OS X 10.11.4 Flash Version:
,
May 18 2016
Back to Blink>CSS triage, no idea what to do with this.
,
May 19 2016
not using the column rules (column-count, column-gap) and instead use the "old way" it fixes the problem. The column-count with linear gradients works on safari / firefox but not on chrome, so i guess someone should have a look on that :)
,
May 19 2016
Digging a bit another thing is if you remove ..insights-item__image position absolute it works.
,
May 19 2016
awesome! you just earned a beer!
,
May 19 2016
I cannot reproduce using the provided test case (https://jsfiddle.net/mekanics/tu4ef9m1/) on 51.0.2704.19 (Official Build) dev (64-bit) , or 52.0.2741.0 (Official Build) canary (64-bit) on MacOS. I see all the boxes having a red gradient (see attached screenshot). If this only repros in Chrome 50, then it looks to be fixed now.
,
May 20 2016
Thanks for the report. It was fixed in M51 builds, 51.0.2686.0 - b (only first column box having red gradient) 51.0.2687.0 - g (all the boxes having red gradient) Reverse Bisect Info: CHANGELOG URL: https://chromium.googlesource.com/chromium/src/+log/0917363388c80cb57ee5ceba36dcd047b4bf1d19..9231ba274a1c6525bf06cfc1a214fae2967663b7 suspecting https://chromium.googlesource.com/chromium/src/+/8796ca1186b3ff3e3da105b3ee41f1698be01821 mstensho@ Could you please check the above issue & help us in finding an owner it its not yours. Able to repro on Win7, Mac OS X 10.11.4, Ubuntu 14.04 using Chrome Stable 50.0.2661.102 Not able to repro on Beta 51.0.2704.54, Dev 52.0.2739.0 & Canary 52.0.2742.0
,
May 20 2016
Yup, that's the one that fixes it. Not advisable to merge to older branches, because it depends on some cleanup patches. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by ellyjo...@chromium.org
, May 18 2016Owner: thakis@chromium.org
Status: Assigned (was: Unconfirmed)