OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> |
| 3 <style> |
| 4 .target { |
| 5 display: inline-block; |
| 6 font-size: 60pt; |
| 7 color: rgb(50, 50, 50); |
| 8 } |
| 9 .expected { |
| 10 margin-right: 15px; |
| 11 } |
| 12 </style> |
| 13 <body contenteditable> |
| 14 <template id="target-template">T</template> |
| 15 <script src="../interpolation/resources/interpolation-test.js"></script> |
| 16 <script> |
| 17 assertComposition({ |
| 18 property: 'caret-color', |
| 19 underlying: 'rgb(50, 50, 50)', |
| 20 addFrom: 'rgb(100, 100, 100)', |
| 21 addTo: 'rgb(200, 200, 200)', |
| 22 }, [ |
| 23 {at: -0.3, is: 'rgb(70, 70, 70)'}, |
| 24 {at: 0, is: 'rgb(100, 100, 100)'}, |
| 25 {at: 0.5, is: 'rgb(150, 150, 150)'}, |
| 26 {at: 1, is: 'rgb(200, 200, 200)'}, |
| 27 {at: 1.5, is: 'rgb(250, 250, 250)'}, |
| 28 ]); |
| 29 |
| 30 assertComposition({ |
| 31 property: 'caret-color', |
| 32 underlying: 'auto', |
| 33 addFrom: 'rgb(100, 100, 100)', |
| 34 addTo: 'rgb(200, 200, 200)', |
| 35 }, [ |
| 36 {at: -0.3, is: 'rgb(70, 70, 70)'}, |
| 37 {at: 0, is: 'rgb(100, 100, 100)'}, |
| 38 {at: 0.5, is: 'rgb(150, 150, 150)'}, |
| 39 {at: 1, is: 'rgb(200, 200, 200)'}, |
| 40 {at: 1.5, is: 'rgb(250, 250, 250)'}, |
| 41 ]); |
| 42 </script> |
| 43 </body> |
OLD | NEW |