Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab

This commit is contained in:
James Graham
2015-03-27 09:18:12 +00:00
parent 1a81b18b9f
commit 2c9faf5363
91915 changed files with 5979820 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: :focus pseudo-class - adjacent sibling selector</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="http://www.w3.org/TR/html4/interact/forms.html#h-17.11">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#dynamic-pseudo-classes">
<link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors">
<meta name="flags" content="interact">
<meta name="assert" content="An HTML 4 textarea must be focused in order to enter text into it. The :focus pseudo-class applies to a textarea while it has the focus (accepts keyboard events or other forms of text input).">
<style type="text/css">
span
{
color: white;
font-size: 150%;
}
textarea:focus + span
{
color: green;
}
</style>
</head>
<body>
<p>Enter in the text field below with the pointing device or with the keyboard (with the tab key or with the "T" accesskey) and then enter some text into it. A message in green should then have appeared on its right-hand side indicating that such text field has received focus. In order to pass this test, the tester should not have to move the pointing device outside the text field.</p>
<div>
<textarea cols="32" rows="4" accesskey="T" tabindex="1"></textarea> <span>Focus received by text field</span>
</div>
</body>
</html>