Update CSS tests to revision 465c03e3d8d42ce98b9dfa0c8d8e7b4b8d48ebd7

This commit is contained in:
Ms2ger
2015-10-21 16:35:11 +02:00
parent ea000471d3
commit 6a4ad433a2
432 changed files with 6691 additions and 83 deletions

View File

@@ -4,6 +4,7 @@
<title>CSS Test: Attribute selector matching value</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
<link rel="match" href="reference/attribute-value-selector-001-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="Selector matches attribute with specific value.">
<style type="text/css">

View File

@@ -4,6 +4,7 @@
<title>CSS Test: Attribute selector matching value in hyphenated list</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
<link rel="match" href="reference/attribute-value-selector-001-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="Selector matches attributes with specific value in a hyphen-separated list.">
<style type="text/css">

View File

@@ -4,6 +4,7 @@
<title>CSS Test: Attribute selector matching value in list</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#attribute-selectors">
<link rel="match" href="reference/attribute-value-selector-001-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="Selector matches attribute with specific value in a space-separated list.">
<style type="text/css">

View File

@@ -13,7 +13,7 @@
<body>
<h1>CSS 2.1 Conformance Test Suite</h1>
<h2>Tables (1153 tests)</h2>
<h2>Tables (1154 tests)</h2>
<table width="100%">
<col id="test-column">
<col id="refs-column">
@@ -5343,7 +5343,7 @@
<tr><th colspan="4" scope="rowgroup">
<a href="#s17.5.2.2">+</a>
<a href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout">17.5.2.2 Automatic table layout</a></th></tr>
<!-- 6 tests -->
<!-- 7 tests -->
<tr id="anonymous-table-box-width-001-17.5.2.2" class="primary">
<td><strong>
<a href="anonymous-table-box-width-001.htm">anonymous-table-box-width-001</a></strong></td>
@@ -5387,6 +5387,17 @@
<td>Test for 'width' shrink-wrapping on inline-table
</td>
</tr>
<tr id="min-width-tables-001-17.5.2.2" class="primary dom">
<td><strong>
<a href="min-width-tables-001.htm">min-width-tables-001</a></strong></td>
<td><a href="ref.htm">=</a> </td>
<td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
<td>Table Layout and Viewport Resizing
<ul class="assert">
<li>Resizing a page which toggles the `display` of elements between `block` and `table-cell` based on the viewport width should not cause unnecessary wrapping of the table.</li>
</ul>
</td>
</tr>
<tr id="table-percent-width-001-17.5.2.2" class="primary">
<td><strong>
<a href="table-percent-width-001.htm">table-percent-width-001</a></strong></td>

View File

@@ -784,7 +784,7 @@
<tr id="attribute-value-selector-001-5.8" class="primary">
<td><strong>
<a href="attribute-value-selector-001.htm">attribute-value-selector-001</a></strong></td>
<td></td>
<td><a href="reference/attribute-value-selector-001-ref.htm">=</a> </td>
<td></td>
<td>Attribute selector matching value
<ul class="assert">
@@ -795,7 +795,7 @@
<tr id="attribute-value-selector-002-5.8" class="primary">
<td><strong>
<a href="attribute-value-selector-002.htm">attribute-value-selector-002</a></strong></td>
<td></td>
<td><a href="reference/attribute-value-selector-001-ref.htm">=</a> </td>
<td></td>
<td>Attribute selector matching value in hyphenated list
<ul class="assert">
@@ -806,7 +806,7 @@
<tr id="attribute-value-selector-003-5.8" class="primary">
<td><strong>
<a href="attribute-value-selector-003.htm">attribute-value-selector-003</a></strong></td>
<td></td>
<td><a href="reference/attribute-value-selector-001-ref.htm">=</a> </td>
<td></td>
<td>Attribute selector matching value in list
<ul class="assert">

View File

@@ -13,7 +13,7 @@
<body>
<h1>CSS 2.1 Conformance Test Suite</h1>
<h2>Visual formatting model (1244 tests)</h2>
<h2>Visual formatting model (1245 tests)</h2>
<table width="100%">
<col id="test-column">
<col id="refs-column">
@@ -17418,7 +17418,7 @@
<tr><th colspan="4" scope="rowgroup">
<a href="#s9.10">+</a>
<a href="http://www.w3.org/TR/CSS21/visuren.html#direction">9.10 Text direction: the 'direction' and 'unicode-bidi' properties</a></th></tr>
<!-- 119 tests -->
<!-- 120 tests -->
<tr id="bidi-001-9.10" class="">
<td>
<a href="bidi-001.htm">bidi-001</a></td>
@@ -18668,6 +18668,17 @@
</ul>
</td>
</tr>
<tr id="unicode-bidi-parsing-001-9.10" class="primary dom script">
<td><strong>
<a href="unicode-bidi-parsing-001.htm">unicode-bidi-parsing-001</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>CSS Writing Modes: parsing unicode-bidi: normal, embed, bidi-override
<ul class="assert">
<li>This test asserts the parser and getComputedStyle works correctly for the unicode-bidi: normal, embed, bidi-override.</li>
</ul>
</td>
</tr>
</tbody>
<tbody id="s9.10.#propdef-direction">
<!-- 31 tests -->

View File

@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html class="reftest-wait"><head>
<meta charset="utf-8">
<title>CSS Test: Table Layout and Viewport Resizing</title>
<link href="http://chrisrebert.com" rel="author" title="Chris Rebert">
<link href="https://drafts.csswg.org/css2/tables.html#auto-table-layout" rel="help">
<link href="https://drafts.csswg.org/mediaqueries-3/#width" rel="help">
<link href="https://drafts.csswg.org/mediaqueries-4/#width" rel="help">
<link href="ref.htm" rel="match">
<meta content="dom" name="flags">
<meta content="Resizing a page which toggles the `display` of elements between `block` and `table-cell` based on the viewport width should not cause unnecessary wrapping of the table." name="assert">
<style>
iframe {
border: 0;
}
</style>
</head>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<iframe src="support/min-width-tables-001-iframe.html" height="300" id="toy" width="100"></iframe>
<!-- See min-width-tables-001-iframe.html for the derivation of the 100px value -->
<!-- We use 300px height so the incorrect stacking is visible in failure cases -->
<!-- This test is not about iframes specifically. It's just that resizing an iframe is more reliable than resizing the window, given browser security restrictions. -->
<script>
window.addEventListener('load', function () {
var PAINT_MS = 250;/* Assume the browser takes about this long to layout/paint this whole page */
var iframe = document.getElementById('toy');
window.setTimeout(function () {
iframe.width = 64;/* <100px ; toggle media query off */
window.setTimeout(function () {
iframe.width = 100;/* >=100px ; toggle media query on; back to initial width */
// Take the reftest screenshot after the last relayout/repaint finishes
window.setTimeout(function () {
document.documentElement.className = '';
}, PAINT_MS);
}, PAINT_MS);
}, PAINT_MS);
}, false);
</script>
</body></html>

View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html><head>
<title>CSS Reftest Reference</title>
<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal">
<style>
div {
background-color:green;
height:100px;
width:100px;
}
</style>
</head>
<body>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div></div>
</body></html>

View File

@@ -0,0 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
<style type="text/css">
.green {
color: green;
}
</style>
</head>
<body>
<p>Test passes if the first line of "Filler Text" below is black and the second one is green.</p>
<div>Filler Text</div>
<div class="green">Filler Text</div>
</body>
</html>

View File

@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>iframe containing the meat of the test</title>
<style>
body {
margin: 0;
overflow: hidden;
}
/* green div that should cover the red divs */
#green {
position: absolute;
left: 0;
top: 0;
background-color: green;
width: 100%;
height: 600px;
}
.spacer {
height: 98px;
width: 20px;
}
.item {
background-color: red;
display: block;/* property under test */
/* border to aid understanding of boundaries between items */
border-style: solid;
border-width: 1px;
border-color: red;/* Note: if you're trying to debug this, use a different color here */
}
/* 100px = 10*(1 + 8 + 1) */
@media (min-width: 100px) {
#green {
width: 100px;
height: 100px;/* = 1 + 98 + 1 */
}
.item {
display: table-cell;/* property and value under test */
}
}
</style>
</head>
<body>
<div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
</div>
<div id="green"></div>
</body></html>

View File

@@ -4248,6 +4248,30 @@
<td rowspan="1"></td>
</tr>
</tbody>
<tbody id="attribute-value-selector-001" class="">
<tr>
<td rowspan="1" title="Attribute selector matching value">
<a href="attribute-value-selector-001.htm">attribute-value-selector-001</a></td>
<td><a href="reference/attribute-value-selector-001-ref.htm">=</a> </td>
<td rowspan="1"></td>
</tr>
</tbody>
<tbody id="attribute-value-selector-002" class="">
<tr>
<td rowspan="1" title="Attribute selector matching value in hyphenated list">
<a href="attribute-value-selector-002.htm">attribute-value-selector-002</a></td>
<td><a href="reference/attribute-value-selector-001-ref.htm">=</a> </td>
<td rowspan="1"></td>
</tr>
</tbody>
<tbody id="attribute-value-selector-003" class="">
<tr>
<td rowspan="1" title="Attribute selector matching value in list">
<a href="attribute-value-selector-003.htm">attribute-value-selector-003</a></td>
<td><a href="reference/attribute-value-selector-001-ref.htm">=</a> </td>
<td rowspan="1"></td>
</tr>
</tbody>
<tbody id="attribute-value-selector-004" class="invalid">
<tr>
<td rowspan="1" title="Numeric attributes">
@@ -37324,6 +37348,14 @@
<td rowspan="1"></td>
</tr>
</tbody>
<tbody id="min-width-tables-001" class="dom">
<tr>
<td rowspan="1" title="Table Layout and Viewport Resizing">
<a href="min-width-tables-001.htm">min-width-tables-001</a></td>
<td><a href="ref.htm">=</a> </td>
<td rowspan="1"><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
</tr>
</tbody>
<tbody id="moz-css21-block-page-break-inside-avoid-1" class="paged">
<tr>
<td rowspan="1" title="CSS 2.1 page-break-inside:avoid">

