servo/tests/wpt/css-tests/selectors-4_dev/html/focus-within-3.htm
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

27 lines
No EOL
1 KiB
HTML

<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>CSS Test: :focus-within selector</title>
<link href="mailto:ethlin@mozilla.com" rel="author" title="Ethan Lin">
<link href="https://www.mozilla.org" rel="author" title="Mozilla">
<link href="https://drafts.csswg.org/selectors-4/#focus-within-pseudo" rel="help">
<meta content="Test checks :focus-within should not work for iframe" name="assert">
<link href="reference/focus-within-3-ref.htm" rel="match">
<meta content="interact" name="flags">
<style type="text/css">
div:focus-within {
border: solid 15px red;
}
iframe:focus-within {
border: solid 15px red;
}
</style>
</head>
<body>
<p>Test passes if, when the element inside the iframe is focused, there is no red border surrounded.</p>
<div>
<iframe tabindex="1" width="300px" height="300px" frameborder="0" src="focus-within-1.html">&lt;p&gt;Your browser does not support iframes.&lt;/p&gt;</iframe>
</div>
</body></html>