| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <div contenteditable> |
| 5 x<input><select style="display:block"><option id="anchor"></option></select> |
| 6 </div> |
| 7 <div id="log"></div> |
| 8 <script> |
| 9 test(() => { |
| 10 // Since parser reject child nodes in INPUT, we make child node in INPUT her
e |
| 11 // to make |VisibleSelection::m_extent| have INPUT, AfterAnchor. |
| 12 var input = document.querySelector('input'); |
| 13 input.appendChild(document.createElement('i')); |
| 14 |
| 15 var selection = window.getSelection(); |
| 16 selection.collapse(document.querySelector('#anchor'), 0); |
| 17 selection.extend(input, 1); |
| 18 document.execCommand('FontSizeDelta', false, '1'); |
| 19 }); |
| 20 </script> |
| OLD | NEW |