mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision 78862c14a70cabb48c685144666912f08e726390
This commit is contained in:
parent
ce0b89d310
commit
1f5d8fedd4
2469 changed files with 193955 additions and 6210 deletions
|
@ -1,5 +1,6 @@
|
|||
// Up-to-date as of 2013-04-13.
|
||||
var obsoleteElements = {
|
||||
// https://html.spec.whatwg.org/multipage/#the-applet-element
|
||||
applet: {
|
||||
align: "string",
|
||||
alt: "string",
|
||||
|
@ -13,6 +14,7 @@ var obsoleteElements = {
|
|||
vspace: "unsigned long",
|
||||
width: "string",
|
||||
},
|
||||
// https://html.spec.whatwg.org/multipage/#the-marquee-element-2
|
||||
marquee: {
|
||||
behavior: "string",
|
||||
bgColor: "string",
|
||||
|
@ -25,10 +27,12 @@ var obsoleteElements = {
|
|||
vspace: "unsigned long",
|
||||
width: "string",
|
||||
},
|
||||
// https://html.spec.whatwg.org/multipage/#frameset
|
||||
frameset: {
|
||||
cols: "string",
|
||||
rows: "string",
|
||||
},
|
||||
// https://html.spec.whatwg.org/multipage/#frame
|
||||
frame: {
|
||||
name: "string",
|
||||
scrolling: "string",
|
||||
|
@ -39,9 +43,11 @@ var obsoleteElements = {
|
|||
marginHeight: {type: "string", treatNullAsEmptyString: true},
|
||||
marginWidth: {type: "string", treatNullAsEmptyString: true},
|
||||
},
|
||||
// https://html.spec.whatwg.org/multipage/#htmldirectoryelement
|
||||
dir: {
|
||||
compact: "boolean",
|
||||
},
|
||||
// https://html.spec.whatwg.org/multipage/#htmlfontelement
|
||||
font: {
|
||||
color: {type: "string", treatNullAsEmptyString: true},
|
||||
face: "string",
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following number, opposite direction</title>
|
||||
<link rel="author" title="Richard Ishida" href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel="match" href='reference/dir-isolation-001-ref.html'>
|
||||
<meta name="assert" content='Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="rtl">א</span> 3</div>
|
||||
<div dir="ltr"><span dir="rtl">a</span> 3</div>
|
||||
<div dir="rtl"><span dir="ltr">א</span> 3</div>
|
||||
<div dir="rtl"><span dir="ltr">a</span> 3</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א 3‬</div>
|
||||
<div dir="ltr">‭a 3‬</div>
|
||||
<div dir="rtl">‭3 א‬</div>
|
||||
<div dir="rtl">‭3 a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following number, auto</title>
|
||||
<link rel="author" title="Richard Ishida" href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel="match" href='reference/dir-isolation-001-ref.html'>
|
||||
<meta name="assert" content='Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="auto">א</span> 3</div>
|
||||
<div dir="ltr"><span dir="auto">a</span> 3</div>
|
||||
<div dir="rtl"><span dir="auto">א</span> 3</div>
|
||||
<div dir="rtl"><span dir="auto">a</span> 3</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א 3‬</div>
|
||||
<div dir="ltr">‭a 3‬</div>
|
||||
<div dir="rtl">‭3 א‬</div>
|
||||
<div dir="rtl">‭3 a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following number, same direction</title>
|
||||
<link rel="author" title="Richard Ishida" href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel="match" href='reference/dir-isolation-001-ref.html'>
|
||||
<meta name="assert" content='Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="ltr">א</span> 3</div>
|
||||
<div dir="ltr"><span dir="ltr">a</span> 3</div>
|
||||
<div dir="rtl"><span dir="rtl">א</span> 3</div>
|
||||
<div dir="rtl"><span dir="rtl">a</span> 3</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א 3‬</div>
|
||||
<div dir="ltr">‭a 3‬</div>
|
||||
<div dir="rtl">‭3 א‬</div>
|
||||
<div dir="rtl">‭3 a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following number with intervening neutrals, opposite direction</title>
|
||||
<link rel="author" title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-002a-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="rtl">> א ></span> > 3 ></div>
|
||||
<div dir="ltr"><span dir="rtl">> a ></span> > 3 ></div>
|
||||
<div dir="rtl"><span dir="ltr">> א ></span> > 3 ></div>
|
||||
<div dir="rtl"><span dir="ltr">> a ></span> > 3 ></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭< א < > 3 >‬</div>
|
||||
<div dir="ltr">‭< a < > 3 >‬</div>
|
||||
<div dir="rtl">‭< 3 < > א >‬</div>
|
||||
<div dir="rtl">‭< 3 < > a >‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following number with intervening neutrals, auto</title>
|
||||
<link rel="author" title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-002b-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="auto">> א ></span> > 3 ></div>
|
||||
<div dir="ltr"><span dir="auto">> a ></span> > 3 ></div>
|
||||
<div dir="rtl"><span dir="auto">> א ></span> > 3 ></div>
|
||||
<div dir="rtl"><span dir="auto">> a ></span> > 3 ></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭< א < > 3 >‬</div>
|
||||
<div dir="ltr">‭> a > > 3 >‬</div>
|
||||
<div dir="rtl">‭< 3 < < א <‬</div>
|
||||
<div dir="rtl">‭< 3 < > a >‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following number with intervening neutrals, same direction</title>
|
||||
<link rel="author" title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-002c-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from a following number.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="ltr">> א ></span> > 3 ></div>
|
||||
<div dir="ltr"><span dir="ltr">> a ></span> > 3 ></div>
|
||||
<div dir="rtl"><span dir="rtl">> א ></span> > 3 ></div>
|
||||
<div dir="rtl"><span dir="rtl">> a ></span> > 3 ></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭> א > > 3 >‬</div>
|
||||
<div dir="ltr">‭> a > > 3 >‬</div>
|
||||
<div dir="rtl">‭< 3 < < א <‬</div>
|
||||
<div dir="rtl">‭< 3 < < a <‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from immediately following number, opposite direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-003-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="rtl">א</span>3</div>
|
||||
<div dir="ltr"><span dir="rtl">a</span>3</div>
|
||||
<div dir="rtl"><span dir="ltr">א</span>3</div>
|
||||
<div dir="rtl"><span dir="ltr">a</span>3</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א3‬</div>
|
||||
<div dir="ltr">‭a3‬</div>
|
||||
<div dir="rtl">‭3א‬</div>
|
||||
<div dir="rtl">‭3a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from immediately following number, auto</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-003-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="auto">א</span>3</div>
|
||||
<div dir="ltr"><span dir="auto">a</span>3</div>
|
||||
<div dir="rtl"><span dir="auto">א</span>3</div>
|
||||
<div dir="rtl"><span dir="auto">a</span>3</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א3‬</div>
|
||||
<div dir="ltr">‭a3‬</div>
|
||||
<div dir="rtl">‭3א‬</div>
|
||||
<div dir="rtl">‭3a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from immediately following number, same direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-003-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and is directionally isolated from a following number, even with no intervening white space.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="ltr">א</span>3</div>
|
||||
<div dir="ltr"><span dir="ltr">a</span>3</div>
|
||||
<div dir="rtl"><span dir="rtl">א</span>3</div>
|
||||
<div dir="rtl"><span dir="rtl">a</span>3</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א3‬</div>
|
||||
<div dir="ltr">‭a3‬</div>
|
||||
<div dir="rtl">‭3א‬</div>
|
||||
<div dir="rtl">‭3a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: numbers isolated from preceding text, opposite direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-004-ref.html'>
|
||||
<meta name='assert' content='Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א <span dir="rtl">3</span></div>
|
||||
<div dir="ltr">a <span dir="rtl">3</span></div>
|
||||
<div dir="rtl">א <span dir="ltr">3</span></div>
|
||||
<div dir="rtl">a <span dir="ltr">3</span></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א 3‬</div>
|
||||
<div dir="ltr">‭a 3‬</div>
|
||||
<div dir="rtl">‭3 א‬</div>
|
||||
<div dir="rtl">‭3 a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: numbers isolated from preceding text, auto</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-004-ref.html'>
|
||||
<meta name='assert' content='Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א <span dir="auto">3</span></div>
|
||||
<div dir="ltr">a <span dir="auto">3</span></div>
|
||||
<div dir="rtl">א <span dir="auto">3</span></div>
|
||||
<div dir="rtl">a <span dir="auto">3</span></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א 3‬</div>
|
||||
<div dir="ltr">‭a 3‬</div>
|
||||
<div dir="rtl">‭3 א‬</div>
|
||||
<div dir="rtl">‭3 a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: numbers isolated from preceding text, same direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-004-ref.html'>
|
||||
<meta name='assert' content='Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א <span dir="ltr">3</span></div>
|
||||
<div dir="ltr">a <span dir="ltr">3</span></div>
|
||||
<div dir="rtl">א <span dir="rtl">3</span></div>
|
||||
<div dir="rtl">a <span dir="rtl">3</span></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א 3‬</div>
|
||||
<div dir="ltr">‭a 3‬</div>
|
||||
<div dir="rtl">‭3 א‬</div>
|
||||
<div dir="rtl">‭3 a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following text, opposite direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-005-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="rtl">א</span> ב...</div>
|
||||
<div dir="ltr"><span dir="rtl">a</span> b...</div>
|
||||
<div dir="rtl"><span dir="ltr">a</span> b...</div>
|
||||
<div dir="rtl"><span dir="ltr">א</span> ב...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א ב...‬</div>
|
||||
<div dir="ltr">‭a b...‬</div>
|
||||
<div dir="rtl">‭...b a‬</div>
|
||||
<div dir="rtl">‭...ב א‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following text, auto</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-005-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="auto">א</span> ב...</div>
|
||||
<div dir="ltr"><span dir="auto">a</span> b...</div>
|
||||
<div dir="rtl"><span dir="auto">a</span> b...</div>
|
||||
<div dir="rtl"><span dir="auto">א</span> ב...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א ב...‬</div>
|
||||
<div dir="ltr">‭a b...‬</div>
|
||||
<div dir="rtl">‭...b a‬</div>
|
||||
<div dir="rtl">‭...ב א‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following text, same direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-005-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="ltr">א</span> ב...</div>
|
||||
<div dir="ltr"><span dir="ltr">a</span> b...</div>
|
||||
<div dir="rtl"><span dir="rtl">a</span> b...</div>
|
||||
<div dir="rtl"><span dir="rtl">א</span> ב...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א ב...‬</div>
|
||||
<div dir="ltr">‭a b...‬</div>
|
||||
<div dir="rtl">‭...b a‬</div>
|
||||
<div dir="rtl">‭...ב א‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following text with intervening neutrals, opposite direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-006-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="rtl">> א ></span> > ב >...</div>
|
||||
<div dir="rtl"><span dir="ltr">> a ></span> > b >...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭< א < > ב >...‬</div>
|
||||
<div dir="rtl">‭...< b < > a >‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following text with intervening neutrals, auto</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-006-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="auto">> א ></span> > ב >...</div>
|
||||
<div dir="rtl"><span dir="auto">> a ></span> > b >...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭< א < > ב >...‬</div>
|
||||
<div dir="rtl">‭...< b < > a >‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from following text with intervening neutrals, same direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-006c-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text despite intervening neutrals.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="ltr">> א ></span> > ב >...</div>
|
||||
<div dir="rtl"><span dir="rtl">> a ></span> > b >...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭> א > > ב >...‬</div>
|
||||
<div dir="rtl">‭...< b < < a <‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from immediately following text, opposite direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-007-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="rtl">א</span>ב...</div>
|
||||
<div dir="ltr"><span dir="rtl">a</span>b...</div>
|
||||
<div dir="rtl"><span dir="ltr">a</span>b...</div>
|
||||
<div dir="rtl"><span dir="ltr">א</span>ב...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭אב...‬</div>
|
||||
<div dir="ltr">‭ab...‬</div>
|
||||
<div dir="rtl">‭...ba‬</div>
|
||||
<div dir="rtl">‭...בא‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from immediately following text, auto</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-007-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="auto">א</span>ב...</div>
|
||||
<div dir="ltr"><span dir="auto">a</span>b...</div>
|
||||
<div dir="rtl"><span dir="auto">a</span>b...</div>
|
||||
<div dir="rtl"><span dir="auto">א</span>ב...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭אב...‬</div>
|
||||
<div dir="ltr">‭ab...‬</div>
|
||||
<div dir="rtl">‭...ba‬</div>
|
||||
<div dir="rtl">‭...בא‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from immediately following text, same direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-007-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from following text even with no intervening white space.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr"><span dir="ltr">א</span>ב...</div>
|
||||
<div dir="ltr"><span dir="ltr">a</span>b...</div>
|
||||
<div dir="rtl"><span dir="rtl">a</span>b...</div>
|
||||
<div dir="rtl"><span dir="rtl">א</span>ב...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭אב...‬</div>
|
||||
<div dir="ltr">‭ab...‬</div>
|
||||
<div dir="rtl">‭...ba‬</div>
|
||||
<div dir="rtl">‭...בא‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from preceding text, opposite direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-008-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א <span dir="rtl">ב</span></div>
|
||||
<div dir="ltr">a <span dir="rtl">b</span></div>
|
||||
<div dir="rtl">א <span dir="ltr">ב</span></div>
|
||||
<div dir="rtl">a <span dir="ltr">b</span></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א ב‬</div>
|
||||
<div dir="ltr">‭a b‬</div>
|
||||
<div dir="rtl">‭ב א‬</div>
|
||||
<div dir="rtl">‭b a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from preceding text, auto</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-008-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א <span dir="auto">ב</span></div>
|
||||
<div dir="ltr">a <span dir="auto">b</span></div>
|
||||
<div dir="rtl">א <span dir="auto">ב</span></div>
|
||||
<div dir="rtl">a <span dir="auto">b</span></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א ב‬</div>
|
||||
<div dir="ltr">‭a b‬</div>
|
||||
<div dir="rtl">‭ב א‬</div>
|
||||
<div dir="rtl">‭b a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>The dir attribute: isolated from preceding text, same direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-008-ref.html'>
|
||||
<meta name='assert' content='Element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.'>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!--Notes:
|
||||
Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א <span dir="ltr">ב</span></div>
|
||||
<div dir="ltr">a <span dir="ltr">b</span></div>
|
||||
<div dir="rtl">א <span dir="rtl">ב</span></div>
|
||||
<div dir="rtl">a <span dir="rtl">b</span></div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭א ב‬</div>
|
||||
<div dir="ltr">‭a b‬</div>
|
||||
<div dir="rtl">‭ב א‬</div>
|
||||
<div dir="rtl">‭b a‬</div>
|
||||
</div>
|
||||
</body></html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" >
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from surrounding text, opposite direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-009-ref.html'>
|
||||
<meta name='assert' content="Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.">
|
||||
<style type='text/css'>
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!-- Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
If the BDI in the test's first DIV were a SPAN, its b would prevent the א and the ב
|
||||
from forming a single RTL run and thus keep the >s between from being mirrored into <s.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א > <span dir="rtl">> b ></span> > ג...</div>
|
||||
<div dir="rtl">a > <span dir="ltr">> ב ></span> > c...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭ג < < b < < א...‬</div>
|
||||
<div dir="rtl">‭...a > > ב > > c‬</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" >
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from surrounding text, auto</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-009b-ref.html'>
|
||||
<meta name='assert' content="Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.">
|
||||
<style type='text/css'>
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!-- Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
If the BDI in the test's first DIV were a SPAN, its b would prevent the א and the ב
|
||||
from forming a single RTL run and thus keep the >s between from being mirrored into <s.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א > <span dir="auto">> b ></span> > ג...</div>
|
||||
<div dir="rtl">a > <span dir="auto">> ב ></span> > c...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭ג < > b > < א...‬</div>
|
||||
<div dir="rtl">‭...a > < ב < > c‬</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" >
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from surrounding text, same direction</title>
|
||||
<link rel='author' title='Richard Ishida' href='mailto:ishida@w3.org'>
|
||||
<link rel="help" href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'>
|
||||
<link rel='match' href='reference/dir-isolation-009b-ref.html'>
|
||||
<meta name='assert' content="Element content with a dir attribute is treated as a neutral character and directionally isolated from surrounding text.">
|
||||
<style type='text/css'>
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<!-- Key to entities used below:
|
||||
א ... ו - The first six Hebrew letters (strongly RTL).
|
||||
‭ - The LRO (left-to-right-override) formatting character.
|
||||
‬ - The PDF (pop directional formatting) formatting character; closes LRO.
|
||||
If the BDI in the test's first DIV were a SPAN, its b would prevent the א and the ב
|
||||
from forming a single RTL run and thus keep the >s between from being mirrored into <s.
|
||||
-->
|
||||
<div class="test">
|
||||
<div dir="ltr">א > <span dir="ltr">> b ></span> > ג...</div>
|
||||
<div dir="rtl">a > <span dir="rtl">> ב ></span> > c...</div>
|
||||
</div>
|
||||
<div class="ref">
|
||||
<div dir="ltr">‭ג < > b > < א...‬</div>
|
||||
<div dir="rtl">‭...a > < ב < > c‬</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from following number, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭א 3‬</div><div dir="ltr">‭a 3‬</div><div dir="rtl">‭3 א‬</div><div dir="rtl">‭3 a‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭א 3‬</div><div dir="ltr">‭a 3‬</div><div dir="rtl">‭3 א‬</div><div dir="rtl">‭3 a‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from following number with intervening neutrals, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭< א < > 3 >‬</div><div dir="ltr">‭< a < > 3 >‬</div><div dir="rtl">‭< 3 < > א >‬</div><div dir="rtl">‭< 3 < > a >‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭< א < > 3 >‬</div><div dir="ltr">‭< a < > 3 >‬</div><div dir="rtl">‭< 3 < > א >‬</div><div dir="rtl">‭< 3 < > a >‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from following number with intervening neutrals, auto</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭< א < > 3 >‬</div><div dir="ltr">‭> a > > 3 >‬</div><div dir="rtl">‭< 3 < < א <‬</div><div dir="rtl">‭< 3 < > a >‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭< א < > 3 >‬</div><div dir="ltr">‭> a > > 3 >‬</div><div dir="rtl">‭< 3 < < א <‬</div><div dir="rtl">‭< 3 < > a >‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from following number with intervening neutrals, same direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭> א > > 3 >‬</div><div dir="ltr">‭> a > > 3 >‬</div><div dir="rtl">‭< 3 < < א <‬</div><div dir="rtl">‭< 3 < < a <‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭> א > > 3 >‬</div><div dir="ltr">‭> a > > 3 >‬</div><div dir="rtl">‭< 3 < < א <‬</div><div dir="rtl">‭< 3 < < a <‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from immediately following number, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭א3‬</div><div dir="ltr">‭a3‬</div><div dir="rtl">‭3א‬</div><div dir="rtl">‭3a‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭א3‬</div><div dir="ltr">‭a3‬</div><div dir="rtl">‭3א‬</div><div dir="rtl">‭3a‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: numbers isolated from preceding text, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭א 3‬</div><div dir="ltr">‭a 3‬</div><div dir="rtl">‭3 א‬</div><div dir="rtl">‭3 a‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭א 3‬</div><div dir="ltr">‭a 3‬</div><div dir="rtl">‭3 א‬</div><div dir="rtl">‭3 a‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from following text, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭א ב...‬</div><div dir="ltr">‭a b...‬</div><div dir="rtl">‭...b a‬</div><div dir="rtl">‭...ב א‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭א ב...‬</div><div dir="ltr">‭a b...‬</div><div dir="rtl">‭...b a‬</div><div dir="rtl">‭...ב א‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from following text with intervening neutrals, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭< א < > ב >...‬</div><div dir="rtl">‭...< b < > a >‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭< א < > ב >...‬</div><div dir="rtl">‭...< b < > a >‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from following text with intervening neutrals, same direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭> א > > ב >...‬</div><div dir="rtl">‭...< b < < a <‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭> א > > ב >...‬</div><div dir="rtl">‭...< b < < a <‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from immediately following text, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭אב...‬</div><div dir="ltr">‭ab...‬</div><div dir="rtl">‭...ba‬</div><div dir="rtl">‭...בא‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭אב...‬</div><div dir="ltr">‭ab...‬</div><div dir="rtl">‭...ba‬</div><div dir="rtl">‭...בא‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from preceding text, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭א ב‬</div><div dir="ltr">‭a b‬</div><div dir="rtl">‭ב א‬</div><div dir="rtl">‭b a‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭א ב‬</div><div dir="ltr">‭a b‬</div><div dir="rtl">‭ב א‬</div><div dir="rtl">‭b a‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from surrounding text, opposite direction</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭ג < < b < < א...‬</div><div dir="rtl">‭...a > > ב > > c‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭ג < < b < < א...‬</div><div dir="rtl">‭...a > > ב > > c‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>The dir attribute: isolated from surrounding text, auto</title>
|
||||
<style type="text/css">
|
||||
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; margin-right: 200px; padding: 5px; clear: both; }
|
||||
input { margin: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
|
||||
<div class="ref"><div dir="ltr">‭ג < > b > < א...‬</div><div dir="rtl">‭...a > < ב < > c‬</div></div>
|
||||
<div class="ref"><div dir="ltr">‭ג < > b > < א...‬</div><div dir="rtl">‭...a > < ב < > c‬</div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -911,7 +911,7 @@ interface PropertyNodeList : NodeList {
|
|||
PropertyValueArray getValues();
|
||||
};
|
||||
|
||||
[OverrideBuiltins, Exposed=Window,Worker]
|
||||
[OverrideBuiltins, Exposed=(Window,Worker)]
|
||||
interface DOMStringMap {
|
||||
getter DOMString (DOMString name);
|
||||
setter creator void (DOMString name, DOMString value);
|
||||
|
@ -1977,7 +1977,7 @@ interface HTMLCanvasElement : HTMLElement {
|
|||
void toBlob(FileCallback? _callback, optional DOMString type, any... arguments);
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface CanvasProxy {
|
||||
void setContext(RenderingContext context);
|
||||
};
|
||||
|
@ -1991,7 +1991,7 @@ typedef (HTMLImageElement or
|
|||
|
||||
enum CanvasFillRule { "nonzero", "evenodd" };
|
||||
|
||||
[Constructor(optional unsigned long width, unsigned long height), Exposed=Window,Worker]
|
||||
[Constructor(optional unsigned long width, unsigned long height), Exposed=(Window,Worker)]
|
||||
interface CanvasRenderingContext2D {
|
||||
|
||||
// back-reference to the canvas
|
||||
|
@ -2086,7 +2086,7 @@ interface CanvasRenderingContext2D {
|
|||
CanvasRenderingContext2D implements CanvasDrawingStyles;
|
||||
CanvasRenderingContext2D implements CanvasPathMethods;
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface CanvasDrawingStyles {
|
||||
// line caps/joins
|
||||
attribute unrestricted double lineWidth; // (default 1)
|
||||
|
@ -2106,7 +2106,7 @@ interface CanvasDrawingStyles {
|
|||
attribute DOMString direction; // "ltr", "rtl", "inherit" (default: "inherit")
|
||||
};
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface CanvasPathMethods {
|
||||
// shared path API methods
|
||||
void closePath();
|
||||
|
@ -2121,19 +2121,19 @@ interface CanvasPathMethods {
|
|||
void ellipse(unrestricted double x, unrestricted double y, unrestricted double radiusX, unrestricted double radiusY, unrestricted double rotation, unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface CanvasGradient {
|
||||
// opaque object
|
||||
void addColorStop(double offset, DOMString color);
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface CanvasPattern {
|
||||
// opaque object
|
||||
void setTransform(SVGMatrix transform);
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface TextMetrics {
|
||||
// x-direction
|
||||
readonly attribute double width; // advance width
|
||||
|
@ -2167,21 +2167,21 @@ dictionary HitRegionOptions {
|
|||
|
||||
[Constructor(unsigned long sw, unsigned long sh),
|
||||
Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh),
|
||||
Exposed=Window,Worker]
|
||||
Exposed=(Window,Worker)]
|
||||
interface ImageData {
|
||||
readonly attribute unsigned long width;
|
||||
readonly attribute unsigned long height;
|
||||
readonly attribute Uint8ClampedArray data;
|
||||
};
|
||||
|
||||
[Constructor(optional Element scope), Exposed=Window,Worker]
|
||||
[Constructor(optional Element scope), Exposed=(Window,Worker)]
|
||||
interface DrawingStyle { };
|
||||
DrawingStyle implements CanvasDrawingStyles;
|
||||
|
||||
[Constructor,
|
||||
Constructor(Path2D path),
|
||||
Constructor(Path2D[] paths, optional CanvasFillRule fillRule = "nonzero"),
|
||||
Constructor(DOMString d), Exposed=Window,Worker]
|
||||
Constructor(DOMString d), Exposed=(Window,Worker)]
|
||||
interface Path2D {
|
||||
void addPath(Path2D path, optional SVGMatrix? transformation = null);
|
||||
void addPathByStrokingPath(Path2D path, CanvasDrawingStyles styles, optional SVGMatrix? transformation = null);
|
||||
|
@ -2337,7 +2337,7 @@ interface History {
|
|||
[SameObject] readonly attribute USVString[] ancestorOrigins;
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional PopStateEventInit eventInitDict), Exposed=Window,Worker]
|
||||
[Constructor(DOMString type, optional PopStateEventInit eventInitDict), Exposed=(Window,Worker)]
|
||||
interface PopStateEvent : Event {
|
||||
readonly attribute any state;
|
||||
};
|
||||
|
@ -2346,7 +2346,7 @@ dictionary PopStateEventInit : EventInit {
|
|||
any state;
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional HashChangeEventInit eventInitDict), Exposed=Window,Worker]
|
||||
[Constructor(DOMString type, optional HashChangeEventInit eventInitDict), Exposed=(Window,Worker)]
|
||||
interface HashChangeEvent : Event {
|
||||
readonly attribute DOMString oldURL;
|
||||
readonly attribute DOMString newURL;
|
||||
|
@ -2357,7 +2357,7 @@ dictionary HashChangeEventInit : EventInit {
|
|||
DOMString newURL;
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional PageTransitionEventInit eventInitDict), Exposed=Window,Worker]
|
||||
[Constructor(DOMString type, optional PageTransitionEventInit eventInitDict), Exposed=(Window,Worker)]
|
||||
interface PageTransitionEvent : Event {
|
||||
readonly attribute boolean persisted;
|
||||
};
|
||||
|
@ -2398,12 +2398,12 @@ interface ApplicationCache : EventTarget {
|
|||
attribute EventHandler onobsolete;
|
||||
};
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface NavigatorOnLine {
|
||||
readonly attribute boolean onLine;
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional ErrorEventInit eventInitDict), Exposed=Window,Worker]
|
||||
[Constructor(DOMString type, optional ErrorEventInit eventInitDict), Exposed=(Window,Worker)]
|
||||
interface ErrorEvent : Event {
|
||||
readonly attribute DOMString message;
|
||||
readonly attribute DOMString filename;
|
||||
|
@ -2516,14 +2516,14 @@ interface WindowEventHandlers {
|
|||
attribute EventHandler onunload;
|
||||
};
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowBase64 {
|
||||
DOMString btoa(DOMString btoa);
|
||||
DOMString atob(DOMString atob);
|
||||
};
|
||||
Window implements WindowBase64;
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowTimers {
|
||||
long setTimeout(Function handler, optional long timeout = 0, any... arguments);
|
||||
long setTimeout(DOMString handler, optional long timeout = 0, any... arguments);
|
||||
|
@ -2550,7 +2550,7 @@ Navigator implements NavigatorContentUtils;
|
|||
Navigator implements NavigatorStorageUtils;
|
||||
Navigator implements NavigatorPlugins;
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface NavigatorID {
|
||||
readonly attribute DOMString appCodeName; // constant "Mozilla"
|
||||
readonly attribute DOMString appName;
|
||||
|
@ -2561,7 +2561,7 @@ interface NavigatorID {
|
|||
readonly attribute DOMString userAgent;
|
||||
};
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface NavigatorLanguage {
|
||||
readonly attribute DOMString? language;
|
||||
readonly attribute DOMString[] languages;
|
||||
|
@ -2625,7 +2625,7 @@ interface External {
|
|||
unsigned long IsSearchProviderInstalled(DOMString engineURL);
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface ImageBitmap {
|
||||
readonly attribute unsigned long width;
|
||||
readonly attribute unsigned long height;
|
||||
|
@ -2639,14 +2639,14 @@ typedef (HTMLImageElement or
|
|||
CanvasRenderingContext2D or
|
||||
ImageBitmap) ImageBitmapSource;
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface ImageBitmapFactories {
|
||||
Promise createImageBitmap(ImageBitmapSource image, optional long sx, long sy, long sw, long sh);
|
||||
};
|
||||
Window implements ImageBitmapFactories;
|
||||
WorkerGlobalScope implements ImageBitmapFactories;
|
||||
|
||||
[Constructor(DOMString type, optional MessageEventInit eventInitDict), Exposed=Window,Worker]
|
||||
[Constructor(DOMString type, optional MessageEventInit eventInitDict), Exposed=(Window,Worker)]
|
||||
interface MessageEvent : Event {
|
||||
readonly attribute any data;
|
||||
readonly attribute DOMString origin;
|
||||
|
@ -2665,7 +2665,7 @@ dictionary MessageEventInit : EventInit {
|
|||
sequence<MessagePort> ports;
|
||||
};
|
||||
|
||||
[Constructor(DOMString url, optional EventSourceInit eventSourceInitDict), Exposed=Window,Worker]
|
||||
[Constructor(DOMString url, optional EventSourceInit eventSourceInitDict), Exposed=(Window,Worker)]
|
||||
interface EventSource : EventTarget {
|
||||
readonly attribute DOMString url;
|
||||
readonly attribute boolean withCredentials;
|
||||
|
@ -2688,7 +2688,7 @@ dictionary EventSourceInit {
|
|||
};
|
||||
|
||||
enum BinaryType { "blob", "arraybuffer" };
|
||||
[Constructor(DOMString url, optional (DOMString or DOMString[]) protocols), Exposed=Window,Worker]
|
||||
[Constructor(DOMString url, optional (DOMString or DOMString[]) protocols), Exposed=(Window,Worker)]
|
||||
interface WebSocket : EventTarget {
|
||||
readonly attribute DOMString url;
|
||||
|
||||
|
@ -2701,23 +2701,23 @@ interface WebSocket : EventTarget {
|
|||
readonly attribute unsigned long bufferedAmount;
|
||||
|
||||
// networking
|
||||
attribute EventHandler onopen;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onclose;
|
||||
attribute EventHandler onopen;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onclose;
|
||||
readonly attribute DOMString extensions;
|
||||
readonly attribute DOMString protocol;
|
||||
void close([Clamp] optional unsigned short code, optional DOMString reason);
|
||||
void close([Clamp] optional unsigned short code, optional USVString reason);
|
||||
|
||||
// messaging
|
||||
attribute EventHandler onmessage;
|
||||
attribute BinaryType binaryType;
|
||||
void send(DOMString data);
|
||||
attribute EventHandler onmessage;
|
||||
attribute BinaryType binaryType;
|
||||
void send(USVString data);
|
||||
void send(Blob data);
|
||||
void send(ArrayBuffer data);
|
||||
void send(ArrayBufferView data);
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional CloseEventInit eventInitDict), Exposed=Window,Worker]
|
||||
[Constructor(DOMString type, optional CloseEventInit eventInitDict), Exposed=(Window,Worker)]
|
||||
interface CloseEvent : Event {
|
||||
readonly attribute boolean wasClean;
|
||||
readonly attribute unsigned short code;
|
||||
|
@ -2730,13 +2730,13 @@ dictionary CloseEventInit : EventInit {
|
|||
DOMString reason;
|
||||
};
|
||||
|
||||
[Constructor, Exposed=Window,Worker]
|
||||
[Constructor, Exposed=(Window,Worker)]
|
||||
interface MessageChannel {
|
||||
readonly attribute MessagePort port1;
|
||||
readonly attribute MessagePort port2;
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface MessagePort : EventTarget {
|
||||
void postMessage(any message, optional sequence<Transferable> transfer);
|
||||
void start();
|
||||
|
@ -2747,7 +2747,7 @@ interface MessagePort : EventTarget {
|
|||
};
|
||||
// MessagePort implements Transferable;
|
||||
|
||||
[Constructor, Exposed=Window,Worker]
|
||||
[Constructor, Exposed=(Window,Worker)]
|
||||
interface PortCollection {
|
||||
void add(MessagePort port);
|
||||
void remove(MessagePort port);
|
||||
|
@ -2757,7 +2757,7 @@ interface PortCollection {
|
|||
|
||||
callback PortCollectionCallback = void (MessagePort port);
|
||||
|
||||
[Constructor(DOMString channel), Exposed=Window,Worker]
|
||||
[Constructor(DOMString channel), Exposed=(Window,Worker)]
|
||||
interface BroadcastChannel : EventTarget {
|
||||
readonly attribute DOMString name;
|
||||
void postMessage(any message);
|
||||
|
@ -2792,12 +2792,12 @@ interface WorkerGlobalScope : EventTarget {
|
|||
attribute EventHandler onconnect;
|
||||
};
|
||||
|
||||
[NoInterfaceObject, Exposed=Window,Worker]
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface AbstractWorker {
|
||||
attribute EventHandler onerror;
|
||||
};
|
||||
|
||||
[Constructor(DOMString scriptURL), Exposed=Window,Worker]
|
||||
[Constructor(DOMString scriptURL), Exposed=(Window,Worker)]
|
||||
interface Worker : EventTarget {
|
||||
void terminate();
|
||||
|
||||
|
@ -2806,7 +2806,7 @@ interface Worker : EventTarget {
|
|||
};
|
||||
Worker implements AbstractWorker;
|
||||
|
||||
[Constructor(DOMString scriptURL, optional DOMString name), Exposed=Window,Worker]
|
||||
[Constructor(DOMString scriptURL, optional DOMString name), Exposed=(Window,Worker)]
|
||||
interface SharedWorker : EventTarget {
|
||||
readonly attribute MessagePort port;
|
||||
};
|
||||
|
@ -3388,6 +3388,8 @@ window.onload = function() {
|
|||
PeerConnection: [],
|
||||
MediaStreamEvent: [],
|
||||
ErrorEvent: [],
|
||||
WebSocket: ['new WebSocket("ws://foo")'],
|
||||
CloseEvent: ['new CloseEvent("close")'],
|
||||
AbstractWorker: [],
|
||||
Worker: [],
|
||||
SharedWorker: [],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue