OLD | NEW |
(Empty) | |
| 1 <style> |
| 2 body { |
| 3 width: 600px; |
| 4 font: 18px/1 Ahem; |
| 5 } |
| 6 |
| 7 #triangleLeft { |
| 8 position: absolute; |
| 9 top: 0px; |
| 10 left: 0px; |
| 11 width: 400px; |
| 12 height: 400px; |
| 13 background: green; |
| 14 -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%); |
| 15 } |
| 16 </style> |
| 17 |
| 18 <div id="triangleLeft">Although the Culture was originated by humanoid species,
subsequent interactions with other civilizations have introduced many non-humano
id species into the Culture (including some former enemy civilizations), though
the majority of the biological Culture is still pan-human. Little uniformity exi
sts in the Culture, and its citizens are such by choice, free to change physical
form and even species (though some stranger biological conversions are irrevers
ible, and conversion from biological to artificial sentience is considered to be
what is known as an Unusual Life Choice). All members are also free to join, le
ave, and rejoin, or indeed declare themselves to be, say, 80% Culture.</div> |
| 19 |
| 20 <script src="../../resources/js-test.js"></script> |
| 21 <script> |
| 22 var sel = window.getSelection(); |
| 23 sel.removeAllRanges(); |
| 24 // select part of the polygon, not the text |
| 25 eventSender.mouseMoveTo(180, 40); |
| 26 eventSender.mouseDown(); |
| 27 eventSender.mouseMoveTo(200, 40); |
| 28 eventSender.mouseUp(); |
| 29 shouldBe('sel.toString()', '""'); |
| 30 |
| 31 sel.removeAllRanges(); |
| 32 // select 'Little' using select drag |
| 33 eventSender.mouseMoveTo(0, 260); |
| 34 eventSender.mouseDown(); |
| 35 eventSender.mouseMoveTo(100, 260); |
| 36 eventSender.mouseUp(); |
| 37 // verify that 'Little' was selected |
| 38 shouldBe('sel.toString()', '"Little"'); |
| 39 </script> |
OLD | NEW |