blob: 0d7b940e3e2d0f763e3de74ce3cb1f04c5e86138 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="resources/polyfill.js"></script>
</head>
<body>
<p>When the 'enabled' state of an input tag is changed, we have to invalidate distribution.</p>
<div id="host1">
<input id="input1" value="Input 1">
<input id="input2" value="Input 2">
</div>
<div id="host2">
<input id="input3" value="Input 3" disabled>
<input id="input4" value="Input 4" disabled>
</div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
host1.webkitCreateShadowRoot().innerHTML = '<content select=":enabled"></content>';
host2.webkitCreateShadowRoot().innerHTML = '<content select=":enabled"></content>';
setTimeout(function() {
input2.setAttribute('disabled', true);
input4.removeAttribute('disabled');
testRunner.notifyDone();
}, 0);
</script>
</body>
</html>