blob: fed22930de268ab84fcffa23e9a4cff8a8e55139 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`This test verifies the names and positions of named grid lines are generated correctly.\n`);
await TestRunner.loadModule('elements_test_runner');
await TestRunner.showPanel('elements');
await TestRunner.loadHTML(`
<style>
body {
width: 1000px;
height: 1000px;
}
#grid-with-line-names {
position: absolute;
top: 0;
left: 0;
display: grid;
gap: 10px;
grid-template-columns: [fullpage-start] 100px [content-start header] 500px [content-end] 20px [fullpage-end];
grid-template-rows: [header] 200px [main article images] repeat(3, [section] 200px) [end];
}
</style>
<div id="grid-with-line-names"></div>
<p id="description">This test verifies the names and positions of named grid lines are generated correctly.</p>
`);
ElementsTestRunner.dumpInspectorHighlightJSON('grid-with-line-names', () => TestRunner.completeTest());
})();