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

Issue 849233 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug-Regression



Sign in to add a comment

[css-grid] Image not shown until new layout

Reported by m...@ramondeklein.nl, Jun 4 2018

Issue description

Steps to reproduce the problem:
1. Go to http://www.ramondeklein.nl/chrome67-issue.html
2. On Chrome <67 an image is shown in the center of the screen.
3. On Chrome 67 no image is shown, until the device is rotated

What is the expected behavior?
The image should appear right away. This behaviour was working fine with 66.0.3359.158 (tested on a Xiaomi Mi A1 and a Samsung Galaxy S8 both on Android 8.0).

What went wrong?
It seems there is something broking with the grid layout.

Did this work before? Yes 66.0.3359.158

Does this work in other browsers? Yes

Chrome version: 67.0.3396.68  Channel: stable
OS Version: 8.0
Flash Version: 

I have also noted some other glitches with the "grid" layout, but this one is the easiest to reproduce. Please contact me if you need more scenarios.
 
test.html
619 bytes View Download
It also doesn't work correctly with the desktop browser. It seems that the image is rendered with a 0x0 dimension. After resizing the window (or changing the orientation in the developer tools) the dimensions are shown correctly.
It seems to be a timing issue, because sometimes it works and sometimes it doesn't. It is easier to reproduce this issue by saving the HTML file to local disk and load it from there.

Comment 4 by e...@chromium.org, Jun 4 2018

Cc: svil...@igalia.com
Components: -Blink>Layout Blink>Layout>Grid
Labels: Needs-triage-Mobile
Cc: sandeepkumars@chromium.org
Labels: Triaged-Mobile Needs-Feedback
Tested the issue using #67.0.3396.68 and #66.0.3359.158 on Android Pixel; 8.1.0 as per the steps mentioned in original comment and could not reproduce the issue.

@ramondeklein.nl: Could you please help us with the details of your device and if possible attach a screenshot for further triaging of the issue.

Thanks!!
Please check the snippet I have posted on StackOverflow (https://stackoverflow.com/questions/50679245/chrome-67-layout-issue-when-using-grids). My Windows PC has now also upgraded to Chrome 67 and doesn't display the image. If you use Chrome 66 (or Firefox) then the image is shown.

It seemed like a mobile issue to me, but this was simply because my mobile devices already upgraded to v67 and the desktop didn't do that.
Project Member

Comment 8 by sheriffbot@chromium.org, Jun 5 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 9 by r...@igalia.com, Jun 5 2018

Cc: jfernan...@igalia.com r...@igalia.com
Status: Available (was: Unconfirmed)
I'm attaching a reduced test case where I can reproduce this consistently.
Doing a bisect it seems this started to fail after:
https://chromium-review.googlesource.com/980756

It's interesting to see that if you remove the "justify-content: center"
it works fine.
Note that to achieve the same effect in this particular example,
you can use "justify-items: center".

Apart from that we have a known bug related to max-height and percentages (issue #750631).

bug.html
588 bytes View Download

Comment 10 by r...@igalia.com, Jun 5 2018

Labels: -OS-Android
Summary: [css-grid] Image not shown until new layout (was: Image not shown until orientation changes since Chrome 67 (Android only))
BTW, the issue happens on the desktop too.

Sign in to add a comment