| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="resources/polyfill.js"></script> |
| </head> |
| |
| <body> |
| |
| <p>When the 'disabled' 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=":disabled"></content>'; |
| host2.webkitCreateShadowRoot().innerHTML = '<content select=":disabled"></content>'; |
| |
| setTimeout(function() { |
| input2.setAttribute('disabled', true); |
| input4.removeAttribute('disabled'); |
| testRunner.notifyDone(); |
| }, 0); |
| |
| </script> |
| </body> |
| </html> |
| |