mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision e3698c7bb3c309df69134e9bc0a375f00535e226
This commit is contained in:
parent
1b38197812
commit
e447ba9856
102 changed files with 1364 additions and 221 deletions
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<div contenteditable></div>
|
||||
<p>The word "PASS" should be seen below. There should be no DCHECK
|
||||
failure.</p>
|
||||
<p style="color: blue;">PASS</p>
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Display flex first line with floated first letter</title>
|
||||
<link rel="help" href="https://crbug.com/1097595">
|
||||
<link rel="match" href="display-first-line-002-ref.html">
|
||||
<style id="styleElm">
|
||||
#victim::first-line { display:flex; }
|
||||
#victim::first-letter { float:right; }
|
||||
</style>
|
||||
|
||||
<!-- The contenteditable DIV is just here to trigger legacy layout
|
||||
fallback, and a DCHECK failure identical to the one in the bug
|
||||
report. If we remove it, we'll get NG layout, and then it will
|
||||
actually DCHECK-fail inside NG inline layout code instead. -->
|
||||
<div contenteditable></div>
|
||||
|
||||
<p>The word "PASS" should be seen below. There should be no DCHECK
|
||||
failure.</p>
|
||||
<div id="child" style="display:none;"></div>
|
||||
<div id="victim" style="width:fit-content;">
|
||||
SPAS
|
||||
</div>
|
||||
<script>
|
||||
document.body.offsetTop;
|
||||
styleElm.appendChild(child);
|
||||
document.body.offsetTop;
|
||||
victim.style.color = "blue";
|
||||
</script>
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Computed float value of flex/grid items</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-containers">
|
||||
<meta name="assert" content="computed float value of flex/grid items should be as specified">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div id="flex" style="display:flex;">
|
||||
<div id="flex-item"></div>
|
||||
</div>
|
||||
<div id="grid" style="display:grid;">
|
||||
<div id="grid-item">
|
||||
</div>
|
||||
<script>
|
||||
function setFloatFor(id, float) {
|
||||
document.getElementById(id).style.cssFloat = float;
|
||||
}
|
||||
function getFloatFor(id) {
|
||||
return window.getComputedStyle(document.getElementById(id)).getPropertyValue("float");
|
||||
}
|
||||
function setDisplayBlock(id) {
|
||||
document.getElementById(id).style.display = "block";
|
||||
}
|
||||
test(function() {
|
||||
assert_equals(getFloatFor("flex-item"), "none");
|
||||
assert_equals(getFloatFor("grid-item"), "none");
|
||||
|
||||
setFloatFor("flex-item", "left");
|
||||
setFloatFor("grid-item", "right");
|
||||
assert_equals(getFloatFor("flex-item"), "left");
|
||||
assert_equals(getFloatFor("grid-item"), "right");
|
||||
|
||||
setDisplayBlock("grid");
|
||||
setDisplayBlock("flex");
|
||||
assert_equals(getFloatFor("flex-item"), "left");
|
||||
assert_equals(getFloatFor("grid-item"), "right");
|
||||
}, "computed style for float");
|
||||
</script>
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Computed float value of flex/grid items</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-containers">
|
||||
<meta name="assert" content="computed float value of flex/grid items should be as specified">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div style="display:flex;">
|
||||
<div id="flex-item" style="float:left;"></div>
|
||||
</div>
|
||||
<div style="display:grid;">
|
||||
<div id="grid-item" style="float:right;"></div>
|
||||
</div>
|
||||
<script>
|
||||
function getFloatFor(id) {
|
||||
return window.getComputedStyle(document.getElementById(id)).getPropertyValue("float");
|
||||
}
|
||||
test(function() {
|
||||
assert_equals(getFloatFor("flex-item"), "left");
|
||||
assert_equals(getFloatFor("grid-item"), "right");
|
||||
}, "computed style for float");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue