Update web-platform-tests to revision 7ed49cff4d031720f829c01df837ed7a09ad5c60

This commit is contained in:
Ms2ger 2016-02-24 09:25:47 +01:00
parent 33f0040496
commit 62a9bebeef
220 changed files with 8623 additions and 559 deletions

View file

@ -0,0 +1,18 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>CSS Selectors (:checked)</title>
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
<link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/checked/001.html"/>
<style type="text/css">
:checked, :checked + span { border: solid blue; color: blue; background: navy; }
</style>
</head>
<body>
<p>Anything that is checked below should be blue.</p>
<p><input checked type="checkbox"> <span>X</span></p>
<p><input checked type="radio" name="x"> <span>X</span> <input checked type="radio" name="x"> <span>X</span></p>
<p><select><option selected>X</option></select></p>
<p><select size="2"><option selected>X</option></select></p>
</body>
</html>

View file

@ -0,0 +1,26 @@
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>:indeterminate and input type=radio</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style type="text/css">
#test {
color: green;
}
input:indeterminate + #test {
color: red;
}
</style>
<input type="radio" name="radios">
<div id="test"></div>
<input type="radio" name="radios" checked>
<script type="text/javascript">
test(function() {
document.getElementsByTagName("input")[0].indeterminate = true;
var target = document.getElementById("test");
var val = getComputedStyle(target, null).getPropertyValue("color");
assert_equals(val, "rgb(0, 128, 0)",
"The indeterminate IDL attribute should not cause the " +
":indeterminate pseudo-class to match on input type=radio");
})
</script>