New issue
Advanced search Search tips

Issue 834745 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Incorrect width of items (grid, flex, ...) in certain cases

Reported by radek.s...@gmail.com, Apr 19 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

Steps to reproduce the problem:
0. see the examples below at at least ~900px viewport or...
1. Create parent element A which has a odd or even width (odd to see the problem, even to see correct behaviour).
2. Create a children B, which has a flex/grid/inline-block/... based layout with X items, where B width isn't divisible by X and is smaller, then A's width.
3. Center B using margin.
4. See the render difference between odd/even width of A:
  - 4.1. Correct behaviour https://codepen.io/zipper/pen/mLyMpp
  - 4.2. Incorrect behaviour https://codepen.io/zipper/pen/bMNreM

What is the expected behavior?
Children items should fill the entire space regardless of A width (since B width is still the same) and there should be no background bleed from parent.

What went wrong?
There is a background bleed from parent container B, when A's width is odd. When B centering using margin is removed, background bleed disappears. FireFox and MS Edge cope with this well, Safari has the same bug.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 66.0.3359.117  Channel: stable
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M66
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET M-68 FoundIn-68 Target-68 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on reported version 66.0.3359.117 & Canary 68.0.3400.0  using  Win-10, Mac 10.13.3 & Linux-14.04 

Steps:
----------
1. Seen the render difference:
  - 4.1. Correct behavior https://codepen.io/zipper/pen/mLyMpp
  - 4.2. Incorrect behavior https://codepen.io/zipper/pen/bMNreM
2. Observed the border line in red color. 

Tested this issue on M60 observing similar behavior, so considering this is a non-regression issue and marking it as untriaged.

Thanks!
834745..PNG
83.6 KB View Download

Comment 3 by e...@chromium.org, Apr 23 2018

Components: -Blink>Layout Blink>Layout>Grid
Status: Available (was: Untriaged)

Comment 4 by r...@igalia.com, Apr 24 2018

Components: -Blink>Layout>Grid Blink>Layout
I cannot reproduce it on Linux, but the issue seems generic and not grid related as it happens on Grid Layout but also Flexbox and also inline boxes.

Sign in to add a comment