mirror of
https://github.com/servo/servo.git
synced 2025-08-27 16:18:21 +01:00
Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d
This commit is contained in:
parent
3f07cfec7c
commit
578498ba24
4001 changed files with 159517 additions and 30260 deletions
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Reference file for spellcheck tests</title>
|
||||
|
||||
<div>This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck on editing hosts</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to editing hosts when they become non editable">
|
||||
|
||||
<div id="test" contenteditable=true>This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.</div>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); //alternative to forceSpellCheck(), due to general lack of support
|
||||
test.removeAttribute("contenteditable");
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck on editable elements</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to editable elements when they become non editable">
|
||||
|
||||
<div id="test" contenteditable=true>This test passes if there is no visual marker indicating the <span id=child>spellinnnnnggg</span> mistake in this sentence, and fails otherwise.</div>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
var child = document.getElementById("child");
|
||||
child.setAttribute("contenteditable", false);
|
||||
</script>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck on editing hosts while keeping them editable</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to editing hosts when the spellcheck attribute becomes false">
|
||||
|
||||
<div id="test" spellcheck=true contenteditable=true>This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.</div>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
test.setAttribute("spellcheck", false);
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck on editable elements while keeping them editable</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to editable elements when the spellcheck attribute becomes false">
|
||||
|
||||
<div id="test" spellcheck=true contenteditable=true>This test passes if there is no visual marker indicating the <span id=child>spellinnnnnggg</span> mistake in this sentence, and fails otherwise.</div>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
var child = document.getElementById("child");
|
||||
child.setAttribute("spellcheck", false);
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck on editable elements via an ancestor</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to editable elements when the spellcheck attribute becomes false on an ancestor">
|
||||
|
||||
<div id="test" contenteditable=true>This test passes if there is no visual marker indicating the <span id=child><span>spellinnnnnggg</span></span> mistake in this sentence, and fails otherwise.</div>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
var child = document.getElementById("child");
|
||||
child.setAttribute("spellcheck", false);
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck via an ancestor of the editing host</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying when the spellcheck attribute becomes false on an ancestor, without restrcting the search to the nearest editing host">
|
||||
|
||||
<div id=parent>
|
||||
<div id=test contenteditable=true>This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
var p = document.getElementById("parent");
|
||||
p.setAttribute("spellcheck", false);
|
||||
</script>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck by making textareas readonly</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to textareas when they become readonly">
|
||||
|
||||
<style>
|
||||
#test {
|
||||
/* Match the ref */
|
||||
all: initial;
|
||||
width: 100%;
|
||||
display: block;
|
||||
font-family: inherit;
|
||||
}
|
||||
</style>
|
||||
|
||||
<textarea id=test>This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.</textarea>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
test.setAttribute("readonly", true);
|
||||
</script>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck by making textareas disabled</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to textareas when they become disabled">
|
||||
|
||||
<style>
|
||||
#test {
|
||||
/* Match the ref */
|
||||
all: initial;
|
||||
width: 100%;
|
||||
display: block;
|
||||
font-family: inherit;
|
||||
}
|
||||
</style>
|
||||
|
||||
<textarea id=test>This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.</textarea>
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
test.setAttribute("disabled", true);
|
||||
</script>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck by making input elements readonly</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to input elements when they become readonly">
|
||||
|
||||
<style>
|
||||
#test {
|
||||
/* Match the ref */
|
||||
all: initial;
|
||||
width: 100%;
|
||||
display: block;
|
||||
font-family: inherit;
|
||||
}
|
||||
</style>
|
||||
|
||||
<input type=text id=test value="This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.">
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
test.setAttribute("readonly", true);
|
||||
</script>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Turning off spellcheck by making input elements disabled</title>
|
||||
<link rel=match href="references/spelling-markers-001-ref.html">
|
||||
<link rel=help href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking">
|
||||
<meta name=assert content="Spellchecking stops applying to input elements when they become disabled">
|
||||
|
||||
<style>
|
||||
#test {
|
||||
/* Match the ref */
|
||||
all: initial;
|
||||
width: 100%;
|
||||
display: block;
|
||||
font-family: inherit;
|
||||
}
|
||||
</style>
|
||||
|
||||
<input type=text id=test value="This test passes if there is no visual marker indicating the spellinnnnnggg mistake in this sentence, and fails otherwise.">
|
||||
|
||||
<script>
|
||||
var test = document.getElementById("test");
|
||||
test.focus(); test.blur(); // Alternative to forceSpellCheck(), due to general lack of support
|
||||
test.setAttribute("disabled", true);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue