| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 </head> | |
| 5 | |
| 6 <body> | |
| 7 | |
| 8 <p>When input became 'indeterminate' state or not-'indeterminate' state, distrib
ution should happen.</p> | |
| 9 | |
| 10 <div id="host"> | |
| 11 <input id="input1" type="checkbox"> | |
| 12 <span>separator 1</span> | |
| 13 <input id="input2" type="checkbox"> | |
| 14 <span>separator 2</span> | |
| 15 <input id="input3" type="checkbox"> | |
| 16 <span>separator 3</span> | |
| 17 <input id="input4" type="text"> | |
| 18 <span>separator 4</span> | |
| 19 <input id="input5" type="text"> | |
| 20 <span>separator 5</span> | |
| 21 <input id="input6" type="text"> | |
| 22 </div> | |
| 23 <script> | |
| 24 if (window.testRunner) | |
| 25 testRunner.waitUntilDone(); | |
| 26 | |
| 27 input1.indeterminate = true; | |
| 28 input2.indeterminate = true; | |
| 29 input4.indeterminate = true; | |
| 30 input5.indeterminate = true; | |
| 31 | |
| 32 var shadowRoot = host.createShadowRoot(); | |
| 33 shadowRoot.innerHTML = '<content select="span, input:indeterminate"></content>'; | |
| 34 | |
| 35 setTimeout(function() { | |
| 36 input1.indeterminate = false; | |
| 37 input3.indeterminate = true; | |
| 38 input4.indeterminate = false; | |
| 39 input6.indeterminate = true; | |
| 40 | |
| 41 input2.type = 'text'; | |
| 42 input5.type = 'checkbox'; | |
| 43 testRunner.notifyDone(); | |
| 44 }, 0); | |
| 45 | |
| 46 </script> | |
| 47 </body> | |
| 48 </html> | |
| 49 | |
| OLD | NEW |