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

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: 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..835e3d61d85110b45761e518d283f5bff52d7662
--- /dev/null
+++ b/LayoutTests/fast/text/font-size-adjust.html
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style type="text/css">
+ div.wrapper {
+ font-size: 200px;
+ line-height: 1;
+ }
+
+ img {
+ height: 1px;
+ margin-right: -100%;
+ width: 100%;
+ }
+
+ img.top-x-height {
+ /* 200px mult by 0.450 == 90px */
+ vertical-align: 90px;
+ }
+
+ img.baseline {
+ vertical-align: -1px;
+ }
+
+ span.test {
+ /*
+ List of 5 font faces with relatively big aspect values
+
+ DejaVu Sans' aspect value == 0.547
+ Oxygen Sans' aspect value == 0.540
+ Liberation Sans' aspect value == 0.530
+ (DejaVu Sans, Oxygen Sans and Liberation Sans are font
+ faces very often installed under Linux Debian-distributions)
+
+ Verdana's aspect value == 0.545
+ Tahoma's aspect value == 0.545
+ (Verdana and Tahoma are font faces very often pre-installed
+ under Windows and Mac X operating systems.)
+ */
+ font-family: "DejaVu Sans", "Oxygen Sans", "Liberation Sans", Verdana, Tahoma;
+
+ /*
+ This test presumes that the tester will have at least
+ one of the following font installed on his/her operating system:
+ "DejaVu Sans", "Oxygen Sans", "Liberation Sans", Verdana, Tahoma
+ */
+ font-size-adjust: 0.450;
+ -webkit-text-size-adjust: 0.450;
+ }
+
+ span.reference {
+ /*
+ Rachana's aspect value == 0.450
+ Nimbus Roman No9 L's aspect value == 0.450
+ (Rachana and Nimbus Roman No9 L are font faces often installed under Linux Debian-distributions)
+
+ Times New Roman's aspect value == 0.448
+ (Times New Roman is a font face is very often pre-installed under Windows & Mac X operating systems.)
+ */
+ font-family: Rachana, "Nimbus Roman No9 L", "Times New Roman";
+ }
+ </style>
+ </head>
+ <body>
+ <div class="wrapper">
+ <img class="top-x-height" src="./resources/1x1-red.png"><img class="baseline" src="./resources/1x1-red.png">
+ <span class="test">x</span>
+ <span class="reference">x</span>
+ </div>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/text/font-size-adjust-expected.png » ('j') | Source/core/css/CSSProperties.in » ('J')

Powered by Google App Engine
This is Rietveld 408576698