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

Unified Diff: LayoutTests/fast/text/font-size-adjust.html

Issue 943463002: Initial implementation of font-size-adjust (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add some tests which need a rebaseline to TestExpectation Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698