mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision b'a3cb53d786edfd9106825e312866624150382075'
This commit is contained in:
parent
9acb9cc5cf
commit
40def0914a
549 changed files with 16001 additions and 1815 deletions
|
@ -0,0 +1,60 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-grid">
|
||||
<meta name="assert" content="Trimmed block-end margins for grid items should be reflected in computed style">
|
||||
</head>
|
||||
<style>
|
||||
grid {
|
||||
display: grid;
|
||||
width: min-content;
|
||||
grid-auto-flow: column;
|
||||
border: 1px solid black;
|
||||
grid-template-rows: auto auto auto;
|
||||
margin-trim: block-end;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-block-end: 10px;
|
||||
}
|
||||
.span-four {
|
||||
grid-row: span 4;
|
||||
}
|
||||
item:nth-child(1) {
|
||||
grid-row: 1;
|
||||
background-color: green;
|
||||
}
|
||||
item:nth-child(2) {
|
||||
grid-row: 2;
|
||||
background-color: blue;
|
||||
}
|
||||
item:nth-child(3) {
|
||||
grid-row: 3;
|
||||
background-color: purple;
|
||||
}
|
||||
item:nth-child(4) {
|
||||
background-color:burlywood;
|
||||
}
|
||||
item:nth-child(5) {
|
||||
background-color: grey;
|
||||
grid-row: 4;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<body onload="checkLayout('grid > item')">
|
||||
<div id="target">
|
||||
<grid>
|
||||
<item data-expected-margin-bottom="10"></item>
|
||||
<item data-expected-margin-bottom="10"></item>
|
||||
<item data-expected-margin-bottom="10"></item>
|
||||
<item data-expected-margin-bottom="0" class="span-four"></item>
|
||||
<item data-expected-margin-bottom="0"></item>
|
||||
</grid>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-grid">
|
||||
<meta name="assert" content="item that spans into last row should have block-end margin trimmed">
|
||||
</head>
|
||||
<style>
|
||||
grid {
|
||||
display: grid;
|
||||
border: 1px solid black;
|
||||
grid-template-columns: auto auto;
|
||||
margin-trim: block-end;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.row-two {
|
||||
grid-row: 2;
|
||||
background-color: green;
|
||||
}
|
||||
.span-two-rows {
|
||||
grid-row: span 2;
|
||||
background-color: blue;
|
||||
height: 90px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<body onload="checkLayout('grid > item')">
|
||||
<div id="target">
|
||||
<grid>
|
||||
<item data-expected-margin-bottom="0" class="span-two-rows"></item>
|
||||
<item data-expected-margin-bottom="0" class="row-two"></item>
|
||||
</grid>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,55 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-grid">
|
||||
<meta name="assert" content="Trimmed block-end margins for grid items should be reflected in computed style">
|
||||
</head>
|
||||
<style>
|
||||
grid {
|
||||
display: grid;
|
||||
width: min-content;
|
||||
border: 1px solid black;
|
||||
grid-template-columns: repeat(4, auto);
|
||||
margin-trim: block-end;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.locked-position {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
margin-block-end: 50px;
|
||||
background-color: magenta;
|
||||
}
|
||||
.span-three-columns {
|
||||
grid-column: span 3;
|
||||
background-color: purple;
|
||||
}
|
||||
.span-five-columns {
|
||||
grid-column: span 5;
|
||||
}
|
||||
item:nth-child(1) {
|
||||
background-color: green;
|
||||
}
|
||||
item:nth-child(4) {
|
||||
background-color: blue;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<body onload="checkLayout('grid > item')">
|
||||
<div id="target">
|
||||
<grid>
|
||||
<item class="span-five-columns" data-expected-margin-bottom="10"></item>
|
||||
<item class="locked-position" data-expected-margin-bottom="50"></item>
|
||||
<item class="span-three-columns" data-expected-margin-bottom="10"></item>
|
||||
<item data-expected-margin-bottom="0"></item>
|
||||
</grid>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-grid">
|
||||
<meta name="assert" content="trimmed inline-start margins in grid should be reflected in computed style">
|
||||
</head>
|
||||
<style>
|
||||
grid {
|
||||
display: grid;
|
||||
width: min-content;
|
||||
outline: 1px solid black;
|
||||
grid-template-columns: repeat(2, auto);
|
||||
margin-trim: inline-start;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-inline-start: 10px;
|
||||
background-color: green;
|
||||
}
|
||||
.negative-line-number {
|
||||
width: 50px;
|
||||
grid-row: 2;
|
||||
grid-column: -3;
|
||||
background-color: blue;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<body onload="checkLayout('grid > item')">
|
||||
<div id="target">
|
||||
<grid>
|
||||
<item data-expected-margin-left="0" class="negative-line-number"></item>
|
||||
<item data-expected-margin-left="0"></item>
|
||||
</grid>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-grid">
|
||||
<meta name="assert" content="trimmed inline-start margins in grid should be reflected in computed style">
|
||||
</head>
|
||||
<style>
|
||||
grid {
|
||||
display: grid;
|
||||
width: min-content;
|
||||
outline: 1px solid black;
|
||||
grid-template-columns: repeat(2, auto);
|
||||
margin-trim: inline-start;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
.locked-position {
|
||||
grid-row: 3;
|
||||
grid-column: 1;
|
||||
margin-inline-start: -30px;
|
||||
}
|
||||
item:nth-child(1) {
|
||||
background-color: green;
|
||||
margin-inline-start: 30px;
|
||||
}
|
||||
item:nth-child(2) {
|
||||
background-color: blue;
|
||||
margin-inline-start: 10px;
|
||||
}
|
||||
item:nth-child(3) {
|
||||
background-color: orchid;
|
||||
margin-inline-start: 10%;
|
||||
}
|
||||
item:nth-child(4) {
|
||||
background-color: maroon;
|
||||
}
|
||||
item:nth-child(5) {
|
||||
background-color: salmon;
|
||||
width: auto;
|
||||
grid-column: span 2;
|
||||
margin-inline-start: 10px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<body onload="checkLayout('grid > item')">
|
||||
<div id="target">
|
||||
<grid>
|
||||
<item data-expected-margin-left="0"></item>
|
||||
<item data-expected-margin-left="10"></item>
|
||||
<item data-expected-margin-left="0"></item>
|
||||
<item class="locked-position" data-expected-margin-left="0"></item>
|
||||
<item data-expected-margin-left="0"></item>
|
||||
</grid>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue