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

Side by Side Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-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: Add a test 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/shapes/shape-outside-floats/shape-outside-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 }
5
6 #background {
7 position: absolute;
8 top: 8px;
9 left: 8px;
10 z-index: -1;
11 width: 200px;
12 height: 200px;
13 background: lightgreen;
14 }
15
16 #triangleLeft {
17 width: 200px;
18 height: 200px;
19 float: left;
20 shape-outside: polygon(0 0, 100% 50%, 0 100%);
21 -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
22 shape-margin: 4px;
23 background-color: yellow;
24 }
25 </style>
26
27 <div id="triangleLeft"></div>Although the Culture was originated by humanoid spe cies, subsequent interactions with other civilizations have introduced many non- humanoid species into the Culture (including some former enemy civilizations), t hough the majority of the biological Culture is still pan-human. Little uniformi ty exists in the Culture, and its citizens are such by choice, free to change ph ysical form and even species (though some stranger biological conversions are ir reversible, 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 jo in, leave, and rejoin, or indeed declare themselves to be, say, 80% Culture.
28
29 <script src="../../../resources/js-test.js"></script>
30 <script>
31 if (window.testRunner)
32 testRunner.dumpAsText();
33 // select 'other' using double-click.
34 eventSender.mouseMoveTo(100, 30);
35 eventSender.mouseDown();
36 eventSender.mouseUp();
37 eventSender.mouseDown();
38 eventSender.mouseUp();
39 // verify that 'other' was selected
40 shouldBe('window.getSelection().toString()', '"other"');
krit 2014/04/16 20:08:20 Can you do a positive check as well? Also, since t
41 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-clip-path-selection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698