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

Unified Diff: third_party/WebKit/LayoutTests/svg/text/selection-style-within-mask-crash.html

Issue 2648343004: Don't paint selections in <mask>s, <clipPath>s and <pattern>s (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « no previous file | third_party/WebKit/LayoutTests/svg/text/selection-style-within-mask-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/text/selection-style-within-mask-crash.html
diff --git a/third_party/WebKit/LayoutTests/svg/text/selection-style-within-mask-crash.html b/third_party/WebKit/LayoutTests/svg/text/selection-style-within-mask-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..b4ef3214f04581898db9876d132084370b46346d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/text/selection-style-within-mask-crash.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<style>
+text::selection { color: blue; }
+</style>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+window.onload = function () {
+ var range = document.createRange();
+ range.setEnd(id1, id1.childNodes.length);
+ document.getSelection().addRange(range);
+ document.getElementById("masktext").setAttribute("display", "inherit");
+};
+</script>
+<svg>
+ <mask id="m1">
+ <text id="masktext" y="100" fill="white" font-size="100">PASS</text>
+ </mask>
+ <rect width="100%" height="100" id="id1" mask="url(#m1)"/>
+</svg>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/text/selection-style-within-mask-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698