Index: LayoutTests/fast/text/font-size-adjust.html |
diff --git a/LayoutTests/fast/text/font-size-adjust.html b/LayoutTests/fast/text/font-size-adjust.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2817ace2c6777ce7e6735f0177ece0b07e1df786 |
--- /dev/null |
+++ b/LayoutTests/fast/text/font-size-adjust.html |
@@ -0,0 +1,41 @@ |
+<!DOCTYPE html> |
+<style type="text/css"> |
+.container { |
+ font-size: 200px; |
+ line-height: 1; |
+} |
+ |
+@font-face { |
+ /* LinLibertine_R's aspect value = 0.440918 on mac */ |
+ font-family : 'referenceFont'; |
+ src : url('../../third_party/Libertine/LinLibertine_R.woff') format("woff"); |
+} |
+ |
+@font-face { |
+ /* OpenSans-Regular's aspect = 0.544922 on mac */ |
+ /* OpenSans-Regular's aspect = 0.535156 on linux */ |
+ font-family : 'testFont'; |
+ src : url('../../resources/opensans/OpenSans-Regular.woff') format("woff"); |
+} |
+ |
+.test { |
+ font-family: testFont; |
+ font-size-adjust: 0.440; |
+} |
+ |
+.testNone { |
+ font-family: testFont; |
+ font-size-adjust: none; |
+} |
+ |
+.reference { |
+ font-family: referenceFont; |
+} |
+</style> |
+ |
+<div class="container"> |
+ <span class="test">x</span><span class="reference">x</span> |
+</div> |
+<div class="container"> |
+ <span class="testNone">z</span><span class="reference">z</span> |
+</div> |