Per the spec, if multiple track sizes are given, the pattern is repeated as
necessary to find the size of the implicit tracks:
1. The first implicit grid track after the explicit grid receives the first
specified size, and so on forwards.
2. The last implicit grid track before the explicit grid receives the last
specified size, and so on backwards.
We use a positive index of the auto track sizes for (1) and a negative index
for (2), so we can apply the correct specified implicit size.
Differential Revision: https://phabricator.services.mozilla.com/D52265
Automatic update from web-platform-tests
Lint rule for using Ahem as a web font. (#18877)
Add a lint rule to check for tests that use the Ahem font but do not
include the /fonts/ahem.css stylesheet (which loads this font as a web
font). This prevents tests from assuming that Ahem is installed as a
system font. Also includes some unit tests.
There are a few tests that are incorrectly flagged as violating this
rule, these were added to lint.whitelist.
A bunch of other tests were fixed to load Ahem as a web font.
--
wpt-commits: c66230eebbea3bce8c086572869eb0835fb183b5
wpt-pr: 18877
Automatic update from web-platform-tests
[css-grid] Ignore previously computed auto margins when relayout
This new NG layout engine implements a different approach for margin
calculation, giving the containing block the responsibility of its
children's margin computation.
However, in legacy layout this is children's responsibility; this is
the reason why the issue this patch tries to fix is only only
reproducible using layout-ng.
The grid code assumed this legacy behavior when computing the 'auto'
margins of the grid items. So, in order to fix the bug, this patch
just ignores any previously computed 'auto' margin when performing a
a relayout of a grid cntainer.
Bug: 994300
Change-Id: I44658876f7c2f2067202e45c6a552593bddfe6c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1763749
Commit-Queue: Javier Fernandez <[email protected]>
Reviewed-by: Ian Kilpatrick <[email protected]>
Reviewed-by: Christian Biesinger <[email protected]>
Cr-Commit-Position: refs/heads/master@{#692108}
--
wpt-commits: fb9b5a1d816ab6e90f20534d6f3282f82075e460
wpt-pr: 18599
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
Automatic update from web-platform-tests
[css-grid] Fix auto repeat with multiple tracks and gutters
The code that computes the number of auto repeat tracks wrongly assumes
that the second argument of the repeat() notation is a single track
function. That was true in the beginning, however specs were later on
modified to allow a <track-list>. We support a <track-list> as a second
argument since long ago but the code that computes the number of
auto-repeat tracks was never updated.
This patch modifies two places that relates to the gaps between the
auto-repeat tracks, which ensures the proper total length. 4 test
expected values in the auto-repeat-huge-grid.html are also modified.
BUG=813511
Change-Id: Iaf00e7d595a800f07cbe630868f30b82ad7fbd4d
Reviewed-on: https://chromium-review.googlesource.com/c/1393136
Commit-Queue: Manuel Rego <[email protected]>
Reviewed-by: Manuel Rego <[email protected]>
Cr-Commit-Position: refs/heads/master@{#620278}
--
wpt-commits: 367ae74c484fe272d6c3b469b890fceb0baad74b
wpt-pr: 14718