mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision b'5857a9b5776d85fe77883fadf62c398dc05cf608'
This commit is contained in:
parent
2803edd5e1
commit
8101fa5636
96 changed files with 1117 additions and 441 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="block-end trimmed margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min-content;
|
||||
margin-trim: block-end;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-block-end: 10px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-expected-margin-bottom="10" data-offset-y="8"></item>
|
||||
<item data-expected-margin-bottom="0" data-offset-y="68"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="trimmed inline-start margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min-content;
|
||||
margin-trim: inline-start;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
item:nth-child(1) {
|
||||
margin-inline-start: 10px;
|
||||
}
|
||||
item:nth-child(2) {
|
||||
margin-inline-start: -10px;
|
||||
}
|
||||
item:nth-child(3) {
|
||||
margin-inline-start: 30%;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-expected-margin-left="0" data-offset-x="8"></item>
|
||||
<item data-expected-margin-left="0" data-offset-x="8"></item>
|
||||
<item data-expected-margin-left="0" data-offset-x="8"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="block-end trimmed margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
width: 100px;
|
||||
height: 110px;
|
||||
margin-trim: block-end;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-block-end: 10px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-offset-y="8" data-expected-margin-bottom="10"></item>
|
||||
<item data-offset-y="68" data-expected-margin-bottom="0"></item>
|
||||
<item data-offset-y="8" data-expected-margin-bottom="10"></item>
|
||||
<item data-offset-y="68" data-expected-margin-top="0"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="both trimmed block margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
width: 100px;
|
||||
height: 120px;
|
||||
margin-trim: block;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-block: 10px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-offset-y="8" data-expected-margin-top="0" data-expected-margin-bottom="10"></item>
|
||||
<item data-offset-y="78" data-expected-margin-top="10" data-expected-margin-bottom="0" ></item>
|
||||
<item data-offset-y="8" data-expected-margin-top="0" data-expected-margin-bottom="10"></item>
|
||||
<item data-offset-y="78" data-expected-margin-top="10" data-expected-margin-bottom="0"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="trimmed inline-start margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
width: min-content;
|
||||
height: 100px;
|
||||
margin-trim: inline-start;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
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>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-offset-x="8" data-expected-margin-left="0"></item>
|
||||
<item data-offset-x="8" data-expected-margin-left="0"></item>
|
||||
<item data-offset-x="68" data-expected-margin-left="10"></item>
|
||||
<item data-offset-x="68" data-expected-margin-left="10"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="block-end trimmed margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
width: min-content;
|
||||
margin-trim: block-end;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-inline: 10px;
|
||||
}
|
||||
item:nth-child(1) {
|
||||
margin-block-end: 10px;
|
||||
}
|
||||
item:nth-child(2) {
|
||||
margin-block-end: -10px;
|
||||
}
|
||||
item:nth-child(3) {
|
||||
margin-block-end: 30%;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-expected-margin-bottom="0"></item>
|
||||
<item data-expected-margin-bottom="0"></item>
|
||||
<item data-expected-margin-bottom="0"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="both trimmed block margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
width: min-content;
|
||||
margin-trim: block;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-inline: 10px;
|
||||
}
|
||||
item:nth-child(1) {
|
||||
margin-block: 10px;
|
||||
}
|
||||
item:nth-child(2) {
|
||||
margin-block: -10px;
|
||||
}
|
||||
item:nth-child(3) {
|
||||
margin-block: 30%;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-expected-margin-top="0" data-expected-margin-bottom="0" data-offset-y="8"></item>
|
||||
<item data-expected-margin-top="0" data-expected-margin-bottom="0" data-offset-y="8"></item>
|
||||
<item data-expected-margin-top="0" data-expected-margin-bottom="0" data-offset-y="8"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="trimmed inline-start margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
margin-trim: inline-start;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-inline-start: 20px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-expected-margin-left="0" data-offset-x="8"></item>
|
||||
<item data-expected-margin-left="20" data-offset-x="78"></item>
|
||||
<item data-expected-margin-left="20" data-offset-x="148"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="block-end trimmed margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
width: 100px;
|
||||
margin-trim: block-end;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-block-end: 10px;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-offset-y="8" data-expected-margin-bottom="10"></item>
|
||||
<item data-offset-y="8" data-expected-margin-bottom="10"></item>
|
||||
<item data-offset-y="68" data-expected-margin-bottom="0"></item>
|
||||
<item data-offset-y="68" data-expected-margin-bottom="0"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="both trimmed block margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
width: 100px;
|
||||
flex-wrap: wrap;
|
||||
margin-trim: block;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
margin-block: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-expected-margin-top="0" data-expected-margin-bottom="10" data-offset-y="8"></item>
|
||||
<item data-expected-margin-top="0" data-expected-margin-bottom="10" data-offset-y="8"></item>
|
||||
<item data-expected-margin-top="10" data-expected-margin-bottom="0" data-offset-y="78"></item>
|
||||
<item data-expected-margin-top="10" data-expected-margin-bottom="0" data-offset-y="78"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="author" href="mailto:sammy.gill@apple.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex">
|
||||
<meta name="assert" content="trimmed inline-start margins should be reflected in computed style">
|
||||
<style>
|
||||
flexbox {
|
||||
display: flex;
|
||||
width: 110px;
|
||||
flex-wrap: wrap;
|
||||
margin-trim: inline-start;
|
||||
}
|
||||
item {
|
||||
display: block;
|
||||
background-color: green;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
item:nth-child(1) {
|
||||
margin-inline-start: 10px;
|
||||
}
|
||||
item:nth-child(2) {
|
||||
margin-inline-start: -10px;
|
||||
}
|
||||
item:nth-child(3) {
|
||||
margin-inline-start: 50%;
|
||||
}
|
||||
item:nth-child(4) {
|
||||
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>
|
||||
</head>
|
||||
<body onload="checkLayout('flexbox > item')">
|
||||
<div id="target">
|
||||
<flexbox>
|
||||
<item data-expected-margin-left="0" data-offset-x="8"></item>
|
||||
<item data-expected-margin-left="-10" data-offset-x="48"></item>
|
||||
<item data-expected-margin-left="0" data-offset-x="8"></item>
|
||||
<item data-expected-margin-left="10" data-offset-x="68"></item>
|
||||
</flexbox>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue