- a/Source/WebCore/ChangeLog +16 lines
Lines 1-5 a/Source/WebCore/ChangeLog_sec1
1
2017-05-25  Manuel Rego Casasnovas  <rego@igalia.com>
1
2017-05-25  Manuel Rego Casasnovas  <rego@igalia.com>
2
2
3
        [css-grid] Add support for orthogonal positioned grid items
4
        https://bugs.webkit.org/show_bug.cgi?id=172591
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        This patch adds support for positioned grid items with orthogonal flows.
9
        Basically it just needs to check if the item is orthogonal to use
10
        the column or row offset as logical left or top depending on the case.
11
12
        Tests: imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-***.html
13
14
        * rendering/RenderGrid.cpp:
15
        (WebCore::RenderGrid::layoutPositionedObject):
16
17
2017-05-25  Manuel Rego Casasnovas  <rego@igalia.com>
18
3
        [css-grid] Fix behavior of positioned items without specific dimensions
19
        [css-grid] Fix behavior of positioned items without specific dimensions
4
        https://bugs.webkit.org/show_bug.cgi?id=172117
20
        https://bugs.webkit.org/show_bug.cgi?id=172117
5
21
- a/Source/WebCore/rendering/RenderGrid.cpp -8 / +4 lines
Lines 940-951 void RenderGrid::prepareChildForPositionedLayout(RenderBox& child) a/Source/WebCore/rendering/RenderGrid.cpp_sec1
940
940
941
void RenderGrid::layoutPositionedObject(RenderBox& child, bool relayoutChildren, bool fixedPositionObjectsOnly)
941
void RenderGrid::layoutPositionedObject(RenderBox& child, bool relayoutChildren, bool fixedPositionObjectsOnly)
942
{
942
{
943
    if (isOrthogonalChild(child)) {
944
        // FIXME: Properly support orthogonal writing mode.
945
        RenderBlock::layoutPositionedObject(child, relayoutChildren, fixedPositionObjectsOnly);
946
        return;
947
    }
948
949
    LayoutUnit columnOffset;
943
    LayoutUnit columnOffset;
950
    LayoutUnit columnBreadth;
944
    LayoutUnit columnBreadth;
951
    offsetAndBreadthForPositionedChild(child, ForColumns, columnOffset, columnBreadth);
945
    offsetAndBreadthForPositionedChild(child, ForColumns, columnOffset, columnBreadth);
Lines 963-974 void RenderGrid::layoutPositionedObject(RenderBox& child, bool relayoutChildren, a/Source/WebCore/rendering/RenderGrid.cpp_sec2
963
    // FIXME: If possible it'd be nice to avoid this layout here when it's not needed.
957
    // FIXME: If possible it'd be nice to avoid this layout here when it's not needed.
964
    RenderBlock::layoutPositionedObject(child, relayoutChildren, fixedPositionObjectsOnly);
958
    RenderBlock::layoutPositionedObject(child, relayoutChildren, fixedPositionObjectsOnly);
965
959
966
    child.setLogicalLocation(LayoutPoint(child.logicalLeft() + columnOffset, child.logicalTop() + rowOffset));
960
    bool isOrthogonal = isOrthogonalChild(child);
961
    LayoutUnit logicalLeft = child.logicalLeft() + (isOrthogonal ? rowOffset : columnOffset);
962
    LayoutUnit logicalTop = child.logicalTop() + (isOrthogonal ? columnOffset : rowOffset);
963
    child.setLogicalLocation(LayoutPoint(logicalLeft, logicalTop));
967
}
964
}
968
965
969
void RenderGrid::offsetAndBreadthForPositionedChild(const RenderBox& child, GridTrackSizingDirection direction, LayoutUnit& offset, LayoutUnit& breadth)
966
void RenderGrid::offsetAndBreadthForPositionedChild(const RenderBox& child, GridTrackSizingDirection direction, LayoutUnit& offset, LayoutUnit& breadth)
970
{
967
{
971
    ASSERT(!isOrthogonalChild(child));
972
    bool isRowAxis = direction == ForColumns;
968
    bool isRowAxis = direction == ForColumns;
973
969
974
    unsigned autoRepeatCount = m_grid.autoRepeatTracks(direction);
970
    unsigned autoRepeatCount = m_grid.autoRepeatTracks(direction);
- a/LayoutTests/ChangeLog +12 lines
Lines 1-3 a/LayoutTests/ChangeLog_sec1
1
2017-05-25  Manuel Rego Casasnovas  <rego@igalia.com>
2
3
        [css-grid] Add support for orthogonal positioned grid items
4
        https://bugs.webkit.org/show_bug.cgi?id=172591
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        Two of the new imported tests are failing due to an issue with margins
9
        and orthogonal items, which is unrelated to this patch (see bug #172590).
10
11
        * TestExpectations:
12
1
2017-05-25  Claudio Saavedra  <csaavedra@igalia.com>
13
2017-05-25  Claudio Saavedra  <csaavedra@igalia.com>
2
14
3
        [WPE] Unreviewed gardening
15
        [WPE] Unreviewed gardening
- a/LayoutTests/imported/w3c/ChangeLog +46 lines
Lines 1-3 a/LayoutTests/imported/w3c/ChangeLog_sec1
1
2017-05-25  Manuel Rego Casasnovas  <rego@igalia.com>
2
3
        [css-grid] Add support for orthogonal positioned grid items
4
        https://bugs.webkit.org/show_bug.cgi?id=172591
5
6
        Reviewed by NOBODY (OOPS!).
7
8
        Imported new tests for this feature from WPT repository.
9
10
        * resources/import-expectations.json:
11
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001-expected.html: Added.
12
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001.html: Added.
13
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002-expected.html: Added.
14
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002.html: Added.
15
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003-expected.html: Added.
16
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003.html: Added.
17
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004-expected.html: Added.
18
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004.html: Added.
19
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005-expected.html: Added.
20
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005.html: Added.
21
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006-expected.html: Added.
22
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006.html: Added.
23
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007-expected.html: Added.
24
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007.html: Added.
25
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008-expected.html: Added.
26
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008.html: Added.
27
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009-expected.html: Added.
28
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009.html: Added.
29
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010-expected.html: Added.
30
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010.html: Added.
31
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011-expected.html: Added.
32
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011.html: Added.
33
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012-expected.html: Added.
34
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012.html: Added.
35
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013-expected.html: Added.
36
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013.html: Added.
37
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014-expected.html: Added.
38
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014.html: Added.
39
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015-expected.html: Added.
40
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015.html: Added.
41
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016-expected.html: Added.
42
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016.html: Added.
43
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017-expected.html: Added.
44
        * web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017.html: Added.
45
        * web-platform-tests/css/css-grid-1/abspos/w3c-import.log:
46
1
2017-05-23  Manuel Rego Casasnovas  <rego@igalia.com>
47
2017-05-23  Manuel Rego Casasnovas  <rego@igalia.com>
2
48
3
        Move css-scoping-1 test suite to WPT
49
        Move css-scoping-1 test suite to WPT
- a/LayoutTests/TestExpectations +2 lines
Lines 284-289 webkit.org/b/136754 css3/flexbox/csswg/ttwf-reftest-flex-wrap.html [ ImageOnlyFa a/LayoutTests/TestExpectations_sec1
284
# grid layout tests
284
# grid layout tests
285
webkit.org/b/165062 fast/css-grid-layout/grid-baseline.html [ ImageOnlyFailure ]
285
webkit.org/b/165062 fast/css-grid-layout/grid-baseline.html [ ImageOnlyFailure ]
286
webkit.org/b/165062 fast/css-grid-layout/grid-baseline-margins.html [ ImageOnlyFailure ]
286
webkit.org/b/165062 fast/css-grid-layout/grid-baseline-margins.html [ ImageOnlyFailure ]
287
webkit.org/b/172590 imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013.html [ ImageOnlyFailure ]
288
webkit.org/b/172590 imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017.html [ ImageOnlyFailure ]
287
webkit.org/b/149891 imported/w3c/web-platform-tests/css/css-grid-1/grid-layout-properties.html [ Failure ]
289
webkit.org/b/149891 imported/w3c/web-platform-tests/css/css-grid-1/grid-layout-properties.html [ Failure ]
288
webkit.org/b/169271 imported/w3c/web-platform-tests/css/css-grid-1/grid-items/grid-items-sizing-alignment-001.html [ ImageOnlyFailure ]
290
webkit.org/b/169271 imported/w3c/web-platform-tests/css/css-grid-1/grid-items/grid-items-sizing-alignment-001.html [ ImageOnlyFailure ]
289
291
- a/LayoutTests/imported/w3c/resources/import-expectations.json -1 / +1 lines
Lines 293-296 a/LayoutTests/imported/w3c/resources/import-expectations.json_sec1
293
    "web-platform-tests/webvtt": "skip", 
293
    "web-platform-tests/webvtt": "skip", 
294
    "web-platform-tests/workers": "skip", 
294
    "web-platform-tests/workers": "skip", 
295
    "web-platform-tests/x-frame-options": "skip"
295
    "web-platform-tests/x-frame-options": "skip"
296
}
296
}
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001-expected.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  place-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
}
21
22
#firstItem {
23
  background: magenta;
24
}
25
26
#secondItem {
27
  background: cyan;
28
}
29
30
#thirdItem {
31
  background: yellow;
32
}
33
34
#fourthItem {
35
  background: lime;
36
}
37
</style>
38
39
<p>The test passes if it has the same output than the reference.</p>
40
41
<div id="grid">
42
  <div id="firstItem">First item</div>
43
  <div id="secondItem">Second item</div>
44
  <div id="thirdItem">Third item</div>
45
  <div id="fourthItem">Fourth item</div>
46
</div>
47
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001.html +58 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-001-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a static position (left/rigth and top/bottom are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
}
25
26
#firstItem {
27
  background: magenta;
28
  grid-column: 1 / 2;
29
  grid-row: 1 / 2;
30
}
31
32
#secondItem {
33
  background: cyan;
34
  grid-column: 2 / 3;
35
  grid-row: 1 / 2;
36
}
37
38
#thirdItem {
39
  background: yellow;
40
  grid-column: 1 / 2;
41
  grid-row: 2 / 3;
42
}
43
44
#fourthItem {
45
  background: lime;
46
  grid-column: 2 / 3;
47
  grid-row: 2 / 3;
48
}
49
</style>
50
51
<p>The test passes if it has the same output than the reference.</p>
52
53
<div id="grid">
54
  <div id="firstItem">First item</div>
55
  <div id="secondItem">Second item</div>
56
  <div id="thirdItem">Third item</div>
