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

Side by Side Diff: LayoutTests/svg/custom/zoomed-alignment-baseline.html

Issue 1212753002: Convert tests (except fast/, imported/) using ahem font to ahem.js style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <title>Test that alignment-baseline is unaffected by zoom level</title> 2 <title>Test that alignment-baseline is unaffected by zoom level</title>
3 <script src="../../resources/ahem.js"></script>
3 <script src="../../resources/testharness.js"></script> 4 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 5 <script src="../../resources/testharnessreport.js"></script>
5 <svg width="250" height="140" viewBox="0 0 250 140" 6 <svg width="250" height="140" viewBox="0 0 250 140"
6 xmlns="http://www.w3.org/2000/svg" version="1.1"> 7 xmlns="http://www.w3.org/2000/svg" version="1.1">
7 <style> 8 <style>
8 text { 9 text {
9 font-family: ahem; 10 font-family: ahem;
10 font-size: 20px; 11 font-size: 20px;
11 } 12 }
12 </style> 13 </style>
(...skipping 26 matching lines...) Expand all
39 test(function () { 40 test(function () {
40 assert_approx_equals(baselineShiftDelta, expectedDeltas[alignmen tBaselineValue], 1); 41 assert_approx_equals(baselineShiftDelta, expectedDeltas[alignmen tBaselineValue], 1);
41 }, "Text bounds height at zoom " + zoom + " with alignment-baseline= " + alignmentBaselineValue); 42 }, "Text bounds height at zoom " + zoom + " with alignment-baseline= " + alignmentBaselineValue);
42 }); 43 });
43 }); 44 });
44 html.style.zoom = 1; 45 html.style.zoom = 1;
45 // Clean up to avoid being classified as a text test; avoids an -expected.tx t file. 46 // Clean up to avoid being classified as a text test; avoids an -expected.tx t file.
46 document.querySelector('text').remove(); 47 document.querySelector('text').remove();
47 </script> 48 </script>
48 </svg> 49 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/focus-ring-text-expected.html ('k') | LayoutTests/svg/custom/zoomed-baseline-shift.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698