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

Side by Side Diff: LayoutTests/paint/selection/invalidation-rect-excludes-newline-for-rtl.html

Issue 1355913004: Disable newline selection highlighting for vertical and RTL text. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@474759_invalidate_br_and_horiz_only
Patch Set: Merge changes. Created 5 years, 3 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 <script src="../../resources/ahem.js"></script> 2 <script src="../../resources/ahem.js"></script>
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 <script src="resources/selection.js"></script> 4 <script src="resources/selection.js"></script>
5 <script> 5 <script>
6 // Selects two lines and expects a newline to be represented. 6 // Selects two lines and expects a newline to *not* be represented as newline
7 // highlight selection is currently only enabled for LTR text.
7 function repaintTest() { 8 function repaintTest() {
8 selectRange(container, 0, container, 1); 9 selectRange(container, 0, container, 1);
9 }; 10 };
10 window.onload = runRepaintTest; 11 window.onload = runRepaintTest;
11 </script> 12 </script>
12 <style> 13 <style>
13 div { 14 div {
15 direction: rtl;
14 font-family: Ahem; 16 font-family: Ahem;
17 unicode-bidi: bidi-override;
15 width: 2em; 18 width: 2em;
16 } 19 }
17 </style> 20 </style>
18 <div id="container"> 21 <div id="container">
19 xx y 22 xx y
20 </div> 23 </div>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/paint/selection/invalidation-rect-excludes-newline-for-rtl-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698