View File

@@ -556,6 +556,9 @@ attribute-007.htm == reference/attribute-ref.htm
attribute-selector-001.htm == reference/no-red-filler-text-ref.htm
attribute-selector-002.htm == reference/filler-text-below-green.htm
attribute-token-selector-002.htm == reference/attribute-token-selector-002-ref.htm
attribute-value-selector-001.htm == reference/attribute-value-selector-001-ref.htm
attribute-value-selector-002.htm == reference/attribute-value-selector-001-ref.htm
attribute-value-selector-003.htm == reference/attribute-value-selector-001-ref.htm
attribute-value-selector-004.htm == reference/no-red-filler-text-ref.htm
attribute-value-selector-005.htm == reference/filler-text-below-green.htm
attribute-value-selector-006.htm == reference/filler-text-below-green.htm
@@ -4717,6 +4720,7 @@ min-width-applies-to-015.htm == reference/ref-filled-black-96px-square.htm
min-width-applies-to-016.htm == reference/ref-filled-green-100px-square.htm
min-width-percentage-001.htm == reference/max-width-percentage-001-ref.htm
min-width-percentage-002.htm == reference/ref-if-there-is-no-red.htm
min-width-tables-001.htm == ref.htm
moz-css21-block-page-break-inside-avoid-1.htm == reference/moz-css21-block-page-break-inside-avoid-ref.htm
moz-css21-block-page-break-inside-avoid-10.htm == reference/moz-css21-block-page-break-inside-avoid-ref.htm
moz-css21-block-page-break-inside-avoid-11.htm == reference/moz-css21-block-page-break-inside-avoid-ref.htm

View File

@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>iframe containing the meat of the test</title>
<style>
body {
margin: 0;
overflow: hidden;
}
/* green div that should cover the red divs */
#green {
position: absolute;
left: 0;
top: 0;
background-color: green;
width: 100%;
height: 600px;
}
.spacer {
height: 98px;
width: 20px;
}
.item {
background-color: red;
display: block;/* property under test */
/* border to aid understanding of boundaries between items */
border-style: solid;
border-width: 1px;
border-color: red;/* Note: if you're trying to debug this, use a different color here */
}
/* 100px = 10*(1 + 8 + 1) */
@media (min-width: 100px) {
#green {
width: 100px;
height: 100px;/* = 1 + 98 + 1 */
}
.item {
display: table-cell;/* property and value under test */
}
}
</style>
</head>
<body>
<div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
<div class="item"><div class="spacer"></div></div>
</div>
<div id="green"></div>
</body></html>

View File

@@ -62,7 +62,7 @@
<tbody id="s9">
<tr><th><a href="chapter-9.htm">Chapter 9 -
Visual formatting model</a></th>
<td>(1244 Tests)</td></tr>
<td>(1245 Tests)</td></tr>
</tbody>
<tbody id="s10">
<tr><th><a href="chapter-10.htm">Chapter 10 -
@@ -102,7 +102,7 @@
<tbody id="s17">
<tr><th><a href="chapter-17.htm">Chapter 17 -
Tables</a></th>
<td>(1153 Tests)</td></tr>
<td>(1154 Tests)</td></tr>
</tbody>
<tbody id="s18">
<tr><th><a href="chapter-18.htm">Chapter 18 -

View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html><head><title>CSS Writing Modes: parsing unicode-bidi: normal, embed, bidi-override</title>
<link href="kojiishi@gmail.com" rel="author" title="Koji Ishii">
<link href="https://drafts.csswg.org/css2/visuren.html#direction" rel="help">
<link href="https://drafts.csswg.org/css-writing-modes-3/#unicode-bidi" rel="help">
<meta content="This test asserts the parser and getComputedStyle works correctly for the unicode-bidi: normal, embed, bidi-override." name="assert">
<meta content="dom" name="flags">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head><body><div data-expected="normal" title="Initial value of unicode-bidi"></div>
<div data-expected="normal" style="unicode-bidi: embed; unicode-bidi: normal"></div>
<div data-expected="embed" style="unicode-bidi: embed"></div>
<div data-expected="bidi-override" style="unicode-bidi: bidi-override"></div>
<div style="unicode-bidi: embed">
<div data-expected="normal" title="unicode-bidi should not inherit"></div>
</div>
<script>
Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {
test(function () {
var actual = getComputedStyle(element).unicodeBidi;
assert_equals(actual, element.dataset.expected);
}, element.title || element.getAttribute("style"));
});
</script>
</body></html>