blob: f868df25179a9145592d53d96ed672c8d249e951 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="resources/polyfill.js"></script>
</head>
<body>
<p>When the 'disabled' state of a select tag is changed, we have to invalidate distribution.</p>
<div id="host1">
<select id="select1"><option>Select 1</option></select>
<select id="select2"><option>Select 2</option></select>
</div>
<div id="host2">
<select id="select3" disabled><option>Select 3</option></select>
<select id="select4" disabled><option>Select 4</option></select>
</div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
host1.webkitCreateShadowRoot().innerHTML = '<content select=":disabled"></content>';
host2.webkitCreateShadowRoot().innerHTML = '<content select=":disabled"></content>';
setTimeout(function() {
select2.setAttribute('disabled', true);
select4.removeAttribute('disabled');
testRunner.notifyDone();
}, 0);
</script>
</body>
</html>