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

Unified Diff: LayoutTests/fast/text/selection-multiple-runs.html

Issue 627273003: Carry advances between runs in HarfBuzzShaper.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have Linux baseline be generated by the bot Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/fonts/harfbuzz/HarfBuzzShaper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text/selection-multiple-runs.html
diff --git a/LayoutTests/fast/text/selection-multiple-runs.html b/LayoutTests/fast/text/selection-multiple-runs.html
new file mode 100644
index 0000000000000000000000000000000000000000..7546b405de56edba681308f1aa5893806e72e07a
--- /dev/null
+++ b/LayoutTests/fast/text/selection-multiple-runs.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8">
+ <title>Test selection across multiple shaper runs</title>
+ <style>
+ body { font-size: 30px; }
+ ::selection { color: red; background: rgba(120,120,120,120); }
+ </style>
+ </head>
+ <body>
+ <p>The selection should be painted correctly from and including 猫 until and including C, then from right to left for العر. </p>
+ <div>吾輩は猫で मानक हिन्दीABCالعربية</div>
+ <div id="multiruns">吾輩は猫で मानक हिन्दीABCالعربية</div>
+ <script>
+ var node = document.getElementById('multiruns').firstChild;
+ var range = document.createRange();
+ range.setStart(node, 3);
+ range.setEnd(node, node.length - 3);
+ window.getSelection().addRange(range);
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/platform/fonts/harfbuzz/HarfBuzzShaper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698