1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/font-face/underline-offset-change-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 1.5 + "http://www.w3.org/TR/html4/strict.dtd"> 1.6 +<html lang="en-US" class="reftest-wait"> 1.7 +<head> 1.8 + <title>Switching first font to one with higher underline</title> 1.9 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 1.10 + <style type="text/css"> 1.11 + 1.12 + @font-face { 1.13 + font-family: "Mark2AHighUnderline"; 1.14 + src: url(../fonts/mark2A-highunderline.ttf); 1.15 + } 1.16 + 1.17 + </style> 1.18 + <style type="text/css"> 1.19 + 1.20 + @font-face { 1.21 + font-family: "MarkALowUnderline"; 1.22 + src: url(../fonts/markA-lowunderline.ttf); 1.23 + } 1.24 + 1.25 + body { font-family: "Mark2AHighUnderline", "MarkALowUnderline"; } 1.26 + 1.27 + p { text-decoration: underline; border: blue solid; padding: 0.2em; } 1.28 + 1.29 + </style> 1.30 + <script type="application/ecmascript"> 1.31 + 1.32 + document.getElementsByTagName("style")[0].disabled = true; 1.33 + 1.34 + function run() { 1.35 + // The resize-detector iframe will remove the class attribute. 1.36 + document.getElementsByTagName("iframe")[0].contentWindow.arm_for_wider(); 1.37 + 1.38 + document.getElementsByTagName("style")[0].disabled = false; 1.39 + } 1.40 + 1.41 + </script> 1.42 +</head> 1.43 +<body onload="setTimeout(run, 20)"> 1.44 + 1.45 +<p style="position:relative; width: -moz-max-content">A<iframe style="visibility:hidden;position:absolute;height:100%;width:100%" src="resize-detector-iframe.html"></iframe></p> 1.46 + 1.47 +</body> 1.48 +</html>