Closed Bug 1445615 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 10027 - [css-grid] Add support for calc() in gutter properties


(Core :: CSS Parsing and Computation, enhancement, P4)




Tracking Status
firefox61 --- fixed


(Reporter:, Unassigned)


(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 10027 into mozilla-central (this bug is closed when the sync is complete).

Details from upstream follow.

Manuel Rego Casasnovas wrote:
>  [css-grid] Add support for calc() in gutter properties
>  There was a crash in debug if you use calc()
>  mixing fixed and percentage values due to the wrong DCHECK
>  in GapLength constructor. The patch fixes this assert.
>  In addition LayoutGrid::GridGap() was also wrong and didn't consider
>  calc() either. The fix is again easy just using the proper check.
>  Regarding testing, the parsing tests have been updated to include
>  this combination of fixed and percentage values in calc().
>  At the same time, the patch actually uses "grid-" prefixed properties
>  in the tests that were supposed to test those.
>  Last, two new tests are added to verify the proper behavior of calc()
>  with mixed values on a grid layout container.
>  BUG=816300
>  TEST=external/wpt/css/css-align/gaps/column-gap-parsing-001.html
>  TEST=external/wpt/css/css-align/gaps/gap-parsing-001.html
>  TEST=external/wpt/css/css-align/gaps/grid-column-gap-parsing-001.html
>  TEST=external/wpt/css/css-align/gaps/grid-gap-parsing-001.html
>  TEST=external/wpt/css/css-align/gaps/grid-row-gap-parsing-001.html
>  TEST=external/wpt/css/css-align/gaps/row-gap-parsing-001.html
>  TEST=external/wpt/css/css-grid/alignment/grid-gutters-011.html
>  TEST=external/wpt/css/css-grid/alignment/grid-gutters-012.html
>  Change-Id: I4c9fe6b2525a253c6bb00cbda727c2bf1ae6e90b
>  Reviewed-on:
>  WPT-Export-Revision: 045c9118cbc4f9b09eb8c136c80776192321749b
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by
[wpt PR 10027] - [css-grid] Add support for calc() in gutter properties, a=testonly
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.