mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update CSS tests to revision 7d0ff6117ee51720c307ea24d413d13eb5abf3e6
This commit is contained in:
parent
40c52d55e2
commit
349c75536d
7391 changed files with 304135 additions and 153491 deletions
|
@ -1,44 +1,44 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSSOM View Module test:CaretPosition</title>
|
||||
<link href="mailto:tidelgl@gmail.com" rel="author" title="unbug">
|
||||
<link href="http://www.w3.org/TR/cssom-view/#the-caretposition-interface" rel="help">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style type="text/css">
|
||||
.box{
|
||||
position: absolute;
|
||||
top : 100px;
|
||||
left : 400px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: #000;
|
||||
}
|
||||
</style>
|
||||
<title>CSSOM View Module test:CaretPosition</title>
|
||||
<link href="mailto:tidelgl@gmail.com" rel="author" title="unbug">
|
||||
<link href="https://drafts.csswg.org/cssom-view-1/#dom-document-elementfrompoint" rel="help">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style type="text/css">
|
||||
.box{
|
||||
position: absolute;
|
||||
top : 100px;
|
||||
left : 400px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: #000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>This case tests the Screen pixelDepth and colorDepth</p>
|
||||
<p>The test passes if the value is Element "#box2"</p>
|
||||
<div class="box" id="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box" id="box2"></div>
|
||||
<div style="left: 405px;background:red;" class="box" id="box3"></div>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function(){
|
||||
assert_equals(getBox('box2'), document.elementFromPoint(400,100), "Expected value for element id is 'box2'");
|
||||
},'getBox');
|
||||
test(function(){
|
||||
assert_equals(null, document.elementFromPoint(400,900), "Expected value for element id is 'box2'");
|
||||
},'getBox');
|
||||
function getBox(id){
|
||||
return document.getElementById(id);
|
||||
}
|
||||
</script>
|
||||
<div class="box" id="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box" id="box2"></div>
|
||||
<div style="left: 405px;background:red;" class="box" id="box3"></div>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function(){
|
||||
assert_equals(document.elementFromPoint(400, 100),
|
||||
document.getElementById('box2'),
|
||||
"Expected value for element id is 'box2'");
|
||||
}, 'Element at (400, 100)');
|
||||
|
||||
test(function(){
|
||||
assert_equals(document.elementFromPoint(400, 900),
|
||||
null,
|
||||
"Expected value for element id is 'box2'");
|
||||
}, 'Element at (400, 900)');
|
||||
</script>
|
||||
|
||||
|
||||
</body></html>
|
|
@ -30,7 +30,7 @@
|
|||
<tbody id="s1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#background">1 Background</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#background">1 Background</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<tbody id="s10">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s10">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#extensions-to-the-range-interface">10 Extensions to the Range Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#extensions-to-the-range-interface">10 Extensions to the Range Interface</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s10.#dom-range-getboundingclientrect">
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<tbody id="s11">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s11">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#extensions-to-the-mouseevent-interface">11 Extensions to the MouseEvent Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#extensions-to-the-mouseevent-interface">11 Extensions to the MouseEvent Interface</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s11.#dom-mouseevent-clientx">
|
||||
|
|
|
@ -30,13 +30,13 @@
|
|||
<tbody id="s12">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s12">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#geometry">12 Geometry</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#geometry">12 Geometry</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s12.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s12.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#the-geometryutils-interface">12.1 The GeometryUtils Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#the-geometryutils-interface">12.1 The GeometryUtils Interface</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s12.1.#boxquadoptions">
|
||||
|
|
|
@ -30,19 +30,19 @@
|
|||
<tbody id="s13">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s13">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#events">13 Events</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#events">13 Events</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s13.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s13.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#resizing-viewports">13.1 Resizing viewports</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#resizing-viewports">13.1 Resizing viewports</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s13.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s13.2">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#scrolling-0">13.2 Scrolling</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#scrolling-0">13.2 Scrolling</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -30,13 +30,13 @@
|
|||
<tbody id="s14">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s14">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#css-properties">14 CSS properties</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#css-properties">14 CSS properties</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s14.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s14.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#smooth-scrolling:-the-'scroll-behavior'-property">14.1 Smooth Scrolling: The 'scroll-behavior' Property</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#smooth-scrolling:-the-'scroll-behavior'-property">14.1 Smooth Scrolling: The 'scroll-behavior' Property</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s14.1.#scroll-behavior">
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<tbody id="s2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s2">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#conformance">2 Conformance</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#conformance">2 Conformance</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s2.#hardwareLimitations">
|
||||
|
@ -39,7 +39,7 @@
|
|||
<tbody id="s2.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s2.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#web-idl">2.1 Web IDL</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#web-idl">2.1 Web IDL</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<tbody id="s3">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s3">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#terminology">3 Terminology</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#terminology">3 Terminology</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s3.#beginning-edges">
|
||||
|
@ -120,13 +120,13 @@
|
|||
<tbody id="s3.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s3.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#css-pixels">3.1 CSS pixels</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#css-pixels">3.1 CSS pixels</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s3.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s3.2">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#zooming">3.2 Zooming</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#zooming">3.2 Zooming</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s3.2.#page-zoom">
|
||||
|
|
|
@ -30,13 +30,13 @@
|
|||
<tbody id="s4">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#common-infrastructure">4 Common Infrastructure</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#common-infrastructure">4 Common Infrastructure</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s4.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#scrolling">4.1 Scrolling</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#scrolling">4.1 Scrolling</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s4.1.#concept-instant-scroll">
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
<tbody id="s5">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s5">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#extensions-to-the-window-interface">5 Extensions to the Window Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#extensions-to-the-window-interface">5 Extensions to the Window Interface</a></th></tr>
|
||||
<!-- 2 tests -->
|
||||
<tr id="media-query-list-interface-5" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="media-query-list-interface.htm">media-query-list-interface</a></strong></td>
|
||||
<tr id="media-query-list-interface-5" class="dom script">
|
||||
<td>
|
||||
<a href="media-query-list-interface.htm">media-query-list-interface</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>Properties and Functions
|
||||
|
@ -43,9 +43,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="window-interface-5" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="window-interface.htm">window-interface</a></strong></td>
|
||||
<tr id="window-interface-5" class="dom script">
|
||||
<td>
|
||||
<a href="window-interface.htm">window-interface</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>Properties and Functions
|
||||
|
@ -69,9 +69,9 @@
|
|||
</tbody>
|
||||
<tbody id="s5.#dom-window-matchmedia">
|
||||
<!-- 1 tests -->
|
||||
<tr id="matchmedia-5.#dom-window-matchmedia" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="matchMedia.htm">matchmedia</a></strong></td>
|
||||
<tr id="matchmedia-5.#dom-window-matchmedia" class="dom script">
|
||||
<td>
|
||||
<a href="matchMedia.htm">matchmedia</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View matchMedia and MediaQueryList
|
||||
|
@ -135,7 +135,7 @@
|
|||
<tbody id="s5.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s5.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#the-features-argument-to-the-open()-method">5.1 The features argument to the open() method</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#the-features-argument-to-the-open()-method">5.1 The features argument to the open() method</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s5.1.#dom-open-features-height">
|
||||
|
@ -156,7 +156,7 @@
|
|||
<tbody id="s5.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s5.2">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#the-mediaquerylist-interface">5.2 The MediaQueryList Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#the-mediaquerylist-interface">5.2 The MediaQueryList Interface</a></th></tr>
|
||||
<!-- 4 tests -->
|
||||
<tr id="matchmedia-5.2" class="dom script">
|
||||
<td>
|
||||
|
@ -166,9 +166,9 @@
|
|||
<td>CSSOM View matchMedia and MediaQueryList
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="matchmediaaddlistener-5.2" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="matchMediaAddListener.htm">matchmediaaddlistener</a></strong></td>
|
||||
<tr id="matchmediaaddlistener-5.2" class="dom script">
|
||||
<td>
|
||||
<a href="matchMediaAddListener.htm">matchmediaaddlistener</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View matchMedia addListener
|
||||
|
@ -185,9 +185,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="mediaquerylist-001-5.2" class="primary script">
|
||||
<td><strong>
|
||||
<a href="MediaQueryList-001.htm">mediaquerylist-001</a></strong></td>
|
||||
<tr id="mediaquerylist-001-5.2" class="script">
|
||||
<td>
|
||||
<a href="MediaQueryList-001.htm">mediaquerylist-001</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>MediaQueryList
|
||||
|
@ -218,11 +218,11 @@
|
|||
<tbody id="s5.3">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s5.3">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#the-screen-interface">5.3 The Screen Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#the-screen-interface">5.3 The Screen Interface</a></th></tr>
|
||||
<!-- 8 tests -->
|
||||
<tr id="cssom-view-window-screen-interface-5.3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="cssom-view-window-screen-interface.htm">cssom-view-window-screen-interface</a></strong></td>
|
||||
<tr id="cssom-view-window-screen-interface-5.3" class="dom script">
|
||||
<td>
|
||||
<a href="cssom-view-window-screen-interface.htm">cssom-view-window-screen-interface</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>cssom view window screen attribute
|
||||
|
@ -231,17 +231,17 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="screen-pixeldepth-screen-colordepth001-5.3" class="primary script">
|
||||
<td><strong>
|
||||
<a href="Screen-pixelDepth-Screen-colorDepth001.htm">screen-pixeldepth-screen-colordepth001</a></strong></td>
|
||||
<tr id="screen-pixeldepth-screen-colordepth001-5.3" class="script">
|
||||
<td>
|
||||
<a href="Screen-pixelDepth-Screen-colorDepth001.htm">screen-pixeldepth-screen-colordepth001</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>Screen-pixelDepth,Screen-colorDepth
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="window-screen-height-5.3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="window-screen-height.htm">window-screen-height</a></strong></td>
|
||||
<tr id="window-screen-height-5.3" class="dom script">
|
||||
<td>
|
||||
<a href="window-screen-height.htm">window-screen-height</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 4.2 - screen.height range tests
|
||||
|
@ -250,9 +250,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="window-screen-height-immutable-5.3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="window-screen-height-immutable.htm">window-screen-height-immutable</a></strong></td>
|
||||
<tr id="window-screen-height-immutable-5.3" class="dom script">
|
||||
<td>
|
||||
<a href="window-screen-height-immutable.htm">window-screen-height-immutable</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 4.2 - screen.height immutability
|
||||
|
@ -261,9 +261,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="window-screen-height-mutation-throws-5.3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="window-screen-height-mutation-throws.htm">window-screen-height-mutation-throws</a></strong></td>
|
||||
<tr id="window-screen-height-mutation-throws-5.3" class="dom script">
|
||||
<td>
|
||||
<a href="window-screen-height-mutation-throws.htm">window-screen-height-mutation-throws</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 4.2 - screen.height mutation throws exception
|
||||
|
@ -272,9 +272,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="window-screen-width-5.3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="window-screen-width.htm">window-screen-width</a></strong></td>
|
||||
<tr id="window-screen-width-5.3" class="dom script">
|
||||
<td>
|
||||
<a href="window-screen-width.htm">window-screen-width</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 4.2 - screen.width range tests
|
||||
|
@ -283,9 +283,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="window-screen-width-immutable-5.3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="window-screen-width-immutable.htm">window-screen-width-immutable</a></strong></td>
|
||||
<tr id="window-screen-width-immutable-5.3" class="dom script">
|
||||
<td>
|
||||
<a href="window-screen-width-immutable.htm">window-screen-width-immutable</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 4.2 - screen.width immutability
|
||||
|
@ -294,9 +294,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="window-screen-width-mutation-throws-5.3" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="window-screen-width-mutation-throws.htm">window-screen-width-mutation-throws</a></strong></td>
|
||||
<tr id="window-screen-width-mutation-throws-5.3" class="dom script">
|
||||
<td>
|
||||
<a href="window-screen-width-mutation-throws.htm">window-screen-width-mutation-throws</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 4.2 - screen.width mutation throws exception
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
<tbody id="s6">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s6">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface">6 Extensions to the Document Interface</a></th></tr>
|
||||
<!-- 2 tests -->
|
||||
<tr id="elementfrompoint-001-6" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="elementFromPoint-001.htm">elementfrompoint-001</a></strong></td>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface">6 Extensions to the Document Interface</a></th></tr>
|
||||
<!-- 1 tests -->
|
||||
<tr id="elementfrompoint-001-6" class="dom script">
|
||||
<td>
|
||||
<a href="elementFromPoint-001.htm">elementfrompoint-001</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 5 - extensions to the Document interface
|
||||
|
@ -43,7 +43,21 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="elementfromposition-6" class="primary dom script">
|
||||
</tbody>
|
||||
<tbody id="s6.#dom-document-caretpositionfrompoint">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.#dom-document-elementfrompoint">
|
||||
<!-- 2 tests -->
|
||||
<tr id="caretposition-001-6.#dom-document-elementfrompoint" class="primary script">
|
||||
<td><strong>
|
||||
<a href="CaretPosition-001.htm">caretposition-001</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CaretPosition
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="elementfromposition-6.#dom-document-elementfrompoint" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="elementFromPosition.htm">elementfromposition</a></strong></td>
|
||||
<td></td>
|
||||
|
@ -52,28 +66,14 @@
|
|||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s6.#dom-document-caretpositionfrompoint">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.#dom-document-elementfrompoint">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.#dom-document-elementsfrompoint">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s6.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#the-caretposition-interface">6.1 The CaretPosition Interface</a></th></tr>
|
||||
<!-- 1 tests -->
|
||||
<tr id="caretposition-001-6.1" class="primary script">
|
||||
<td><strong>
|
||||
<a href="CaretPosition-001.htm">caretposition-001</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CaretPosition
|
||||
</td>
|
||||
</tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#the-caretposition-interface">6.1 The CaretPosition Interface</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s6.1.#caret-node">
|
||||
<!-- 0 tests -->
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<body>
|
||||
|
||||
<h1>CSSOM View Module Level 1 Test Suite</h1>
|
||||
<h2>Extensions to the Element Interface (6 tests)</h2>
|
||||
<h2>Extensions to the Element Interface (7 tests)</h2>
|
||||
<table width="100%">
|
||||
<col id="test-column">
|
||||
<col id="refs-column">
|
||||
|
@ -30,7 +30,7 @@
|
|||
<tbody id="s7">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s7">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#extensions-to-the-element-interface">7 Extensions to the Element Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#extensions-to-the-element-interface">7 Extensions to the Element Interface</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s7.#dom-element-clientheight">
|
||||
|
@ -47,9 +47,9 @@
|
|||
</tbody>
|
||||
<tbody id="s7.#dom-element-getboundingclientrect">
|
||||
<!-- 2 tests -->
|
||||
<tr id="cssom-getboundingclientrect-001-7.#dom-element-getboundingclientrect" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="cssom-getBoundingClientRect-001.htm">cssom-getboundingclientrect-001</a></strong></td>
|
||||
<tr id="cssom-getboundingclientrect-001-7.#dom-element-getboundingclientrect" class="dom script">
|
||||
<td>
|
||||
<a href="cssom-getBoundingClientRect-001.htm">cssom-getboundingclientrect-001</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 6.1 - getBoundingClientRect tests
|
||||
|
@ -68,10 +68,10 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s7.#dom-element-getclientrects">
|
||||
<!-- 2 tests -->
|
||||
<tr id="cssom-getboundingclientrect-002-7.#dom-element-getclientrects" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="cssom-getBoundingClientRect-002.htm">cssom-getboundingclientrect-002</a></strong></td>
|
||||
<!-- 3 tests -->
|
||||
<tr id="cssom-getboundingclientrect-002-7.#dom-element-getclientrects" class="dom script">
|
||||
<td>
|
||||
<a href="cssom-getBoundingClientRect-002.htm">cssom-getboundingclientrect-002</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>getBoundingClientRect of element outside DOM
|
||||
|
@ -80,9 +80,9 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="cssom-getclientrects-7.#dom-element-getclientrects" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="cssom-getClientRects.htm">cssom-getclientrects</a></strong></td>
|
||||
<tr id="cssom-getclientrects-7.#dom-element-getclientrects" class="dom script">
|
||||
<td>
|
||||
<a href="cssom-getClientRects.htm">cssom-getclientrects</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>getClientRects of element outside DOM
|
||||
|
@ -91,15 +91,26 @@
|
|||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="ttwf-js-cssomview-getclientrects-length-7.#dom-element-getclientrects" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="ttwf-js-cssomview-getclientrects-length.htm">ttwf-js-cssomview-getclientrects-length</a></strong></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>the length of getClientRects
|
||||
<ul class="assert">
|
||||
<li>getClientRects will return rects of the correct number</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody id="s7.#dom-element-scrollheight">
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s7.#dom-element-scrollintoview">
|
||||
<!-- 1 tests -->
|
||||
<tr id="ttwf-scrollintoview-7.#dom-element-scrollintoview" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="ttwf-scrollintoview.htm">ttwf-scrollintoview</a></strong></td>
|
||||
<tr id="ttwf-scrollintoview-7.#dom-element-scrollintoview" class="dom script">
|
||||
<td>
|
||||
<a href="ttwf-scrollintoview.htm">ttwf-scrollintoview</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View - 6 - scrollIntoView tests
|
||||
|
@ -114,17 +125,17 @@
|
|||
</tbody>
|
||||
<tbody id="s7.#dom-element-scrollwidth">
|
||||
<!-- 2 tests -->
|
||||
<tr id="scrollwidthheight-7.#dom-element-scrollwidth" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="scrollWidthHeight.htm">scrollwidthheight</a></strong></td>
|
||||
<tr id="scrollwidthheight-7.#dom-element-scrollwidth" class="dom script">
|
||||
<td>
|
||||
<a href="scrollWidthHeight.htm">scrollwidthheight</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View scrollWidth and scrollHeight
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="scrollwidthheightwhennotscrollable-7.#dom-element-scrollwidth" class="primary dom script">
|
||||
<td><strong>
|
||||
<a href="scrollWidthHeightWhenNotScrollable.htm">scrollwidthheightwhennotscrollable</a></strong></td>
|
||||
<tr id="scrollwidthheightwhennotscrollable-7.#dom-element-scrollwidth" class="dom script">
|
||||
<td>
|
||||
<a href="scrollWidthHeightWhenNotScrollable.htm">scrollwidthheightwhennotscrollable</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View scrollWidth/scrollHeight (for nonscrollable elements)
|
||||
|
@ -140,13 +151,13 @@
|
|||
<tbody id="s7.1">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s7.1">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#the-getclientrects()-and-getboundingclientrect()-methods">7.1 The getClientRects() and getBoundingClientRect() methods</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#the-getclientrects()-and-getboundingclientrect()-methods">7.1 The getClientRects() and getBoundingClientRect() methods</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s7.2">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s7.2">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#element-scrolling-members">7.2 Element Scrolling Members</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#element-scrolling-members">7.2 Element Scrolling Members</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s7.2.#scroll-an-element">
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
<tbody id="s8">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s8">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#extensions-to-the-htmlelement-interface">8 Extensions to the HTMLElement Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#extensions-to-the-htmlelement-interface">8 Extensions to the HTMLElement Interface</a></th></tr>
|
||||
<!-- 1 tests -->
|
||||
<tr id="offsetparent_element_test-8" class="primary script">
|
||||
<td><strong>
|
||||
<a href="offsetParent_element_test.htm">offsetparent_element_test</a></strong></td>
|
||||
<tr id="offsetparent_element_test-8" class="script">
|
||||
<td>
|
||||
<a href="offsetParent_element_test.htm">offsetparent_element_test</a></td>
|
||||
<td></td>
|
||||
<td><abbr class="script" title="Executes tests in script">Script</abbr></td>
|
||||
<td>CSSOM View &#8212;&#8212; offsetParent element test
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<tbody id="s9">
|
||||
<tr><th colspan="4" scope="rowgroup">
|
||||
<a href="#s9">+</a>
|
||||
<a href="http://www.w3.org/TR/cssom-view/#excensions-to-the-htmlimageelement-interface">9 Excensions to the HTMLImageElement Interface</a></th></tr>
|
||||
<a href="https://www.w3.org/TR/cssom-view/#excensions-to-the-htmlimageelement-interface">9 Excensions to the HTMLImageElement Interface</a></th></tr>
|
||||
<!-- 0 tests -->
|
||||
</tbody>
|
||||
<tbody id="s9.#dom-htmlimageelement-x">
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
<title>CSS Test: CSSOM View elementFromPoint</title>
|
||||
<meta charset="UTF-8">
|
||||
<link href="mailto:pwx.frontend@gmail.com" rel="author" title="Chris">
|
||||
<link href="http://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface" rel="help">
|
||||
<link href="http://www.w3.org/TR/cssom-view/#widl-Document-elementFromPoint-Element-float-x-float-y" rel="help">
|
||||
<link href="https://www.w3.org/TR/cssom-view/#dom-document-elementfrompoint" rel="help">
|
||||
<meta content="dom" name="flags">
|
||||
<script src="/resources/testharness.js" type="text/javascript"></script>
|
||||
<script src="/resources/testharnessreport.js" type="text/javascript"></script>
|
||||
|
@ -20,10 +19,10 @@
|
|||
"test some point of the element: right line": {},
|
||||
"test some point of the element: bottom left corner": {},
|
||||
"test some point of the element: bottom line": {},
|
||||
"test some point of the element: botom right corner": {},
|
||||
"test some point of the element: bottom right corner": {},
|
||||
"Point (0, 0), return root element(HTML)": {},
|
||||
" test negative x ": {},
|
||||
" test nagetive y ": {},
|
||||
" test negative y ": {},
|
||||
"test outside of viewport": {},
|
||||
"test the top of layer": {}
|
||||
}
|
||||
|
@ -91,7 +90,7 @@
|
|||
// 下边线
|
||||
{x: 50, y: 110, r: 'bottom line'},
|
||||
// 右下角
|
||||
{x: 110, y: 110, r: 'botom right corner'}
|
||||
{x: 110, y: 110, r: 'bottom right corner'}
|
||||
];
|
||||
var i = 0, len = wrap.length, item;
|
||||
for ( ; i < len; i++ ) {
|
||||
|
@ -114,7 +113,7 @@
|
|||
test( function () {
|
||||
var elem = document.elementFromPoint( 0, -1000 );
|
||||
assert_true( elem == null, 'negative y, return null' );
|
||||
}, ' test nagetive y ');
|
||||
}, ' test negative y ');
|
||||
|
||||
test( function () {
|
||||
var elem = document.elementFromPoint( 100000, 0 );
|
||||
|
|
|
@ -21,7 +21,6 @@ The square-* images all use 15x15 cells with one pixel borders.
|
|||
|
||||
The pattern-* images use cells of various sizes:
|
||||
|
||||
pattern-gg-gr.png 20x20
|
||||
pattern-grg-rgr-grg.png 20x20
|
||||
pattern-rgr-grg-rgr.png 20x20
|
||||
pattern-tr.png 15x15
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 148 B |
|
@ -52,7 +52,7 @@
|
|||
<tbody id="s7">
|
||||
<tr><th><a href="chapter-7.htm">Chapter 7 -
|
||||
Extensions to the Element Interface</a></th>
|
||||
<td>(6 Tests)</td></tr>
|
||||
<td>(7 Tests)</td></tr>
|
||||
</tbody>
|
||||
<tbody id="s8">
|
||||
<tr><th><a href="chapter-8.htm">Chapter 8 -
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSSOM View API Test: the length of getClientRects</title>
|
||||
<link href="mailto:zhaolp0419@gmail.com" rel="author" title="simplezeroec">
|
||||
<link href="https://www.w3.org/TR/cssom-view/#dom-element-getclientrects" rel="help">
|
||||
<meta content="dom" name="flags">
|
||||
<meta content="getClientRects will return rects of the correct number" name="assert">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="rectcontainer">
|
||||
<button id="testBtn">Test</button>
|
||||
<a id="testLink">Test Link</a>
|
||||
</div>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
|
||||
test(function(){assert_equals(document.getElementById("rectcontainer").getClientRects().length,1,"1 ClientRects should be returned");},"assert_length_of_getClientRects_from_Parent");
|
||||
test(function(){assert_equals(document.getElementById("testBtn").getClientRects().length,1,"1 ClientRects should be returned");},"assert_length_of_getClientRects_from_Button");
|
||||
test(function(){assert_equals(document.getElementById("testLink").getClientRects().length,1,"1 ClientRects should be returned");},"assert_length_of_getClientRects_from_Link");
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue