Bug 209656 - <button> should support display:inline-grid/grid/inline-flex/flex correctly
Summary: <button> should support display:inline-grid/grid/inline-flex/flex correctly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Villar Senin
URL:
Keywords: InRadar, WebExposed
: 127247 212206 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-03-27 09:12 PDT by Carlos Alberto Lopez Perez
Modified: 2024-01-24 11:54 PST (History)
21 users (show)

See Also:


Attachments
Patch (10.02 KB, patch)
2020-08-18 03:15 PDT, Sergio Villar Senin
jfernandez: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2020-03-27 09:12:40 PDT
It seems WebKit its not following the spec https://html.spec.whatwg.org/multipage/rendering.html#button-layout regarding <butoon> elements when computing the value of 'display' property for the cases of 'inline-grid', 'grid', 'inline-flex', or 'flex',

This is covered (at least) by WPT tests css/css-grid/grid-model/grid-button-001.html and html/rendering/widgets/button-layout/grid.html

Run this tests live:
https://wpt.live/css/css-grid/grid-model/grid-button-001.html
https://wpt.live/html/rendering/widgets/button-layout/grid.html

There is also a manual test on

A similar issue (if not the same) has been reported and fixed in Chromium recently. Check: https://bugs.chromium.org/p/chromium/issues/detail?id=700029
Check also the test case from that Chromium bug: http://jsbin.com/lenupa/1/edit?html,css,output (the text inside the button element should NOT be vertically centered)
Comment 1 Carlos Alberto Lopez Perez 2020-03-27 09:16:25 PDT
Also covered by WPT test html/rendering/widgets/button-layout/flex.html

https://wpt.live/html/rendering/widgets/button-layout/flex.html
Comment 2 Manuel Rego Casasnovas 2020-05-21 06:31:00 PDT
I think this is a duplicate of bug #127247.
Comment 3 Carlos Alberto Lopez Perez 2020-05-21 06:44:36 PDT
*** Bug 212206 has been marked as a duplicate of this bug. ***
Comment 4 Carlos Alberto Lopez Perez 2020-05-21 06:48:14 PDT
(In reply to Manuel Rego Casasnovas from comment #2)
> I think this is a duplicate of bug #127247.

Likely. But I will mark the other as duplicate of this, since this bug report (even when newer) has more info about the problem.
Comment 5 Carlos Alberto Lopez Perez 2020-05-21 06:49:51 PDT
*** Bug 127247 has been marked as a duplicate of this bug. ***
Comment 6 Sergio Villar Senin 2020-08-18 03:15:29 PDT
Created attachment 406776 [details]
Patch
Comment 7 Sergio Villar Senin 2020-08-19 06:33:47 PDT
Committed r265851: <https://trac.webkit.org/changeset/265851>
Comment 8 Radar WebKit Bug Importer 2020-08-19 06:34:16 PDT
<rdar://problem/67400123>