blob: 170e3cc87491d278761c3cbbb134151f2c0bc22f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<style>
legend:hover {
background: lime;
}
</style>
<h1>Header</h1>
<fieldset>
<legend>Legend</legend>
</fieldset>
<script>
// https://crbug.com/1127743
promise_test(async () => {
await test_driver.click(document.querySelector('legend'));
assert_not_equals(document.querySelector('legend:hover'), null);
}, 'The rendered LEGEND should work well for :hover.');
</script>
|