mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision c2b30ef30749b6a8f2cc832761dfe011e63d5e94
This commit is contained in:
parent
987e376ca7
commit
eda9b9b73a
142 changed files with 3513 additions and 851 deletions
|
@ -0,0 +1,5 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<body>
|
||||
<div style="background: linear-gradient(to bottom, red 0%, red 25%, blue 25%, blue 75%, red 75%, red 100%); width: 100px; height: 100px;"><br></div>
|
||||
</body>
|
|
@ -0,0 +1,9 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Linear gradient with a two position color stops</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-images-4/#color-stop-syntax">
|
||||
<meta name="assert" content="Color stops with two positions are equivalent to two color stops with the same color">
|
||||
<link rel=match href=/css/css-images/multiple-position-color-stop-linear-2-ref.html>
|
||||
<body>
|
||||
<div style="background: linear-gradient(to bottom, red 0% 25%, blue 25% 75%, red 75% 100%); width: 100px; height: 100px;"><br></div>
|
||||
</body>
|
|
@ -0,0 +1,5 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<body>
|
||||
<div style="background: radial-gradient(center, red 0%, red 25%, blue 25%, blue 75%, red 75%, red 100%); width: 100px; height: 100px;"><br></div>
|
||||
</body>
|
|
@ -0,0 +1,9 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Radial gradient with a two position color stops</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-images-4/#color-stop-syntax">
|
||||
<meta name="assert" content="Color stops with two positions are equivalent to two color stops with the same color">
|
||||
<link rel=match href=/css/css-images/multiple-position-color-stop-radial-2-ref.html>
|
||||
<body>
|
||||
<div style="background: radial-gradient(center, red 0% 25%, blue 25% 75%, red 75% 100%); width: 100px; height: 100px;"><br></div>
|
||||
</body>
|
|
@ -5,23 +5,27 @@
|
|||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
|
||||
<meta content="ahem" name="flags">
|
||||
<style>
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
.container {
|
||||
writing-mode: horizontal-tb;
|
||||
padding: 70px 30px;
|
||||
margin: -170px -230px;
|
||||
font: 100px/1 Ahem;
|
||||
line-height: 100px;
|
||||
color: red;
|
||||
}
|
||||
.container::first-letter {
|
||||
color:green;
|
||||
color: transparent;
|
||||
}
|
||||
.container > span {
|
||||
clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
|
||||
color: red;
|
||||
}
|
||||
.container > span > span {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div class="container">
|
||||
<span>
|
||||
XX<br>
|
||||
XXX
|
||||
</span>
|
||||
<br>
|
||||
XX<span><span>X</span>X<br>XXXXX</span>
|
||||
</div>
|
||||
|
|
|
@ -5,24 +5,27 @@
|
|||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
|
||||
<meta content="ahem" name="flags">
|
||||
<style>
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
.container {
|
||||
writing-mode: vertical-rl;
|
||||
margin-left: -100px;
|
||||
padding: 70px 30px;
|
||||
margin: -270px -130px;
|
||||
font: 100px/1 Ahem;
|
||||
line-height: 100px;
|
||||
color: red;
|
||||
}
|
||||
.container::first-letter {
|
||||
color:green;
|
||||
color: transparent;
|
||||
}
|
||||
.container > span {
|
||||
clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 0% 50%);
|
||||
color: red;
|
||||
}
|
||||
.container > span > span {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div class="container">
|
||||
<span>
|
||||
XX<br>
|
||||
XXX
|
||||
</span>
|
||||
<br>
|
||||
XX<span><span>X</span>X<br>XXXXX</span>
|
||||
</div>
|
||||
|
|
|
@ -5,23 +5,27 @@
|
|||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
|
||||
<meta content="ahem" name="flags">
|
||||
<style>
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
.container {
|
||||
writing-mode: vertical-lr;
|
||||
padding: 70px 30px;
|
||||
margin: -270px -130px;
|
||||
font: 100px/1 Ahem;
|
||||
line-height: 100px;
|
||||
color: red;
|
||||
}
|
||||
.container::first-letter {
|
||||
color:green;
|
||||
color: transparent;
|
||||
}
|
||||
.container > span {
|
||||
clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 0% 50%);
|
||||
color: red;
|
||||
}
|
||||
.container > span > span {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||
<div class="container">
|
||||
<span>
|
||||
XX<br>
|
||||
XXX
|
||||
</span>
|
||||
<br>
|
||||
XX<span><span>X</span>X<br>XXXXX</span>
|
||||
</div>
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
<img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" />
|
||||
<img src="support/black20x20.png" width="160" height="20" alt="Image download support must be enabled" />
|
||||
<img src="support/swatch-yellow.png" width="160" height="20" alt="Image download support must be enabled" />
|
||||
<img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" />
|
||||
<img src="support/swatch-orange.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="80" height="20" alt="Image download support must be enabled" />
|
||||
<img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-blue.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" />
|
||||
<img src="support/swatch-blue.png" width="80" height="20" alt="Image download support must be enabled" /><img src="support/swatch-pink.png" width="40" height="20" alt="Image download support must be enabled" /><img src="support/swatch-yellow.png" width="40" height="20" alt="Image download support must be enabled" />
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -50,10 +50,10 @@
|
|||
color: orange;
|
||||
/*
|
||||
In this test, the glyphs "or" are painted into 1st column box.
|
||||
"Content in the normal flow that extends into column
|
||||
gaps (e.g., long words or images) is clipped in the
|
||||
middle of the column gap."
|
||||
Therefore, the glyphs "ang" are clipped and not painted.
|
||||
Per spec, content in the normal flow that extends into column
|
||||
gaps (e.g., long words or images) is not clipped to the column
|
||||
box. However, the glyphs "ang" are overwritten by <span>s, so
|
||||
they're not visible.
|
||||
*/
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">
|
||||
<div id="container" style="width:200px; height:200px; writing-mode:horizontal-tb; direction:ltr;">
|
||||
<span id="target">target</span>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=> {
|
||||
var elements = document.elementsFromPoint(15, 15);
|
||||
assert_equals(elements.length, 4);
|
||||
assert_equals(elements[0].id, "target");
|
||||
assert_equals(elements[1].id, "container");
|
||||
assert_equals(elements[2].nodeName, "BODY");
|
||||
assert_equals(elements[3].nodeName, "HTML");
|
||||
}, "elementsFromPoint should return all elements under a point");
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">
|
||||
<div id="container" style="width:200px; height:200px; writing-mode:horizontal-tb; direction:rtl;">
|
||||
<span id="target">target</span>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=> {
|
||||
var elements = document.elementsFromPoint(200, 15);
|
||||
assert_equals(elements.length, 4);
|
||||
assert_equals(elements[0].id, "target");
|
||||
assert_equals(elements[1].id, "container");
|
||||
assert_equals(elements[2].nodeName, "BODY");
|
||||
assert_equals(elements[3].nodeName, "HTML");
|
||||
}, "elementsFromPoint should return all elements under a point");
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">
|
||||
<div id="container" style="width:200px; height:200px; writing-mode:vertical-lr; direction:ltr;">
|
||||
<span id="target">target</span>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=> {
|
||||
var elements = document.elementsFromPoint(15, 15);
|
||||
assert_equals(elements.length, 4);
|
||||
assert_equals(elements[0].id, "target");
|
||||
assert_equals(elements[1].id, "container");
|
||||
assert_equals(elements[2].nodeName, "BODY");
|
||||
assert_equals(elements[3].nodeName, "HTML");
|
||||
}, "elementsFromPoint should return all elements under a point");
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">
|
||||
<div id="container" style="width:200px; height:200px; writing-mode:vertical-lr; direction:rtl;">
|
||||
<span id="target">target</span>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=> {
|
||||
var elements = document.elementsFromPoint(15, 200);
|
||||
assert_equals(elements.length, 4);
|
||||
assert_equals(elements[0].id, "target");
|
||||
assert_equals(elements[1].id, "container");
|
||||
assert_equals(elements[2].nodeName, "BODY");
|
||||
assert_equals(elements[3].nodeName, "HTML");
|
||||
}, "elementsFromPoint should return all elements under a point");
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">
|
||||
<div id="container" style="width:200px; height:200px; writing-mode:vertical-rl; direction:ltr;">
|
||||
<span id="target">target</span>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=> {
|
||||
var elements = document.elementsFromPoint(200, 15);
|
||||
assert_equals(elements.length, 4);
|
||||
assert_equals(elements[0].id, "target");
|
||||
assert_equals(elements[1].id, "container");
|
||||
assert_equals(elements[2].nodeName, "BODY");
|
||||
assert_equals(elements[3].nodeName, "HTML");
|
||||
}, "elementsFromPoint should return all elements under a point");
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">
|
||||
<div id="container" style="width:200px; height:200px; writing-mode:vertical-rl; direction:rtl;">
|
||||
<span id="target">target</span>
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=> {
|
||||
var elements = document.elementsFromPoint(200, 200);
|
||||
assert_equals(elements.length, 4);
|
||||
assert_equals(elements[0].id, "target");
|
||||
assert_equals(elements[1].id, "container");
|
||||
assert_equals(elements[2].nodeName, "BODY");
|
||||
assert_equals(elements[3].nodeName, "HTML");
|
||||
}, "elementsFromPoint should return all elements under a point");
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
|
||||
<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:horizontal-tb; direction:ltr;">
|
||||
<br id="child">
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=>{
|
||||
let r = document.getElementById("child").getClientRects()[0];
|
||||
assert_equals(r.left, 0);
|
||||
assert_greater_than_equal(r.top, 0);
|
||||
assert_less_than(r.top, 50);
|
||||
}, "Position of the BR element");
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
|
||||
<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:horizontal-tb; direction:rtl;">
|
||||
<br id="child">
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=>{
|
||||
let r = document.getElementById("child").getClientRects()[0];
|
||||
assert_equals(r.left, 200);
|
||||
assert_greater_than_equal(r.top, 0);
|
||||
assert_less_than(r.top, 50);
|
||||
}, "Position of the BR element");
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
|
||||
<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-lr; direction:ltr;">
|
||||
<br id="child">
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=>{
|
||||
let r = document.getElementById("child").getClientRects()[0];
|
||||
assert_greater_than_equal(r.left, 0);
|
||||
assert_less_than(r.left, 50);
|
||||
assert_equals(r.top, 0);
|
||||
}, "Position of the BR element");
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
|
||||
<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-lr; direction:rtl;">
|
||||
<br id="child">
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=>{
|
||||
let r = document.getElementById("child").getClientRects()[0];
|
||||
assert_greater_than_equal(r.left, 0);
|
||||
assert_less_than(r.left, 50);
|
||||
assert_equals(r.top, 100);
|
||||
}, "Position of the BR element");
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
|
||||
<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-rl; direction:ltr;">
|
||||
<br id="child">
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=>{
|
||||
let r = document.getElementById("child").getClientRects()[0];
|
||||
assert_greater_than(r.left, 150);
|
||||
assert_less_than(r.left, 200);
|
||||
assert_equals(r.top, 0);
|
||||
}, "Position of the BR element");
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
|
||||
<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-rl; direction:rtl;">
|
||||
<br id="child">
|
||||
</div>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(()=>{
|
||||
let r = document.getElementById("child").getClientRects()[0];
|
||||
assert_greater_than(r.left, 150);
|
||||
assert_less_than(r.left, 200);
|
||||
assert_equals(r.top, 100);
|
||||
}, "Position of the BR element");
|
||||
</script>
|
|
@ -0,0 +1,55 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
|
||||
<link rel="match" href="../reference/nothing.html">
|
||||
<style>
|
||||
.container {
|
||||
float: left;
|
||||
width: 8em;
|
||||
height: 7em;
|
||||
padding: 1em;
|
||||
color: red;
|
||||
}
|
||||
.correctionFluid {
|
||||
position: absolute;
|
||||
background: white;
|
||||
|
||||
/* Add some fluff to cover text ink-overflow. */
|
||||
outline:2px solid white;
|
||||
}
|
||||
</style>
|
||||
<p>There should be nothing below.</p>
|
||||
<div class="container" style="writing-mode:horizontal-tb;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-lr;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-rl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:horizontal-tb; direction:rtl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-lr; direction:rtl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-rl; direction:rtl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<script>
|
||||
// Create a white absolutely positioned box for each span.child
|
||||
// element and cover it.
|
||||
|
||||
let elements = document.querySelectorAll("span.child");
|
||||
elements.forEach((element)=> {
|
||||
let correctionFluid = document.createElement("div");
|
||||
correctionFluid.className = "correctionFluid";
|
||||
var r = element.getClientRects()[0];
|
||||
correctionFluid.style.left = r.left + "px";
|
||||
correctionFluid.style.top = r.top + "px";
|
||||
correctionFluid.style.width = r.width + "px";
|
||||
correctionFluid.style.height = r.height + "px";
|
||||
document.body.appendChild(correctionFluid);
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,54 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#extensions-to-the-htmlelement-interface">
|
||||
<link rel="match" href="../reference/nothing.html">
|
||||
<style>
|
||||
.container {
|
||||
float: left;
|
||||
width: 8em;
|
||||
height: 7em;
|
||||
padding: 1em;
|
||||
color: red;
|
||||
}
|
||||
.correctionFluid {
|
||||
position: absolute;
|
||||
background: white;
|
||||
|
||||
/* Add some fluff to cover text ink-overflow. */
|
||||
outline:2px solid white;
|
||||
}
|
||||
</style>
|
||||
<p>There should be nothing below.</p>
|
||||
<div class="container" style="writing-mode:horizontal-tb;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-lr;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-rl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:horizontal-tb; direction:rtl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-lr; direction:rtl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<div class="container" style="writing-mode:vertical-rl; direction:rtl;">
|
||||
<br><span class="child">FAIL</span>
|
||||
</div>
|
||||
<script>
|
||||
// Create a white absolutely positioned box for each span.child
|
||||
// element and cover it.
|
||||
|
||||
let elements = document.querySelectorAll("span.child");
|
||||
elements.forEach((element)=> {
|
||||
let correctionFluid = document.createElement("div");
|
||||
correctionFluid.className = "correctionFluid";
|
||||
correctionFluid.style.left = element.offsetLeft + "px";
|
||||
correctionFluid.style.top = element.offsetTop + "px";
|
||||
correctionFluid.style.width = element.offsetWidth + "px";
|
||||
correctionFluid.style.height = element.offsetHeight + "px";
|
||||
document.body.appendChild(correctionFluid);
|
||||
});
|
||||
</script>
|
|
@ -109,7 +109,7 @@
|
|||
}, "Scroll positions when aborting a smooth scrolling with another smooth scrolling");
|
||||
|
||||
promise_test(() => {
|
||||
return new Promise(function(resolve) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
resetScroll(overflowNode);
|
||||
var initialScrollAborted = false;
|
||||
var oldLeft = overflowNode.scrollLeft;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
}));
|
||||
|
||||
// Handle the case where the button is focused before the test runs.
|
||||
if (document.activeButtonement === button) {
|
||||
if (document.activeElement === button) {
|
||||
assert_equals(getComputedStyle(button).outlineColor, "rgb(0, 100, 0)");
|
||||
t.done();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue