mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
Automatic update from web-platform-tests [css-grid] Fix grid placement with '<integer> && <custom-ident>' The logic for placing a grid item with both an integer and an identifier in a placement property was interacting wrong with auto repeat() tracks. This patch uses the same proper logic that was already implemented in OrderedNamedLinesCollectorInGridLayout::CollectLineNamesForIndex BUG=966090 TEST=external/wpt/css/css-grid/placement/grid-placement-using-named-grid-lines-004.html Change-Id: I042ce1fd77a79959240d272d96eac21f06e014ac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082917 Reviewed-by: Javier Fernandez <jfernandez@igalia.com> Commit-Queue: Oriol Brufau <obrufau@igalia.com> Cr-Commit-Position: refs/heads/master@{#747631} -- wpt-commits: fef449a2cfb2ae75cc8cf189ed932a30061a35a5 wpt-pr: 22060
24 lines
937 B
HTML
24 lines
937 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Grid Layout Test: Grid item placement with '<integer> && <custom-ident>' and auto repeat()</title>
|
|
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
|
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#line-placement">
|
|
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
|
|
<meta name="assert" content="Grid placement algorithm is able to select the right line when using the '<integer> && <custom-ident>' syntax and there is an auto repeat().">
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
width: 300px;
|
|
height: 300px;
|
|
grid-template-columns: [foo] repeat(auto-fill, 100px [foo]);
|
|
grid-template-rows: repeat(auto-fill, [foo] 100px);
|
|
}
|
|
.grid > div {
|
|
grid-area: 1 foo / 1 foo;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
<div class="grid">
|
|
<div></div>
|
|
</div>
|