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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/hittest/text-with-text-node-only.svg

Issue 1454623002: Hit test SVG line boxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add forgotten test. Sorry, test! Created 5 years, 1 month 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
(Empty)
1 <svg onload="runTest()" width="500" height="150" viewBox="0 0 1000 300" xmlns="h ttp://www.w3.org/2000/svg">
2 <script src="../../resources/ahem.js"></script>
3 <text id="text" x="10" y="1em">Foo</text>
4 <defs>
5 <style type="text/css">
6 <![CDATA[
7 text {
8 font-family: Ahem;
9 font-size: 40px;
10 }
11 ]]>
12 </style>
13 <script type="text/javascript">
14 <![CDATA[
15 function runTest() {
16 if (window.testRunner)
17 testRunner.dumpAsText();
18
19 // (15,15) is contained within #text's glyph cell bounds.
20 var text = document.getElementById("text");
21 if (document.elementFromPoint(15, 15) === text)
22 text.textContent = "PASS";
23 else
24 text.textContent = "FAIL";
25 }
26 ]]>
27 </script>
28 </defs>
29 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698