57
  <div id="fourthItem">Fourth item</div>
58
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002-expected.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  place-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
}
21
22
#firstItem {
23
  background: magenta;
24
}
25
26
#secondItem {
27
  background: cyan;
28
}
29
30
#thirdItem {
31
  background: yellow;
32
}
33
34
#fourthItem {
35
  background: lime;
36
}
37
</style>
38
39
<p>The test passes if it has the same output than the reference.</p>
40
41
<div id="grid">
42
  <div id="firstItem">First item</div>
43
  <div id="secondItem">Second item</div>
44
  <div id="thirdItem">Third item</div>
45
  <div id="fourthItem">Fourth item</div>
46
</div>
47
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-001-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'left' offset and a static block position (top/bottom are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  left: 0;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003-expected.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  place-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
}
21
22
#firstItem {
23
  background: magenta;
24
}
25
26
#secondItem {
27
  background: cyan;
28
}
29
30
#thirdItem {
31
  background: yellow;
32
}
33
34
#fourthItem {
35
  background: lime;
36
}
37
</style>
38
39
<p>The test passes if it has the same output than the reference.</p>
40
41
<div id="grid">
42
  <div id="firstItem">First item</div>
43
  <div id="secondItem">Second item</div>
44
  <div id="thirdItem">Third item</div>
45
  <div id="fourthItem">Fourth item</div>
46
</div>
47
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-001-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'top' offset and a static inline position (left/right are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  top: 0;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004-expected.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  place-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
}
21
22
#firstItem {
23
  background: magenta;
24
}
25
26
#secondItem {
27
  background: cyan;
28
}
29
30
#thirdItem {
31
  background: yellow;
32
}
33
34
#fourthItem {
35
  background: lime;
36
}
37
</style>
38
39
<p>The test passes if it has the same output than the reference.</p>
40
41
<div id="grid">
42
  <div id="firstItem">First item</div>
43
  <div id="secondItem">Second item</div>
44
  <div id="thirdItem">Third item</div>
45
  <div id="fourthItem">Fourth item</div>
46
</div>
47
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-001-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have specific 'left' and 'top' offsets.">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  left: 0;
25
  top: 0;
26
}
27
28
#firstItem {
29
  background: magenta;
30
  grid-column: 1 / 2;
31
  grid-row: 1 / 2;
32
}
33
34
#secondItem {
35
  background: cyan;
36
  grid-column: 2 / 3;
37
  grid-row: 1 / 2;
38
}
39
40
#thirdItem {
41
  background: yellow;
42
  grid-column: 1 / 2;
43
  grid-row: 2 / 3;
44
}
45
46
#fourthItem {
47
  background: lime;
48
  grid-column: 2 / 3;
49
  grid-row: 2 / 3;
50
}
51
</style>
52
53
<p>The test passes if it has the same output than the reference.</p>
54
55
<div id="grid">
56
  <div id="firstItem">First item</div>
