| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 </head> | |
| 5 | |
| 6 <body> | |
| 7 | |
| 8 <p>When the 'enabled' state of a select tag is changed, we have to invalidate di
stribution.</p> | |
| 9 | |
| 10 <div id="host1"> | |
| 11 <select id="select1"><option>Select 1</option></select> | |
| 12 <select id="select2"><option>Select 2</option></select> | |
| 13 </div> | |
| 14 | |
| 15 <div id="host2"> | |
| 16 <select id="select3" disabled><option>Select 3</option></select> | |
| 17 <select id="select4" disabled><option>Select 4</option></select> | |
| 18 </div> | |
| 19 | |
| 20 <script> | |
| 21 if (window.testRunner) | |
| 22 testRunner.waitUntilDone(); | |
| 23 | |
| 24 host1.createShadowRoot().innerHTML = '<content select=":enabled"></content>'; | |
| 25 host2.createShadowRoot().innerHTML = '<content select=":enabled"></content>'; | |
| 26 | |
| 27 setTimeout(function() { | |
| 28 select2.setAttribute('disabled', true); | |
| 29 select4.removeAttribute('disabled'); | |
| 30 testRunner.notifyDone(); | |
| 31 }, 0); | |
| 32 | |
| 33 </script> | |
| 34 </body> | |
| 35 </html> | |
| 36 | |
| OLD | NEW |