diff options
Diffstat (limited to 'tests/wpt/css-tests/css-ui-3_dev/html')
18 files changed, 135 insertions, 38 deletions
diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/box-sizing-padding-box-block-001.htm b/tests/wpt/css-tests/css-ui-3_dev/html/box-sizing-padding-box-block-001.htm new file mode 100644 index 00000000000..e592db2be2e --- /dev/null +++ b/tests/wpt/css-tests/css-ui-3_dev/html/box-sizing-padding-box-block-001.htm @@ -0,0 +1,9 @@ +<!DOCTYPE html> +<html><head><title>CSS UI: box-sizing:padding-box for a block box</title> +<link href="http://www.w3.org/TR/css3-ui/#box-sizing" rel="help"> +<link href="reference/box-sizing-padding-box-block-001-ref.htm" rel="match"> +<style> + #test { box-sizing:padding-box; padding:50px; width:150px; height:50px; background:black } +</style> +</head><body><p>There should be a black square below.</p> +<div id="test"></div></body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/chapter-3.htm b/tests/wpt/css-tests/css-ui-3_dev/html/chapter-3.htm index 5c0faf0b0a9..19535ff7499 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/chapter-3.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/chapter-3.htm @@ -13,7 +13,7 @@ <body> <h1>CSS Basic User Interface Module Level 3 CR Test Suite</h1> - <h2>Box Model addition (35 tests)</h2> + <h2>Box Model addition (36 tests)</h2> <table width="100%"> <col id="test-column"> <col id="refs-column"> @@ -37,7 +37,7 @@ <tr><th colspan="4" scope="rowgroup"> <a href="#s3.1">+</a> <a href="http://www.w3.org/TR/css3-ui/#box-sizing">3.1 box-sizing property</a></th></tr> - <!-- 35 tests --> + <!-- 36 tests --> <tr id="box-sizing-001-3.1" class="primary"> <td><strong> <a href="box-sizing-001.htm">box-sizing-001</a></strong></td> @@ -390,6 +390,14 @@ </ul> </td> </tr> + <tr id="box-sizing-padding-box-block-001-3.1" class="primary"> + <td><strong> + <a href="box-sizing-padding-box-block-001.htm">box-sizing-padding-box-block-001</a></strong></td> + <td><a href="reference/box-sizing-padding-box-block-001-ref.htm">=</a> </td> + <td></td> + <td>CSS UI: box-sizing:padding-box for a block box + </td> + </tr> <tr id="box-sizing-replaced-001-3.1" class="primary image"> <td><strong> <a href="box-sizing-replaced-001.htm">box-sizing-replaced-001</a></strong></td> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/chapter-4.htm b/tests/wpt/css-tests/css-ui-3_dev/html/chapter-4.htm index 321970657f7..a0f9fe5a702 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/chapter-4.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/chapter-4.htm @@ -78,10 +78,10 @@ <a href="#s4.3">+</a> <a href="http://www.w3.org/TR/css3-ui/#outline-style">4.3 outline-style property</a></th></tr> <!-- 4 tests --> - <tr id="outline-style-001-4.3" class="primary"> + <tr id="outline-style-011-4.3" class="primary"> <td><strong> - <a href="outline-style-001.htm">outline-style-001</a></strong></td> - <td><a href="reference/outline-style-001-ref.htm">=</a> </td> + <a href="outline-style-011.htm">outline-style-011</a></strong></td> + <td><a href="reference/outline-style-011-ref.htm">=</a> </td> <td></td> <td>outline-style - dotted (basic) <ul class="assert"> @@ -89,10 +89,10 @@ </ul> </td> </tr> - <tr id="outline-style-002-4.3" class="primary"> + <tr id="outline-style-012-4.3" class="primary"> <td><strong> - <a href="outline-style-002.htm">outline-style-002</a></strong></td> - <td><a href="reference/outline-style-002-ref.htm">=</a> </td> + <a href="outline-style-012.htm">outline-style-012</a></strong></td> + <td><a href="reference/outline-style-012-ref.htm">=</a> </td> <td></td> <td>outline-style - inherit (basic) <ul class="assert"> @@ -100,10 +100,10 @@ </ul> </td> </tr> - <tr id="outline-style-003-4.3" class="primary"> + <tr id="outline-style-013-4.3" class="primary"> <td><strong> - <a href="outline-style-003.htm">outline-style-003</a></strong></td> - <td><a href="reference/outline-style-003-ref.htm">=</a> </td> + <a href="outline-style-013.htm">outline-style-013</a></strong></td> + <td><a href="reference/outline-style-013-ref.htm">=</a> </td> <td></td> <td>outline-style - dashed (basic) <ul class="assert"> @@ -111,10 +111,10 @@ </ul> </td> </tr> - <tr id="outline-style-004-4.3" class="primary"> + <tr id="outline-style-014-4.3" class="primary"> <td><strong> - <a href="outline-style-004.htm">outline-style-004</a></strong></td> - <td><a href="reference/outline-style-004-ref.htm">=</a> </td> + <a href="outline-style-014.htm">outline-style-014</a></strong></td> + <td><a href="reference/outline-style-014-ref.htm">=</a> </td> <td></td> <td>outline-style - double (basic) <ul class="assert"> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/chapter-5.htm b/tests/wpt/css-tests/css-ui-3_dev/html/chapter-5.htm index 69ab050dd00..3111a78ca80 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/chapter-5.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/chapter-5.htm @@ -13,7 +13,7 @@ <body> <h1>CSS Basic User Interface Module Level 3 CR Test Suite</h1> - <h2>Resizing & Overflow (11 tests)</h2> + <h2>Resizing & Overflow (12 tests)</h2> <table width="100%"> <col id="test-column"> <col id="refs-column"> @@ -126,7 +126,18 @@ <tr><th colspan="4" scope="rowgroup"> <a href="#s5.2">+</a> <a href="http://www.w3.org/TR/css3-ui/#text-overflow">5.2 Overflow Ellipsis: the text-overflow property</a></th></tr> - <!-- 4 tests --> + <!-- 5 tests --> + <tr id="text-overflow-5.2" class="primary ahem font"> + <td><strong> + <a href="text-overflow.htm">text-overflow</a></strong></td> + <td><a href="reference/text-overflow-ref.htm">=</a> </td> + <td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr><abbr class="font" title="Requires a special font">Font</abbr></td> + <td>text-overflow - ellipsis + <ul class="assert"> + <li>'text-overflow:ellipsis' renders U+2026 when text is overflowing.</li> + </ul> + </td> + </tr> <tr id="text-overflow-001-5.2" class="primary"> <td><strong> <a href="text-overflow-001.htm">text-overflow-001</a></strong></td> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-001.htm b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-011.htm index 9c2265131fd..1aeac780ee1 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-001.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-011.htm @@ -5,7 +5,7 @@ <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan"> <link href="http://www.w3.org/TR/css3-ui/#outline-style" rel="help" title="7.3. 'outline-style' property"> <link href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style" rel="help"> -<link href="reference/outline-style-001-ref.htm" rel="match"> +<link href="reference/outline-style-011-ref.htm" rel="match"> <meta content="" name="flags"> <meta content="Test checks that the outline style is dotted when outline-style set dotted" name="assert"> <style> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-002.htm b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-012.htm index e1dd74648ee..14234606f15 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-002.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-012.htm @@ -5,7 +5,7 @@ <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan"> <link href="http://www.w3.org/TR/css3-ui/#outline-style" rel="help" title="7.3. 'outline-style' property"> <link href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style" rel="help"> -<link href="reference/outline-style-002-ref.htm" rel="match"> +<link href="reference/outline-style-012-ref.htm" rel="match"> <meta content="" name="flags"> <meta content="Test checks that the sub element outline style is same as parent element outline style when outline-style set inherit" name="assert"> <style> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-003.htm b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-013.htm index ae33c18e796..41e41723eac 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-003.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-013.htm @@ -5,7 +5,7 @@ <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan"> <link href="http://www.w3.org/TR/css3-ui/#outline-style" rel="help" title="7.3. 'outline-style' property"> <link href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style" rel="help"> -<link href="reference/outline-style-003-ref.htm" rel="match"> +<link href="reference/outline-style-013-ref.htm" rel="match"> <meta content="" name="flags"> <meta content="Test checks that the outline style is dashed when outline-style set dashed" name="assert"> <style> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-004.htm b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-014.htm index 90f920acc4f..d344800b5e9 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-004.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/outline-style-014.htm @@ -5,7 +5,7 @@ <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan"> <link href="http://www.w3.org/TR/css3-ui/#outline-style" rel="help" title="7.3. 'outline-style' property"> <link href="http://www.w3.org/TR/CSS21/box.html#value-def-border-style" rel="help"> -<link href="reference/outline-style-004-ref.htm" rel="match"> +<link href="reference/outline-style-014-ref.htm" rel="match"> <meta content="" name="flags"> <meta content="Test checks that the outline style is two solid lines when outline-style set double" name="assert"> <style> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reference/box-sizing-padding-box-block-001-ref.htm b/tests/wpt/css-tests/css-ui-3_dev/html/reference/box-sizing-padding-box-block-001-ref.htm new file mode 100644 index 00000000000..96f7d21a9a8 --- /dev/null +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reference/box-sizing-padding-box-block-001-ref.htm @@ -0,0 +1,7 @@ +<!DOCTYPE html> +<html><head><title>Reference: a black square</title> +<style> + div { padding:50px; width:50px; height:50px; background:black } +</style> +</head><body><p>There should be a black square below.</p> +<div></div></body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-001-ref.htm b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-011-ref.htm index 07affa566e5..07affa566e5 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-001-ref.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-011-ref.htm diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-002-ref.htm b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-012-ref.htm index ebad6d9b9b4..ebad6d9b9b4 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-002-ref.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-012-ref.htm diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-003-ref.htm b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-013-ref.htm index c40631f0d4a..c40631f0d4a 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-003-ref.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-013-ref.htm diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-004-ref.htm b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-014-ref.htm index 947a4882cbb..947a4882cbb 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-004-ref.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reference/outline-style-014-ref.htm diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reference/text-overflow-ref.htm b/tests/wpt/css-tests/css-ui-3_dev/html/reference/text-overflow-ref.htm new file mode 100644 index 00000000000..637aca9a5fc --- /dev/null +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reference/text-overflow-ref.htm @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html><head> + <title>CSS Reftest Ellipsis Reference</title> + <style> + div { font-size:10px; } + span { font-family:Ahem; font-size:30px; } + </style> +</head> +<body> + <p>PREREQUISITE: The font used must have a glyph for the U+2026 character.</p> + <p>Test passes if there is <strong>ellipsis</strong> after a black square.</p> + <div> + <span>A</span>… + </div> + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reftest-toc.htm b/tests/wpt/css-tests/css-ui-3_dev/html/reftest-toc.htm index 8873dcac45c..5551593580d 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/reftest-toc.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reftest-toc.htm @@ -280,6 +280,14 @@ <td rowspan="1"></td> </tr> </tbody> + <tbody id="box-sizing-padding-box-block-001" class=""> + <tr> + <td rowspan="1" title="CSS UI: box-sizing:padding-box for a block box"> + <a href="box-sizing-padding-box-block-001.htm">box-sizing-padding-box-block-001</a></td> + <td><a href="reference/box-sizing-padding-box-block-001-ref.htm">=</a> </td> + <td rowspan="1"></td> + </tr> + </tbody> <tbody id="box-sizing-replaced-001" class="image"> <tr> <td rowspan="1" title="Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing"> @@ -344,38 +352,46 @@ <td rowspan="1"></td> </tr> </tbody> - <tbody id="outline-style-001" class=""> + <tbody id="outline-style-011" class=""> <tr> <td rowspan="1" title="outline-style - dotted (basic)"> - <a href="outline-style-001.htm">outline-style-001</a></td> - <td><a href="reference/outline-style-001-ref.htm">=</a> </td> + <a href="outline-style-011.htm">outline-style-011</a></td> + <td><a href="reference/outline-style-011-ref.htm">=</a> </td> <td rowspan="1"></td> </tr> </tbody> - <tbody id="outline-style-002" class=""> + <tbody id="outline-style-012" class=""> <tr> <td rowspan="1" title="outline-style - inherit (basic)"> - <a href="outline-style-002.htm">outline-style-002</a></td> - <td><a href="reference/outline-style-002-ref.htm">=</a> </td> + <a href="outline-style-012.htm">outline-style-012</a></td> + <td><a href="reference/outline-style-012-ref.htm">=</a> </td> <td rowspan="1"></td> </tr> </tbody> - <tbody id="outline-style-003" class=""> + <tbody id="outline-style-013" class=""> <tr> <td rowspan="1" title="outline-style - dashed (basic)"> - <a href="outline-style-003.htm">outline-style-003</a></td> - <td><a href="reference/outline-style-003-ref.htm">=</a> </td> + <a href="outline-style-013.htm">outline-style-013</a></td> + <td><a href="reference/outline-style-013-ref.htm">=</a> </td> <td rowspan="1"></td> </tr> </tbody> - <tbody id="outline-style-004" class=""> + <tbody id="outline-style-014" class=""> <tr> <td rowspan="1" title="outline-style - double (basic)"> - <a href="outline-style-004.htm">outline-style-004</a></td> - <td><a href="reference/outline-style-004-ref.htm">=</a> </td> + <a href="outline-style-014.htm">outline-style-014</a></td> + <td><a href="reference/outline-style-014-ref.htm">=</a> </td> <td rowspan="1"></td> </tr> </tbody> + <tbody id="text-overflow" class="ahem font"> + <tr> + <td rowspan="1" title="text-overflow - ellipsis"> + <a href="text-overflow.htm">text-overflow</a></td> + <td><a href="reference/text-overflow-ref.htm">=</a> </td> + <td rowspan="1"><abbr class="ahem" title="Requires Ahem font">Ahem</abbr><abbr class="font" title="Requires a special font">Font</abbr></td> + </tr> + </tbody> <tbody id="text-overflow-001" class=""> <tr> <td rowspan="1" title="text-overflow - clip - the text inline content overflows will be broken"> diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/reftest.list b/tests/wpt/css-tests/css-ui-3_dev/html/reftest.list index dd93eaf6c0c..c3d46060cf5 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/reftest.list +++ b/tests/wpt/css-tests/css-ui-3_dev/html/reftest.list @@ -31,6 +31,7 @@ box-sizing-border-box-004.htm == reference/box-sizing-border-box-004-ref.htm box-sizing-content-box-001.htm == reference/box-sizing-content-box-001-ref.htm box-sizing-content-box-002.htm == reference/box-sizing-content-box-002-ref.htm box-sizing-content-box-003.htm == reference/box-sizing-content-box-003-ref.htm +box-sizing-padding-box-block-001.htm == reference/box-sizing-padding-box-block-001-ref.htm box-sizing-replaced-001.htm == reference/box-sizing-replaced-001-ref.htm box-sizing-replaced-002.htm == reference/box-sizing-replaced-002-ref.htm box-sizing-replaced-003.htm == reference/box-sizing-replaced-003-ref.htm @@ -39,10 +40,11 @@ outline-002.htm == reference/ref-filled-green-100px-square.htm outline-color-001.htm == reference/ref-filled-green-100px-square.htm outline-offset.htm == reference/outline-offset.htm outline-offset-001.htm == reference/ref-filled-green-100px-square.htm -outline-style-001.htm == reference/outline-style-001-ref.htm -outline-style-002.htm == reference/outline-style-002-ref.htm -outline-style-003.htm == reference/outline-style-003-ref.htm -outline-style-004.htm == reference/outline-style-004-ref.htm +outline-style-011.htm == reference/outline-style-011-ref.htm +outline-style-012.htm == reference/outline-style-012-ref.htm +outline-style-013.htm == reference/outline-style-013-ref.htm +outline-style-014.htm == reference/outline-style-014-ref.htm +text-overflow.htm == reference/text-overflow-ref.htm text-overflow-001.htm == reference/text-overflow-001-ref.htm text-overflow-002.htm == reference/text-overflow-002-ref.htm text-overflow-003.htm == reference/text-overflow-001-ref.htm diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/text-overflow.htm b/tests/wpt/css-tests/css-ui-3_dev/html/text-overflow.htm new file mode 100644 index 00000000000..dafad976254 --- /dev/null +++ b/tests/wpt/css-tests/css-ui-3_dev/html/text-overflow.htm @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html><head><title>CSS Basic User Interface Test: text-overflow - ellipsis</title> + <link href="mailto:yreenchan@gmail.com" rel="author" title="YreenChan"> + <link href="mailto:simonp@opera.com" rel="reviewer" title="Simon Pieters"> + <link href="mailto:lstorset@opera.com" rel="reviewer" title="Leif Arne Storset"> + <link href="http://www.w3.org/TR/css3-ui/#text-overflow" rel="help" title="8.2. the 'text-overflow' property"> + <link href="reference/text-overflow-ref.htm" rel="match"> + <meta content="font ahem" name="flags"> + <meta content="'text-overflow:ellipsis' renders U+2026 when text is overflowing." name="assert"> + <style> + div { + font-size:10px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 50px; + } + span { font-family: Ahem; font-size:30px; } + </style> +</head><body> + <p>PREREQUISITE: The font used must have a glyph for the U+2026 character.</p> + <p>Test passes if there is <strong>ellipsis</strong> after a black square.</p> + <div> + <span>AAAA</span> + </div> + + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-ui-3_dev/html/toc.htm b/tests/wpt/css-tests/css-ui-3_dev/html/toc.htm index 6f851b3ab28..a79c6fdb03b 100644 --- a/tests/wpt/css-tests/css-ui-3_dev/html/toc.htm +++ b/tests/wpt/css-tests/css-ui-3_dev/html/toc.htm @@ -32,7 +32,7 @@ <tbody id="s3"> <tr><th><a href="chapter-3.htm">Chapter 3 - Box Model addition</a></th> - <td>(35 Tests)</td></tr> + <td>(36 Tests)</td></tr> </tbody> <tbody id="s4"> <tr><th><a href="chapter-4.htm">Chapter 4 - @@ -42,7 +42,7 @@ <tbody id="s5"> <tr><th><a href="chapter-5.htm">Chapter 5 - Resizing & Overflow</a></th> - <td>(11 Tests)</td></tr> + <td>(12 Tests)</td></tr> </tbody> <tbody id="s6"> <tr><th><a href="chapter-6.htm">Chapter 6 - |