57
  <div id="secondItem">Second item</div>
58
  <div id="thirdItem">Third item</div>
59
  <div id="fourthItem">Fourth item</div>
60
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005-expected.html +48 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  justify-items: end;
10
  align-items: start;
11
  margin: 1px 2px 3px 4px;
12
  padding: 20px 15px 10px 5px;
13
  border-width: 9px 3px 12px 6px;
14
  border-style: solid;
15
  width: 550px;
16
  height: 400px;
17
}
18
19
#grid > div {
20
  writing-mode: vertical-lr;
21
}
22
23
#firstItem {
24
  background: magenta;
25
}
26
27
#secondItem {
28
  background: cyan;
29
}
30
31
#thirdItem {
32
  background: yellow;
33
}
34
35
#fourthItem {
36
  background: lime;
37
}
38
</style>
39
40
<p>The test passes if it has the same output than the reference.</p>
41
42
<div id="grid">
43
  <div id="firstItem">First item</div>
44
  <div id="secondItem">Second item</div>
45
  <div id="thirdItem">Third item</div>
46
  <div id="fourthItem">Fourth item</div>
47
</div>
48
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-005-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'right' offset and a static block position (top/bottom are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  right: 0;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006-expected.html +48 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  justify-items: start;
10
  align-items: end;
11
  margin: 1px 2px 3px 4px;
12
  padding: 20px 15px 10px 5px;
13
  border-width: 9px 3px 12px 6px;
14
  border-style: solid;
15
  width: 550px;
16
  height: 400px;
17
}
18
19
#grid > div {
20
  writing-mode: vertical-lr;
21
}
22
23
#firstItem {
24
  background: magenta;
25
}
26
27
#secondItem {
28
  background: cyan;
29
}
30
31
#thirdItem {
32
  background: yellow;
33
}
34
35
#fourthItem {
36
  background: lime;
37
}
38
</style>
39
40
<p>The test passes if it has the same output than the reference.</p>
41
42
<div id="grid">
43
  <div id="firstItem">First item</div>
44
  <div id="secondItem">Second item</div>
45
  <div id="thirdItem">Third item</div>
46
  <div id="fourthItem">Fourth item</div>
47
</div>
48
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-006-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'bottom' offset and a static inline position (left/right are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  bottom: 0;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007-expected.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  align-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
}
21
22
#firstItem {
23
  background: magenta;
24
}
25
26
#secondItem {
27
  background: cyan;
28
}
29
30
#thirdItem {
31
  background: yellow;
32
}
33
34
#fourthItem {
35
  background: lime;
36
}
37
</style>
38
39
<p>The test passes if it has the same output than the reference.</p>
40
41
<div id="grid">
42
  <div id="firstItem">First item</div>
43
  <div id="secondItem">Second item</div>
44
  <div id="thirdItem">Third item</div>
45
  <div id="fourthItem">Fourth item</div>
46
</div>
47
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-007-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have specific 'left' and 'right' offsets and a static block position (top/bottom are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  left: 0;
25
  right: 0;
26
}
27
28
#firstItem {
29
  background: magenta;
30
  grid-column: 1 / 2;
31
  grid-row: 1 / 2;
32
}
33
34
#secondItem {
35
  background: cyan;
36
  grid-column: 2 / 3;
37
  grid-row: 1 / 2;
38
}
39
40
#thirdItem {
41
  background: yellow;
42
  grid-column: 1 / 2;
43
  grid-row: 2 / 3;
44
}
45
46
#fourthItem {
47
  background: lime;
48
  grid-column: 2 / 3;
49
  grid-row: 2 / 3;
50
}
51
</style>
52
53
<p>The test passes if it has the same output than the reference.</p>
54
55
<div id="grid">
56
  <div id="firstItem">First item</div>
57
  <div id="secondItem">Second item</div>
58
  <div id="thirdItem">Third item</div>
59
  <div id="fourthItem">Fourth item</div>
60
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008-expected.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  justify-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
}
21
22
#firstItem {
23
  background: magenta;
24
}
25
26
#secondItem {
27
  background: cyan;
28
}
29
30
#thirdItem {
31
  background: yellow;
32
}
33
34
#fourthItem {
35
  background: lime;
36
}
37
</style>
38
39
<p>The test passes if it has the same output than the reference.</p>
40
41
<div id="grid">
42
  <div id="firstItem">First item</div>
43
  <div id="secondItem">Second item</div>
44
  <div id="thirdItem">Third item</div>
