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

Side by Side Diff: LayoutTests/fast/regions/selection/selecting-text-ignoring-region-vert-rl.html

Issue 34863002: [CSS Regions] Layout Test for selecting text ignoring region content (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/helper.js"></script> 4 <script src="../resources/helper.js"></script>
5 <link rel="stylesheet" href="../resources/region-style.css"></link> 5 <link rel="stylesheet" href="../resources/region-style.css"></link>
6 <style> 6 <style>
7 html { 7 html {
8 -webkit-writing-mode: vertical-rl; 8 -webkit-writing-mode: vertical-rl;
9 } 9 }
10
11 body {
12 margin-right: 0;
13 }
10 </style> 14 </style>
11 <script> 15 <script>
12 onMouseUpLogSelection("selected-content"); 16 onMouseUpLogSelection("selected-content");
13 </script> 17 </script>
14 </head> 18 </head>
15 <body onload="selectContentByIdsVertical('word1', 'word2');" style="margin-right : 0;"> 19 <body onload="selectContentByIdsVertical('word1', 'word2');">
16 <div class="flowArticle"> 20 <div class="flowArticle">
17 inside region inside region inside region inside region 21 inside region inside region inside region inside region
18 <span id="word1" class="token">word1</span>
19 inside region inside region inside region inside region
20 <span class="break"></span>
21 inside region inside region inside region inside region
22 <span id="word2" class="token">word2</span>
23 inside region inside region inside region inside region 22 inside region inside region inside region inside region
24 </div> 23 </div>
25 <div class="regionArticle greyBigBoxVertical"></div> 24 <div class="bigBoxVertical float">
26 <div class="bigBoxVertical">
27 outside region outside region outside region outside region 25 outside region outside region outside region outside region
26 <span id="word1" class="token">word1</span>
28 outside region outside region outside region outside region 27 outside region outside region outside region outside region
29 </div> 28 </div>
29 <div class="clear"></div>
30 <div class="regionArticle greyBigBoxVertical"></div> 30 <div class="regionArticle greyBigBoxVertical"></div>
31 <div class="bigBoxVertical float">
32 outside region outside region outside region outside region
33 <span id="word2" class="token">word2</span>
34 outside region outside region outside region outside region
35 </div>
36 <div class="clear"></div>
31 <div class="descriptionVertical"> 37 <div class="descriptionVertical">
32 <h1><a href="https://bugs.webkit.org/show_bug.cgi?id=121841">Bug #121841 - [CSS Regions] Layout Test for selecting text in 2 regions</a></h1> 38 <h1><a href="https://bugs.webkit.org/show_bug.cgi?id=122353">Bug #122353 - [CSS Regions] Layout Test for selecting text ignoring region content</a></h1>
33 <p>This test checks the selection in 2 regions. If you select from <span class="token">word1</span> to <span class="token">word2</span> you will see tha t "outside region" text is not highlighted and not included in the selected cont ent.</p> 39 <p>This test checks the selection in 2 text wrapping a region. If you se lect from <span class="token">word1</span> to <span class="token">word2</span> y ou will see that "inside region" text is not highlighted and not included in the selected content (because of the content of the region is before the "outside r egion" element in the DOM).</p>
34 <dl> 40 <dl>
35 <dt>Selected content:</dt> 41 <dt>Selected content:</dt>
36 <dd id="selected-content"></dd> 42 <dd id="selected-content"></dd>
37 </dl> 43 </dl>
38 </div> 44 </div>
39 </body> 45 </body>
40 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698