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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/hittest/text-dominant-baseline-hanging.svg

Issue 1454623002: Hit test SVG line boxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup extra debugging code and minor bugs 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 <text id="text" dominant-baseline="hanging" x="10" y="10">Foo</text>
3 <defs>
4 <style type="text/css">
5 <![CDATA[
6 @font-face {
7 font-family: Ahem;
fs 2015/11/17 09:47:49 I guess we should use the ahem.js helper or there
pdr. 2015/11/17 21:51:23 Done
8 src: url(../../resources/Ahem.ttf);
9 }
10 text {
11 font-family: Ahem;
12 font-size: 40px;
13 }
14 ]]>
15 </style>
16 <script type="text/javascript">
17 <![CDATA[
18 function runTest() {
19 if (window.testRunner)
20 testRunner.dumpAsText();
21
22 // The point at 15,15 is contained within the text's bounding bo x.
fs 2015/11/17 09:47:49 This goes for the comments in all tests pretty muc
pdr. 2015/11/17 21:51:23 Done
23 var text = document.getElementById("text");
24 if (document.elementFromPoint(15, 15) === text)
25 text.textContent = "PASS";
26 else
27 text.textContent = "FAIL";
28 }
29 ]]>
30 </script>
31 </defs>
32 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698