45
  <div id="fourthItem">Fourth item</div>
46
</div>
47
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-008-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have specific 'top' and 'bottom' offsets and a static inline position (left/right are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  top: 0;
25
  bottom: 0;
26
}
27
28
#firstItem {
29
  background: magenta;
30
  grid-column: 1 / 2;
31
  grid-row: 1 / 2;
32
}
33
34
#secondItem {
35
  background: cyan;
36
  grid-column: 2 / 3;
37
  grid-row: 1 / 2;
38
}
39
40
#thirdItem {
41
  background: yellow;
42
  grid-column: 1 / 2;
43
  grid-row: 2 / 3;
44
}
45
46
#fourthItem {
47
  background: lime;
48
  grid-column: 2 / 3;
49
  grid-row: 2 / 3;
50
}
51
</style>
52
53
<p>The test passes if it has the same output than the reference.</p>
54
55
<div id="grid">
56
  <div id="firstItem">First item</div>
57
  <div id="secondItem">Second item</div>
58
  <div id="thirdItem">Third item</div>
59
  <div id="fourthItem">Fourth item</div>
60
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009-expected.html +46 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  margin: 1px 2px 3px 4px;
10
  padding: 20px 15px 10px 5px;
11
  border-width: 9px 3px 12px 6px;
12
  border-style: solid;
13
  width: 550px;
14
  height: 400px;
15
}
16
17
#grid > div {
18
  writing-mode: vertical-lr;
19
}
20
21
#firstItem {
22
  background: magenta;
23
}
24
25
#secondItem {
26
  background: cyan;
27
}
28
29
#thirdItem {
30
  background: yellow;
31
}
32
33
#fourthItem {
34
  background: lime;
35
}
36
</style>
37
38
<p>The test passes if it has the same output than the reference.</p>
39
40
<div id="grid">
41
  <div id="firstItem">First item</div>
42
  <div id="secondItem">Second item</div>
43
  <div id="thirdItem">Third item</div>
44
  <div id="fourthItem">Fourth item</div>
45
</div>
46
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009.html +62 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-009-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have specific 'left, 'right', 'top' and 'bottom' offsets.">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  left: 0;
25
  right: 0;
26
  top: 0;
27
  bottom: 0;
28
}
29
30
#firstItem {
31
  background: magenta;
32
  grid-column: 1 / 2;
33
  grid-row: 1 / 2;
34
}
35
36
#secondItem {
37
  background: cyan;
38
  grid-column: 2 / 3;
39
  grid-row: 1 / 2;
40
}
41
42
#thirdItem {
43
  background: yellow;
44
  grid-column: 1 / 2;
45
  grid-row: 2 / 3;
46
}
47
48
#fourthItem {
49
  background: lime;
50
  grid-column: 2 / 3;
51
  grid-row: 2 / 3;
52
}
53
</style>
54
55
<p>The test passes if it has the same output than the reference.</p>
56
57
<div id="grid">
58
  <div id="firstItem">First item</div>
59
  <div id="secondItem">Second item</div>
60
  <div id="thirdItem">Third item</div>
61
  <div id="fourthItem">Fourth item</div>
62
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010-expected.html +46 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  margin: 1px 2px 3px 4px;
10
  padding: 20px 15px 10px 5px;
11
  border-width: 9px 3px 12px 6px;
12
  border-style: solid;
13
  width: 550px;
14
  height: 400px;
15
}
16
17
#grid > div {
18
  writing-mode: vertical-lr;
19
}
20
21
#firstItem {
22
  background: magenta;
23
}
24
25
#secondItem {
26
  background: cyan;
27
}
28
29
#thirdItem {
30
  background: yellow;
31
}
32
33
#fourthItem {
34
  background: lime;
35
}
36
</style>
37
38
<p>The test passes if it has the same output than the reference.</p>
39
40
<div id="grid">
41
  <div id="firstItem">First item</div>
42
  <div id="secondItem">Second item</div>
43
  <div id="thirdItem">Third item</div>
44
  <div id="fourthItem">Fourth item</div>
45
</div>
46
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-009-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a static position (left/rigth and top/bottom are 'auto') and a specific size.">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  width: 100%;
25
  height: 100%;
26
}
27
28
#firstItem {
29
  background: magenta;
30
  grid-column: 1 / 2;
31
  grid-row: 1 / 2;
32
}
33
34
#secondItem {
35
  background: cyan;
36
  grid-column: 2 / 3;
37
  grid-row: 1 / 2;
38
}
39
40
#thirdItem {
41
  background: yellow;
42
  grid-column: 1 / 2;
