mirror of
https://github.com/servo/servo.git
synced 2025-08-21 13:25:34 +01:00
Update web-platform-tests to revision be5419e845d39089ba6dc338c1bd0fa279108317
This commit is contained in:
parent
aa199307c8
commit
2b6f573eb5
3440 changed files with 109438 additions and 41750 deletions
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS test reference</title>
|
||||
<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
|
||||
<style>
|
||||
span { color: green; }
|
||||
</style>
|
||||
<body>
|
||||
<a></a><span>This should be green</span>
|
||||
</body>
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS test: Handling of dynamic changes to :any-link selectors</title>
|
||||
<link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
|
||||
<link rel="match" href="any-link-dynamic-001-ref.html">
|
||||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-any-link-pseudo">
|
||||
<style>
|
||||
span { color: green; }
|
||||
:any-link + span { color: red; }
|
||||
</style>
|
||||
<body onload="window.oldColor = getComputedStyle(document.querySelector('span')).color;
|
||||
document.querySelector('a').removeAttribute('href');">
|
||||
<a href=""></a><span>This should be green</span>
|
||||
</body>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Selectors Invalidation: :any-link</title>
|
||||
<link rel="author" title="Victoria Su" href="mailto:victoriaytsu@google.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-any-link-pseudo">
|
||||
<meta name="assert" content="This tests that the :any-link selector is effective">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
#link { background-color: red }
|
||||
#link:any-link { background-color: green }
|
||||
#link + div { color: pink }
|
||||
</style>
|
||||
<a id="link">This link should have a green background.</a>
|
||||
<div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<script>
|
||||
test(function() {
|
||||
var red = "rgb(255, 0, 0)";
|
||||
var green = "rgb(0, 128, 0)";
|
||||
|
||||
assert_equals(getComputedStyle(link).backgroundColor, red);
|
||||
|
||||
link.href = "not-visited.html";
|
||||
|
||||
assert_equals(getComputedStyle(link).backgroundColor, green);
|
||||
}, "Style was recalculated for the :any-link pseudo class.");
|
||||
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue