Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <style> | 1 <style> |
| 2 @font-face { | 2 @font-face { |
| 3 font-family: ahem; | 3 font-family: ahem; |
| 4 src: url(Ahem.ttf); | 4 src: url(Ahem.ttf); |
| 5 } | 5 } |
| 6 * { | 6 * { |
| 7 font-family: ahem; | 7 font-family: ahem; |
| 8 margin: 0; | 8 margin: 0; |
| 9 padding: 0; | 9 padding: 0; |
| 10 background-color: transparent; /* Prevent scrolling layer promotion to i t's own layer */ | |
|
flackr
2016/08/02 15:02:44
nit: For clarity, can we mention this is for the t
Stephen Chennney
2016/08/02 19:00:00
Done.
| |
| 10 } | 11 } |
| 11 </style> | 12 </style> |
| 12 <textarea id="text"> | 13 <textarea id="text"> |
| 13 The quick brown fox jumped over the lazy dog. | 14 The quick brown fox jumped over the lazy dog. |
| 14 </textarea> | 15 </textarea> |
| 15 <script> | 16 <script> |
| 16 var textNode = document.getElementById("text"); | 17 var textNode = document.getElementById("text"); |
| 17 textNode.focus(); | 18 textNode.focus(); |
| 18 | 19 |
| 19 var expectEditable = true; | 20 var expectEditable = true; |
| 20 var expectEmptyTextFormControl = false; | 21 var expectEmptyTextFormControl = false; |
| 21 var yBottomEpsilon = 2; | 22 var yBottomEpsilon = 2; |
| 22 window.expectedResult = [document, 1, 1, 1, 14, document, 1, 1, 1, 14, expec tEditable, expectEmptyTextFormControl, yBottomEpsilon]; | 23 window.expectedResult = [document, 1, 1, 1, 14, document, 1, 1, 1, 14, expec tEditable, expectEmptyTextFormControl, yBottomEpsilon]; |
| 23 </script> | 24 </script> |
| 24 | 25 |
| OLD | NEW |