43
  grid-row: 2 / 3;
44
}
45
46
#fourthItem {
47
  background: lime;
48
  grid-column: 2 / 3;
49
  grid-row: 2 / 3;
50
}
51
</style>
52
53
<p>The test passes if it has the same output than the reference.</p>
54
55
<div id="grid">
56
  <div id="firstItem">First item</div>
57
  <div id="secondItem">Second item</div>
58
  <div id="thirdItem">Third item</div>
59
  <div id="fourthItem">Fourth item</div>
60
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011-expected.html +48 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  place-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
  margin-left: 10px;
21
}
22
23
#firstItem {
24
  background: magenta;
25
}
26
27
#secondItem {
28
  background: cyan;
29
}
30
31
#thirdItem {
32
  background: yellow;
33
}
34
35
#fourthItem {
36
  background: lime;
37
}
38
</style>
39
40
<p>The test passes if it has the same output than the reference.</p>
41
42
<div id="grid">
43
  <div id="firstItem">First item</div>
44
  <div id="secondItem">Second item</div>
45
  <div id="thirdItem">Third item</div>
46
  <div id="fourthItem">Fourth item</div>
47
</div>
48
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-011-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'left' offset and a static block position (top/bottom are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  left: 10px;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012-expected.html +49 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  justify-items: end;
10
  align-items: start;
11
  margin: 1px 2px 3px 4px;
12
  padding: 20px 15px 10px 5px;
13
  border-width: 9px 3px 12px 6px;
14
  border-style: solid;
15
  width: 550px;
16
  height: 400px;
17
}
18
19
#grid > div {
20
  writing-mode: vertical-lr;
21
  margin-right: 5px;
22
}
23
24
#firstItem {
25
  background: magenta;
26
}
27
28
#secondItem {
29
  background: cyan;
30
}
31
32
#thirdItem {
33
  background: yellow;
34
}
35
36
#fourthItem {
37
  background: lime;
38
}
39
</style>
40
41
<p>The test passes if it has the same output than the reference.</p>
42
43
<div id="grid">
44
  <div id="firstItem">First item</div>
45
  <div id="secondItem">Second item</div>
46
  <div id="thirdItem">Third item</div>
47
  <div id="fourthItem">Fourth item</div>
48
</div>
49
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-012-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'right' offset and a static block position (top/bottom are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  right: 5px;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013-expected.html +49 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  align-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
  margin-left: 10px;
21
  margin-right: 5px;
22
}
23
24
#firstItem {
25
  background: magenta;
26
}
27
28
#secondItem {
29
  background: cyan;
30
}
31
32
#thirdItem {
33
  background: yellow;
34
}
35
36
#fourthItem {
37
  background: lime;
38
}
39
</style>
40
41
<p>The test passes if it has the same output than the reference.</p>
42
43
<div id="grid">
44
  <div id="firstItem">First item</div>
45
  <div id="secondItem">Second item</div>
46
  <div id="thirdItem">Third item</div>
47
  <div id="fourthItem">Fourth item</div>
48
</div>
49
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-013-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have specific 'left' and 'right' offsets and a static block position (top/bottom are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  left: 10px;
25
  right: 5px;
26
}
27
28
#firstItem {
29
  background: magenta;
30
  grid-column: 1 / 2;
31
  grid-row: 1 / 2;
32
}
33
34
#secondItem {
35
  background: cyan;
36
  grid-column: 2 / 3;
37
  grid-row: 1 / 2;
38
}
39
40
#thirdItem {
41
  background: yellow;
42
  grid-column: 1 / 2;
43
  grid-row: 2 / 3;
44
}
45
46
#fourthItem {
47
  background: lime;
48
  grid-column: 2 / 3;
49
  grid-row: 2 / 3;
50
}
51
</style>
52
53
<p>The test passes if it has the same output than the reference.</p>
54
55
<div id="grid">
56
  <div id="firstItem">First item</div>
57
  <div id="secondItem">Second item</div>
58
  <div id="thirdItem">Third item</div>
59
  <div id="fourthItem">Fourth item</div>
60
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014-expected.html +47 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  place-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
  margin-top: 15px;
21
}
22
23
#firstItem {
24
  background: magenta;
25
}
26
27
#secondItem {
28
  background: cyan;
29
}
30
31
#thirdItem {
32
  background: yellow;
33
}
34
35
#fourthItem {
36
  background: lime;
37
}
38
</style>
39
40
<p>The test passes if it has the same output than the reference.</p>
41
42
<div id="grid">
43
  <div id="firstItem">First item</div>
