Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <title>Justify center and remove redounded div wont crash</title> | |
|
Xiaocheng
2016/12/22 03:25:51
Could you mentioned the bug number in the layout t
chongz
2016/12/22 05:14:50
Done.
| |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <div><div> | |
| 5 <div></div> | |
| 6 <ul> | |
| 7 <li> | |
| 8 <div></div> | |
| 9 <input> | |
| 10 <style> * {-webkit-user-modify: read-write;}</style><div></div> | |
| 11 </li> | |
| 12 </ul></div></div> | |
| 13 <script> | |
| 14 test(() => { | |
| 15 const li = document.getElementsByTagName("li")[0]; | |
|
dominicc (has gone to gerrit)
2016/12/22 03:56:32
If you just do querySelector you'll get the 0th on
chongz
2016/12/22 05:14:50
Done.
| |
| 16 window.getSelection().collapse(li, 0); | |
| 17 document.execCommand('JustifyRight'); | |
| 18 }, 'Justify center and remove redounded div wont crash'); | |
|
dominicc (has gone to gerrit)
2016/12/22 03:56:32
This description needs some work. Is this Justify,
chongz
2016/12/22 05:14:50
Sorry for the typo... I've added a comment for the
| |
| 19 </script> | |
| OLD | NEW |