Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: LayoutTests/fast/masking/clip-path-selection.html

Issue 240423005: [CSS Shapes] Can't select content within the area of the floating box when clip-path is applied (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to make test more stable Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/masking/clip-path-selection-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/masking/clip-path-selection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698