New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 612794 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 527709
Owner:
NOT IN USE
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug-Regression



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 description

UserAgent: 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:
 
Components: Blink>CSS
Owner: thakis@chromium.org
Status: Assigned (was: Unconfirmed)
I observe the described behavior with the linked jsfiddle, but my understanding of css is not good enough to say whether it's expected or not.

Over to thakis@ as css owner for investigation or routing.

Comment 2 by thakis@chromium.org, May 18 2016

Owner: ----
Status: Untriaged (was: Assigned)
Back to Blink>CSS triage, no idea what to do with this.
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 :)
Digging a bit another thing is if you remove ..insights-item__image position absolute it works.
awesome! you just earned a beer! 
Labels: Needs-TestConfirmation
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.
Screen Shot 2016-05-20 at 9.39.57 AM.png
15.9 KB View Download
Cc: nyerramilli@chromium.org
Labels: -Type-Compat -Needs-TestConfirmation M-52 OS-Linux OS-Windows Type-Bug-Regression
Owner: msten...@opera.com
Status: Assigned (was: Untriaged)
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

Comment 8 by msten...@opera.com, May 20 2016

Mergedinto: 527709
Status: Duplicate (was: Assigned)
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