44
  <div id="secondItem">Second item</div>
45
  <div id="thirdItem">Third item</div>
46
  <div id="fourthItem">Fourth item</div>
47
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-014-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'top' offset and a static inline position (left/right are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  top: 15px;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015-expected.html +48 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  justify-items: start;
10
  align-items: end;
11
  margin: 1px 2px 3px 4px;
12
  padding: 20px 15px 10px 5px;
13
  border-width: 9px 3px 12px 6px;
14
  border-style: solid;
15
  width: 550px;
16
  height: 400px;
17
}
18
19
#grid > div {
20
  writing-mode: vertical-lr;
21
  margin-bottom: 20px;
22
}
23
24
#firstItem {
25
  background: magenta;
26
}
27
28
#secondItem {
29
  background: cyan;
30
}
31
32
#thirdItem {
33
  background: yellow;
34
}
35
36
#fourthItem {
37
  background: lime;
38
}
39
</style>
40
41
<p>The test passes if it has the same output than the reference.</p>
42
43
<div id="grid">
44
  <div id="firstItem">First item</div>
45
  <div id="secondItem">Second item</div>
46
  <div id="thirdItem">Third item</div>
47
  <div id="fourthItem">Fourth item</div>
48
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015.html +59 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-015-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have a specific 'bottom' offset and a static inline position (left/right are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  bottom: 20px;
25
}
26
27
#firstItem {
28
  background: magenta;
29
  grid-column: 1 / 2;
30
  grid-row: 1 / 2;
31
}
32
33
#secondItem {
34
  background: cyan;
35
  grid-column: 2 / 3;
36
  grid-row: 1 / 2;
37
}
38
39
#thirdItem {
40
  background: yellow;
41
  grid-column: 1 / 2;
42
  grid-row: 2 / 3;
43
}
44
45
#fourthItem {
46
  background: lime;
47
  grid-column: 2 / 3;
48
  grid-row: 2 / 3;
49
}
50
</style>
51
52
<p>The test passes if it has the same output than the reference.</p>
53
54
<div id="grid">
55
  <div id="firstItem">First item</div>
56
  <div id="secondItem">Second item</div>
57
  <div id="thirdItem">Third item</div>
58
  <div id="fourthItem">Fourth item</div>
59
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016-expected.html +48 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  justify-items: start;
10
  margin: 1px 2px 3px 4px;
11
  padding: 20px 15px 10px 5px;
12
  border-width: 9px 3px 12px 6px;
13
  border-style: solid;
14
  width: 550px;
15
  height: 400px;
16
}
17
18
#grid > div {
19
  writing-mode: vertical-lr;
20
  margin-top: 15px;
21
  margin-bottom: 20px;
22
}
23
24
#firstItem {
25
  background: magenta;
26
}
27
28
#secondItem {
29
  background: cyan;
30
}
31
32
#thirdItem {
33
  background: yellow;
34
}
35
36
#fourthItem {
37
  background: lime;
38
}
39
</style>
40
41
<p>The test passes if it has the same output than the reference.</p>
42
43
<div id="grid">
44
  <div id="firstItem">First item</div>
45
  <div id="secondItem">Second item</div>
46
  <div id="thirdItem">Third item</div>
47
  <div id="fourthItem">Fourth item</div>
48
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016.html +60 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-016-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have specific 'top' and 'bottom' offsets and a static inline position (left/right are 'auto').">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  top: 15px;
25
  bottom: 20px;
26
}
27
28
#firstItem {
29
  background: magenta;
30
  grid-column: 1 / 2;
31
  grid-row: 1 / 2;
32
}
33
34
#secondItem {
35
  background: cyan;
36
  grid-column: 2 / 3;
37
  grid-row: 1 / 2;
38
}
39
40
#thirdItem {
41
  background: yellow;
42
  grid-column: 1 / 2;
43
  grid-row: 2 / 3;
44
}
45
46
#fourthItem {
47
  background: lime;
48
  grid-column: 2 / 3;
49
  grid-row: 2 / 3;
50
}
51
</style>
52
53
<p>The test passes if it has the same output than the reference.</p>
54
55
<div id="grid">
56
  <div id="firstItem">First item</div>
57
  <div id="secondItem">Second item</div>
58
  <div id="thirdItem">Third item</div>
59
  <div id="fourthItem">Fourth item</div>
60
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017-expected.html +49 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017-expected.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items reference file</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<style>
6
#grid {
7
  display: grid;
8
  grid: 150px 100px / 200px 300px;
9
  margin: 1px 2px 3px 4px;
