mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision bc60e6f82132cfc9a5b688c566c7772024b3c15c
This commit is contained in:
parent
449881f566
commit
29156ca9e2
223 changed files with 7517 additions and 2093 deletions
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html><head>
|
||||
<meta charset="utf-8">
|
||||
<title>Reference: Insert text node as first child in LI</title>
|
||||
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
|
||||
<style>
|
||||
ul.inside { list-style-position: inside; }
|
||||
.before::before { content: "before"; }
|
||||
.after::after { content: "after"; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul class="inside">
|
||||
<li>AB</li>
|
||||
</ul>
|
||||
|
||||
<ul class="inside">
|
||||
<li class="before">AB</li>
|
||||
</ul>
|
||||
|
||||
<ul class="inside">
|
||||
<li class="after">AB</li>
|
||||
</ul>
|
||||
|
||||
<ul class="inside">
|
||||
<li class="before after">AB</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li>AB</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="before">AB</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="after">AB</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="before after">AB</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,60 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html class="reftest-wait"><head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test: Insert text node as first child in LI</title>
|
||||
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
|
||||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1567773">
|
||||
<link rel="match" href="li-insert-child-ref.html">
|
||||
<style>
|
||||
ul.inside { list-style-position: inside; }
|
||||
.before::before { content: "before"; }
|
||||
.after::after { content: "after"; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<ul class="inside">
|
||||
<li>B</li>
|
||||
</ul>
|
||||
|
||||
<ul class="inside">
|
||||
<li class="before">B</li>
|
||||
</ul>
|
||||
|
||||
<ul class="inside">
|
||||
<li class="after">B</li>
|
||||
</ul>
|
||||
|
||||
<ul class="inside">
|
||||
<li class="before after">B</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li>B</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="before">B</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="after">B</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="before after">B</li>
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
document.body.offsetHeight;
|
||||
let items = Array.prototype.slice.call(document.querySelectorAll('li'));
|
||||
items.map(li => li.insertBefore(document.createTextNode('A'), li.firstChild));
|
||||
document.documentElement.className = '';
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -15,10 +15,10 @@
|
|||
test_computed_value('list-style', 'none', 'outside none none');
|
||||
|
||||
test_computed_value('list-style', 'inside', 'inside none disc');
|
||||
test_computed_value('list-style', 'url("https://example.com/")', 'outside url("https://example.com/") disc');
|
||||
test_computed_value('list-style', 'url("https://{{host}}/")', 'outside url("https://{{host}}/") disc');
|
||||
test_computed_value('list-style', 'square', 'outside none square');
|
||||
|
||||
test_computed_value('list-style', 'inside url("https://example.com/") square');
|
||||
test_computed_value('list-style', 'inside url("https://{{host}}/") square');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue