Commit Graph
8 Commits
Author SHA1 Message Date
Boris Chiou ef16a685f5 Bug 1593796 - Apply the correct specified implicit size. r=mats
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
2019-11-12 22:28:09 +00:00
Luke Zielinski 07324495d8 Bug 1579194 [wpt PR 18877] - Lint rule for using Ahem as a web font., a=testonly
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
2019-09-14 08:51:32 +00:00
Javier Fernandez 72c880042f Bug 1575674 [wpt PR 18599] - [css-grid] Ignore previously computed auto margins when relayout, a=testonly
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
2019-09-03 14:23:38 +00: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
shenyu.tcv 7a84072970 Bug 1517762 [wpt PR 14718] - [css-grid] Fix auto repeat with multiple tracks and gutters, a=testonly
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
2019-02-07 21:49:49 +00:00
Mats Palmgren 53624f2c86 Bug 1458902 - [css-grid] Update a few WPT / reftests to new percentage row-gap layout. r=dholbert 2018-05-18 21:09:23 +02:00
James Graham 7fc66d1410 Bug 1429043 - Update web-platform-tests to revision 4de5305adf3d33badc23952672bcf28168fea37e, a=testonly
MozReview-Commit-ID: 8hFZiSUb5Qr
2018-01-09 14:45:43 +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