10
  padding: 20px 15px 10px 5px;
11
  border-width: 9px 3px 12px 6px;
12
  border-style: solid;
13
  width: 550px;
14
  height: 400px;
15
}
16
17
#grid > div {
18
  writing-mode: vertical-lr;
19
  margin-left: 10px;
20
  margin-right: 5px;
21
  margin-top: 15px;
22
  margin-bottom: 20px;
23
}
24
25
#firstItem {
26
  background: magenta;
27
}
28
29
#secondItem {
30
  background: cyan;
31
}
32
33
#thirdItem {
34
  background: yellow;
35
}
36
37
#fourthItem {
38
  background: lime;
39
}
40
</style>
41
42
<p>The test passes if it has the same output than the reference.</p>
43
44
<div id="grid">
45
  <div id="firstItem">First item</div>
46
  <div id="secondItem">Second item</div>
47
  <div id="thirdItem">Third item</div>
48
  <div id="fourthItem">Fourth item</div>
49
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017.html +62 lines
Line 0 a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017.html_sec1
1
<!DOCTYPE html>
2
<meta charset="utf-8">
3
<title>CSS Grid Layout Test: Orthogonal positioned grid items</title>
4
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
5
<link rel="help" href="https://drafts.csswg.org/css-grid/#abspos" title="9. Absolute Positioning">
6
<link rel="match" href="orthogonal-positioned-grid-items-017-ref.html">
7
<meta name="assert" content="Checks that absolutely positioned orthogonal grid items are properly placed and sized when they have specific 'left, 'right', 'top' and 'bottom' offsets.">
8
<style>
9
#grid {
10
  display: grid;
11
  grid: 150px 100px / 200px 300px;
12
  margin: 1px 2px 3px 4px;
13
  padding: 20px 15px 10px 5px;
14
  border-width: 9px 3px 12px 6px;
15
  border-style: solid;
16
  width: 550px;
17
  height: 400px;
18
  position: relative;
19
}
20
21
#grid > div {
22
  writing-mode: vertical-lr;
23
  position: absolute;
24
  left: 10px;
25
  right: 5px;
26
  top: 15px;
27
  bottom: 20px;
28
}
29
30
#firstItem {
31
  background: magenta;
32
  grid-column: 1 / 2;
33
  grid-row: 1 / 2;
34
}
35
36
#secondItem {
37
  background: cyan;
38
  grid-column: 2 / 3;
39
  grid-row: 1 / 2;
40
}
41
42
#thirdItem {
43
  background: yellow;
44
  grid-column: 1 / 2;
45
  grid-row: 2 / 3;
46
}
47
48
#fourthItem {
49
  background: lime;
50
  grid-column: 2 / 3;
51
  grid-row: 2 / 3;
52
}
53
</style>
54
55
<p>The test passes if it has the same output than the reference.</p>
56
57
<div id="grid">
58
  <div id="firstItem">First item</div>
59
  <div id="secondItem">Second item</div>
60
  <div id="thirdItem">Third item</div>
61
  <div id="fourthItem">Fourth item</div>
62
</div>
- a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/w3c-import.log +34 lines
Lines 14-19 Property values requiring vendor prefixes: a/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/w3c-import.log_sec1
14
None
14
None
15
------------------------------------------------------------------------
15
------------------------------------------------------------------------
16
List of files:
16
List of files:
17
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001-expected.html
18
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-001.html
19
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002-expected.html
20
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-002.html
21
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003-expected.html
22
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-003.html
23
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004-expected.html
24
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-004.html
25
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005-expected.html
26
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-005.html
27
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006-expected.html
28
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-006.html
29
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007-expected.html
30
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-007.html
31
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008-expected.html
32
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-008.html
33
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009-expected.html
34
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-009.html
35
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010-expected.html
36
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-010.html
37
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011-expected.html
38
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-011.html
39
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012-expected.html
40
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-012.html
41
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013-expected.html
42
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-013.html
43
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014-expected.html
44
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-014.html
45
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015-expected.html
46
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-015.html
47
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016-expected.html
48
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-016.html
49
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017-expected.html
50
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/orthogonal-positioned-grid-items-017.html
17
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/positioned-grid-items-001-expected.html
51
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/positioned-grid-items-001-expected.html
18
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/positioned-grid-items-001.html
52
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/positioned-grid-items-001.html
19
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/positioned-grid-items-002-expected.html
53
/LayoutTests/imported/w3c/web-platform-tests/css/css-grid-1/abspos/positioned-grid-items-002-expected.html

Return to Bug 172591