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

Issue 758717 link

Starred by 9 users

Issue metadata

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



Sign in to add a comment

[css-grid] display: grid does not work as expected when applied to buttons

Reported by t...@onesignal.com, Aug 24 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Steps to reproduce the problem:
1. open chrome_button_grid_just_bug.html
2. notice the child elements are not inline even though display grid is applied 

What is the expected behavior?
chrome_button_grid.html contains the bug and other examples where the child  elements are displayed inline (correctly)

What went wrong?
display grid does not appear to be applied correctly to buttons

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 60.0.3112.101  Channel: n/a
OS Version: OS X 10.12.6
Flash Version:
 
chrome_button_grid_just_bug.html
255 bytes View Download
chrome_button_grid.html
255 bytes View Download

Comment 1 by rsesek@chromium.org, Aug 25 2017

Components: Blink>Layout>Grid
The problem is that Chrome implements the Button element as a Flexible Box independently of the value its display property.

I'm not sure about the validity if this bug, but in any case, thanks for reporting it.  
Cc: cbiesin...@chromium.org svil...@igalia.com r...@igalia.com
I can confirm that Firefox renders the Button element as Grid in this case, so perhaps we have an interoperability issue.  
Cc: susanjuniab@chromium.org
Labels: Needs-Triage-M60 M-62 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
tim@ thanks for the issue.

Able to reproduce this issue on Windows-7, Ubuntu 14.04 and Mac OS 10.12.6 using chrome latest stable 60.0.3112.113 and canary 62.0.3198.0 with the below steps

1. Launched Chrome and  clicked on the given .html files.
2. Could observe that the elements are not inline.
Please find the attached screen shots of the behaviors in Chrome and Firefox.

This is a Non-regression issue which is observed since 45.0.2454.103 chrome version.

Thanks
Display_chrome.png
26.3 KB View Download
Display_Firefox.png
25.8 KB View Download
Status: Available (was: Untriaged)

Comment 6 by r...@igalia.com, Sep 4 2017

Summary: [css-grid] display: grid does not work as expected when applied to buttons (was: display: grid does not work as expected when applied to buttons)
Not 100% sure but this might be related to bug #375693,
which was fixed in WebKit by https://trac.webkit.org/changeset/213455/webkit

Comment 7 by r...@igalia.com, Jun 26 2018

Cc: mmanchala@chromium.org
 Issue 779864  has been merged into this issue.
I wrote a wpt for this as part of https://github.com/web-platform-tests/wpt/pull/14824

Sign in to add a comment