Commit Graph
14 Commits
Author SHA1 Message Date
Oriol Brufau d5ad6bb348 Bug 1584578 [wpt PR 19373] - [css-grid] Accommodate spanning items crossing flexible tracks, a=testonly
Automatic update from web-platform-tests
[css-grid] Accommodate spanning items crossing flexible tracks

The specification added a step to increase sizes to accommodate spanning
items crossing flexible tracks instead of ignoring their contents
completely. This is done after handling all grid items that don't cross
such tracks, and this time items are considered together, not grouped by
their span size.

Spec: https://drafts.csswg.org/css-grid/#algo-spanning-flex-items

BUG=935102

TEST=third_party/blink/web_tests/external/wpt/css/css-grid/layout-algorithm/grid-flex-track-intrinsic-sizes-001.html
TEST=third_party/blink/web_tests/external/wpt/css/css-grid/layout-algorithm/grid-flex-track-intrinsic-sizes-002.html
TEST=third_party/blink/web_tests/fast/css-grid-layout/flex-and-content-sized-resolution-columns.html
TEST=third_party/blink/web_tests/fast/css-grid-layout/grid-gutters-and-flex-content.html

Change-Id: Ic91a2eb471fae23cde1570c461f491cd5335d771
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1492337
Reviewed-by: Javier Fernandez <[email protected]>
Reviewed-by: Sergio Villar <[email protected]>
Commit-Queue: Oriol Brufau <[email protected]>
Cr-Commit-Position: refs/heads/master@{#705228}

--

wpt-commits: 8473169330be3b6594cc47f035d3a2c204fd4666
wpt-pr: 19373
2019-10-24 18:03:30 +01:00
Luke Zielinski 84fd4a5e5e Bug 1556841 [wpt PR 17173] - Load Ahem as a webfont everywhere (part 2), a=testonly
Automatic update from web-platform-tests
 Load Ahem as a webfont everywhere (part 2) (#17173)

This change updates a large number of reftests to link to the
`/fonts/ahem.css` stylesheet. Each file contains a single additional
line before the first `<style>` element:
```
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
```
--

wp5At-commits: 9c780585758acf5e9ac6d17ad9bd03c83404c7e6
wpt-pr: 17173
2019-06-19 11:06:58 -07:00
Oriol Brufau dea6f9b2ff Bug 1534391 [wpt PR 15511] - [css-grid] Always consider baseline shim for the minimum contribution, a=testonly
Automatic update from web-platform-tests
[css-grid] Always consider baseline shim for the minimum contribution

Before this patch, the shim used for baseline alignment is not taken
into consideration when calculating the minimum contribution of a grid
item if its preferred size is auto, its minimum size is auto, and the
max track sizing function is a fixed small value. In this case, the
auto minimum size can produce a smaller track than if it was 0.

The specification needs to clarify how baseline shims interact with
minimum contributions (https://github.com/w3c/csswg-drafts/issues/3660),
but the above doesn't make sense.

BUG=934535

TEST=external/wpt/css/css-grid/layout-algorithm/grid-minimum-contribution-baseline-shim.html

Change-Id: Iafd194ab7e5656b5018e0e36b915ba183bdedd19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1481512
Commit-Queue: Oriol Brufau <[email protected]>
Reviewed-by: Manuel Rego <[email protected]>
Reviewed-by: Javier Fernandez <[email protected]>
Cr-Commit-Position: refs/heads/master@{#637299}

--

wpt-commits: c00bf09575cac952e206c2a7025ee7c84971180f
wpt-pr: 15511
2019-04-01 14:42:38 +01:00
Oriol Brufau 3fd3896084 Bug 1526553 [wpt PR 15212] - [css-grid] Handle indefinite percentages in fit-content(), a=testonly
Automatic update from web-platform-tests
[css-grid] Handle indefinite percentages in fit-content()

If the size of the grid container depends on the size of its tracks,
a percentage in fit-content() is indefinite. Without this patch, some
places treated this case as fit-content(0), which prevented the grid
container from growing enough to contain the max-content contribution
of its grid items.

This patch treats such fit-content() as minmax(auto, max-content),
but once the size of the grid container is known and it is laid out
"for real", then the percentage is definite and it's used.

The spec is not clear about what exactly should happen, but
minmax(auto, max-content) is consistent with percentage track sizes
and with the description of fit-content().

The change aligns Blink with Firefox and Edge.

Spec: https://drafts.csswg.org/css-grid/#track-sizes

BUG=927865

TEST=external/wpt/css/css-grid/layout-algorithm/grid-fit-content-percentage.html

Change-Id: If39c39a9a97a14f6cdee4545b560eb897053c342
Reviewed-on: https://chromium-review.googlesource.com/c/1450123
Reviewed-by: Javier Fernandez <[email protected]>
Reviewed-by: Manuel Rego <[email protected]>
Commit-Queue: Oriol Brufau <[email protected]>
Cr-Commit-Position: refs/heads/master@{#628736}

--

wpt-commits: 51a8f532d934d03b34d832339e0d1dff7a4d4545
wpt-pr: 15212
2019-02-14 11:38:53 +00:00
Manuel Rego Casasnovas 79e644ca48 Bug 1490636 [wpt PR 12964] - [css-grid] Fix nits related to PR #8579, a=testonly
Automatic update from web-platform-testsMerge pull request #12964 from mrego/css-grid-minor-nits-percent-tracks-shrinkwrap-tests

[css-grid] Fix nits related to PR #8579
--

wpt-commits: 85fca50b851496978cf98680b9f53b7de000e517
wpt-pr: 12964
2018-09-13 03:00:13 +00:00
Manuel Rego Casasnovas fb1e066a8b Bug 1490634 [wpt PR 8579] - [css-grid-1] Add tests for percentage tracks inside shrinkwrapped width/height., a=testonly
Automatic update from web-platform-testsMerge pull request #8579 from fantasai/indefinite-percentage-tracks

[css-grid-1] Add tests for percentage tracks inside shrinkwrapped width/height.
--

wpt-commits: 584149f5256d7f8243f715dad07f8529a9ea30ee
wpt-pr: 8579
2018-09-13 02:59:55 +00:00
Dorel Luca 5768e5a79c Backed out 57 changesets (bug 1490749, bug 1487912, bug 1487288, bug 1489982, bug 1490079, bug 1489593, bug 1488223, bug 1490750, bug 1490004, bug 1489390, bug 1487175, bug 1491351, bug 1490596, bug 1490435, bug 1489193, bug 1490579, bug 1489352, bug 1489576, bug 1490034, bug 1488656, bug 1488490, bug 1488977, bug 1489893, bug 1489890, bug 1490886, bug 1489973, bug 1489671, bug 1490103, bug 1490190, bug 1490761, bug 1490634, bug 1490468, bug 1490636, bug 1490112, bug 1489884, bug 1490236, bug 1490556, bug 1490460, bug 1490220) for WPT mass failure at /fullscreen/idlharness.window.html. a=backout. CLOSED TREE
Backed out changeset 3f3f67d1c0bf (bug 1491351)
Backed out changeset 60a85d19fa48 (bug 1490596)
Backed out changeset b45edd5d9087 (bug 1490596)
Backed out changeset 0ea9c57bc9e4 (bug 1489352)
Backed out changeset f1cd674c70fd (bug 1489352)
Backed out changeset be6801cdeb53 (bug 1490886)
Backed out changeset b3bdd59df9b0 (bug 1487288)
Backed out changeset 004aff5c5572 (bug 1487288)
Backed out changeset e12a50d6fb55 (bug 1490236)
Backed out changeset 9344c735fa65 (bug 1490750)
Backed out changeset 85c26a94f8a0 (bug 1490761)
Backed out changeset 9e6bccf66e12 (bug 1490749)
Backed out changeset 84c2e053f907 (bug 1490004)
Backed out changeset f3c06f63b816 (bug 1490636)
Backed out changeset 338cb2e72624 (bug 1490634)
Backed out changeset a6987c8648d0 (bug 1490556)
Backed out changeset cd07f723e92e (bug 1490579)
Backed out changeset 4ccd436a9778 (bug 1488656)
Backed out changeset 5e307e2cc9a8 (bug 1488656)
Backed out changeset 66dbcaa5f3b2 (bug 1489973)
Backed out changeset 12f6dddd7ad1 (bug 1489973)
Backed out changeset b6aed416b54e (bug 1488490)
Backed out changeset e227ddece3f6 (bug 1488490)
Backed out changeset ba8a0b3f151f (bug 1490220)
Backed out changeset 28cbe0cde7f0 (bug 1490220)
Backed out changeset 61821ee472c2 (bug 1490886)
Backed out changeset 44340a02b547 (bug 1490886)
Backed out changeset 9b7821c48ec4 (bug 1487175)
Backed out changeset 980644f8f54a (bug 1487175)
Backed out changeset 483392469b2c (bug 1490460)
Backed out changeset 7a336a0dda15 (bug 1490460)
Backed out changeset 7714b8da590d (bug 1490103)
Backed out changeset 3b4064627703 (bug 1490103)
Backed out changeset 779b0174c503 (bug 1490468)
Backed out changeset aa88020a2a0b (bug 1490468)
Backed out changeset c139ee918b5d (bug 1489576)
Backed out changeset 95ed1a70472e (bug 1489576)
Backed out changeset 2edff6bf6d4f (bug 1490079)
Backed out changeset b7da8965b780 (bug 1490435)
Backed out changeset 05d2285dabf0 (bug 1490034)
Backed out changeset fdb49d0a9965 (bug 1487912)
Backed out changeset 64beaa647a59 (bug 1487912)
Backed out changeset 6cd3000ba933 (bug 1490112)
Backed out changeset 1e41acd18239 (bug 1489193)
Backed out changeset 48c56e26c1ff (bug 1489893)
Backed out changeset 0d3f681baaf7 (bug 1489890)
Backed out changeset 88aff39ebbb8 (bug 1488977)
Backed out changeset 703c030316ba (bug 1488977)
Backed out changeset 1ce6504ba447 (bug 1489390)
Backed out changeset 4a3d59a25d64 (bug 1490190)
Backed out changeset 24ad0a7f3357 (bug 1490190)
Backed out changeset d91e5930746e (bug 1489982)
Backed out changeset 075ae9254379 (bug 1489671)
Backed out changeset d188605003c8 (bug 1488223)
Backed out changeset e042f3bc5198 (bug 1489593)
Backed out changeset 7d658a41c5af (bug 1489593)
Backed out changeset af72430d508a (bug 1489884)
2018-09-15 16:00:55 +03:00
Manuel Rego Casasnovas 05a4b2a000 Bug 1490636 [wpt PR 12964] - [css-grid] Fix nits related to PR #8579, a=testonly
Automatic update from web-platform-testsMerge pull request #12964 from mrego/css-grid-minor-nits-percent-tracks-shrinkwrap-tests

[css-grid] Fix nits related to PR #8579
--

wpt-commits: 85fca50b851496978cf98680b9f53b7de000e517
wpt-pr: 12964
2018-09-14 14:22:40 +00:00
Manuel Rego Casasnovas 5266f0acd4 Bug 1490634 [wpt PR 8579] - [css-grid-1] Add tests for percentage tracks inside shrinkwrapped width/height., a=testonly
Automatic update from web-platform-testsMerge pull request #8579 from fantasai/indefinite-percentage-tracks

[css-grid-1] Add tests for percentage tracks inside shrinkwrapped width/height.
--

wpt-commits: 584149f5256d7f8243f715dad07f8529a9ea30ee
wpt-pr: 8579
2018-09-14 14:22:39 +00:00
Javier Fernandez 7288c89895 Bug 1483770 [wpt PR 12512] - [css-grid] Distribution offset doesn't account for non-spanning items, a=testonly
Automatic update from web-platform-tests[css-grid] Distribution offset doesn't account for non-spanning items

We recenttly changed the track sizing algorithm so that it considers the
offsets added by the Content Alignment properties. The change in r566412
introduce intermediate steps in the track sizing algorithm so that
inline-axis Content Distribution accounts for the row tracks sizes
computed in the next step.

However, we were adding the Content Distribution offsets for any column
track, but we should do it only for the tracks with spanning items. This
error led to the mentioned bugs and this change fixes them.

Bug: 871230, 871242
Change-Id: I8ac789ccacc2e5a51bfafd7820ed08e96a31e58b
Reviewed-on: https://chromium-review.googlesource.com/1176803
Reviewed-by: Sergio Villar <[email protected]>
Commit-Queue: Javier Fernandez <[email protected]>
Cr-Commit-Position: refs/heads/master@{#583802}

--

wpt-commits: 676265b89417b09c27d94a2a8538a88a34821e88
wpt-pr: 12512
2018-08-21 21:05:40 +00:00
Javier Fernandez 04dd479804 Bug 1463665 [wpt PR 11115] - [css-grid] Content Alignment as part of the track sizing algorithm, a=testonly
Automatic update from web-platform-tests[css-grid] Content Alignment as part of the track sizing algorithm

The CSS WG resolved [1] that Content Alignment should account to the
track sizing algorithm.

The sizing algorithm has been modified so that two new steps (1.5
and 2.5) were added to compute the Content Alignment offsets after
resolving the columns' and rows' sizes respectively.

This change decouples the Content Alignment logic from the tracks
position, so that we can use it as part of the track sizing algorithm.

I also had to store the whole ContentAlignmentData structure in two
class attributes. We need both, position and distribution offsets, to
be used in different parts of the layout logic.

Finally, since the ContentAlignmentData is now used as persistent
memory, we had to remove the STACK_ALLOCATED flag; hence, I think
using DISALLOW_COPY_AND_ASSIGN and let the functions update the
structure's internal field is a more efficient approach to commit
this change.

[1] https://github.com/w3c/csswg-drafts/issues/2557

Added WPT
  * grid-content-distribution-must-account-for-track-sizing-001.html
  * grid-content-distribution-must-account-for-track-sizing-002.html

Bug: 844744
Change-Id: I90019a96b148d3713467e35fde9482d0d39b1ced
Reviewed-on: https://chromium-review.googlesource.com/1067918
Commit-Queue: Javier Fernandez <[email protected]>
Reviewed-by: Manuel Rego Casasnovas <[email protected]>
Cr-Commit-Position: refs/heads/master@{#566412}

--

wpt-commits: 73ed379a1437407749c730239019bd61528b060b
wpt-pr: 11115
2018-07-11 07:49:16 +01:00
Javier Fernandez 04e474ef1d Bug 1458753 [wpt PR 10810] - [css-grid] Avoid layouts during intrinsic size computation, a=testonly
Automatic update from web-platform-tests[css-grid] Avoid layouts during intrinsic size computation

The definition of intrinsic size excludes explicitly performing layouts
to compute the final value. However, it may be necessary to laid out
some children to retrieve accurate information about the geometry of
the box, specially when some of these children are orthogonal to the
box its intrinsic size is being computed.

However, the writing-mode specification suggest [1] that auto-sized
orthogonal boxes may require to run their sizing phase before any
content contribution could be established.

The Blink engine discourages performing layouts during intrinsic size
computation. In order to address the orthogonal flow issues and get
a more accurate sizing, both during intrinsic size and layout phases,
the engine performs a pre-layout of all the orthogonal boxes in the
layout tree (LocalFrameView::LayoutOrthogonalWritingModeRoot).

However, this pre-layout operations doesn't make sense for grid items
because the grid areas, the grid items' actual containing blocks, are
not computed yet. Hence, we decided to exclude grid items from this
pre-layout operation (PrepareOrthogonalWritingModeRootForLayout).

With this CL, we follow the same plan Blink has for orthogonal flow
boxes, but doing it once the grid items are placed in their
corresponding grid areas. Since the grid tracks sizing algorithm has
not been run at this stage, the size of the grid areas is estimated
based on the track's max-sizing function, in a similar way [2] the
algorithm does to deal with orthogonal items during the layout phase.

This change is covered by current tests, however, added an additional
test to verify we use the max-track sizing as a way to estimate the
orthogonal item's block-axis size.

[1] https://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows
[2] https://drafts.csswg.org/css-grid/#algo-overview

Change-Id: I836b92120825916324f94befec6d35263ec84f2b
Reviewed-on: https://chromium-review.googlesource.com/1027882
Commit-Queue: Javier Fernandez <[email protected]>
Reviewed-by: Manuel Rego Casasnovas <[email protected]>
Cr-Commit-Position: refs/heads/master@{#556469}

--

wpt-commits: a878a9a9a5d1f4b0160620ba5479ba2c7d2e2373
wpt-pr: 10810
2018-05-14 09:55:26 +00:00
James Graham c261109887 Bug 1433144 - Update web-platform-tests to revision 2e19bfdaee6edb2c1069c07e14037284167284a3, a=testonly
MozReview-Commit-ID: 13sFeYHTYGC
2018-01-30 17:46:09 +00:00
James Graham ce3ea2f585 Bug 1419296 - Update web-platform-tests to fa27b785c62e67cc3a12201612db188c4fdd49ad, a=testonly
MozReview-Commit-ID: 4P631tX3vv4
2017-11-21 07:39:00 +00:00