| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 </head> | |
| 5 | |
| 6 <body> | |
| 7 | |
| 8 <p>When an input element became 'checked' or not-'checked', distribution should
happen.</p> | |
| 9 | |
| 10 <p>Case 1: input[type=checkbox] becomes checked</p> | |
| 11 <div id="host1"> | |
| 12 <input id="input1" type="checkbox"> | |
| 13 </div> | |
| 14 | |
| 15 <p>Case 2: input[type=checkbox] becomes non-checked</p> | |
| 16 <div id="host2"> | |
| 17 <input id="input2" type="checkbox" checked> | |
| 18 </div> | |
| 19 | |
| 20 <p>Case 3: input[type=radio] becomes checked</p> | |
| 21 <div id="host3"> | |
| 22 <input id="input3" name="radio3" type="radio"> | |
| 23 </div> | |
| 24 | |
| 25 <p>Case 4: input[type=radio] becomes non-checked</p> | |
| 26 <div id="host4"> | |
| 27 <input id="input4" name="radio4" type="radio" checked> | |
| 28 </div> | |
| 29 | |
| 30 | |
| 31 <script> | |
| 32 if (window.testRunner) | |
| 33 testRunner.waitUntilDone(); | |
| 34 | |
| 35 host1.createShadowRoot().innerHTML = '<content select="input:checked">'; | |
| 36 host2.createShadowRoot().innerHTML = '<content select="input:checked">'; | |
| 37 host3.createShadowRoot().innerHTML = '<content select="input:checked">'; | |
| 38 host4.createShadowRoot().innerHTML = '<content select="input:checked">'; | |
| 39 | |
| 40 setTimeout(function() { | |
| 41 input1.checked = true; | |
| 42 input2.checked = false; | |
| 43 input3.checked = true; | |
| 44 input4.checked = false; | |
| 45 testRunner.notifyDone(); | |
| 46 }, 0); | |
| 47 | |
| 48 </script> | |
| 49 </body> | |
| 50 </html> | |
| 51 | |
| OLD | NEW |