Title: [176126] trunk/LayoutTests
Revision
176126
Author
[email protected]
Date
2014-11-14 10:21:53 -0800 (Fri, 14 Nov 2014)

Log Message

Test that small caps of web fonts works regardless of where the font face is declared
https://bugs.webkit.org/show_bug.cgi?id=138700

Reviewed by Alexey Proskuryakov.

* fast/text/svg-small-caps-expected.html: Added.
* fast/text/svg-small-caps.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (176125 => 176126)


--- trunk/LayoutTests/ChangeLog	2014-11-14 18:00:58 UTC (rev 176125)
+++ trunk/LayoutTests/ChangeLog	2014-11-14 18:21:53 UTC (rev 176126)
@@ -1,3 +1,13 @@
+2014-11-14  Myles C. Maxfield  <[email protected]>
+
+        Test that small caps of web fonts works regardless of where the font face is declared
+        https://bugs.webkit.org/show_bug.cgi?id=138700
+
+        Reviewed by Alexey Proskuryakov.
+
+        * fast/text/svg-small-caps-expected.html: Added.
+        * fast/text/svg-small-caps.html: Added.
+
 2014-11-14  Alexey Proskuryakov  <[email protected]>
 
         Many (most?)  transitions tests are very flaky, frequently failing all at once

Added: trunk/LayoutTests/fast/text/svg-small-caps-expected.html (0 => 176126)


--- trunk/LayoutTests/fast/text/svg-small-caps-expected.html	                        (rev 0)
+++ trunk/LayoutTests/fast/text/svg-small-caps-expected.html	2014-11-14 18:21:53 UTC (rev 176126)
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+    This test makes sure that small-caps of web fonts work regardless of whether
+    the web font is supplied in SVG or in CSS.
+    <svg width="500px" height="40px">
+        <defs>
+            <font-face font-family="DroidSans">
+                <font-face-src>
+                    <font-face-uri xlink:href="" format="truetype"/>
+                </font-face-src>
+            </font-face>
+        </defs>
+        <text font-family="DroidSans" x="0" y="16" font-variant="normal">This is some text</text>
+        <text font-family="DroidSans" x="0" y="32" font-variant="small-caps">This is some text</text>
+    </svg>
+    <div style="font-family: DroidSans; font-variant: small-caps;">This is some text</div>
+    <div style="font-family: DroidSans;">This is some text</div>
+</body>
+</html>
+

Added: trunk/LayoutTests/fast/text/svg-small-caps.html (0 => 176126)


--- trunk/LayoutTests/fast/text/svg-small-caps.html	                        (rev 0)
+++ trunk/LayoutTests/fast/text/svg-small-caps.html	2014-11-14 18:21:53 UTC (rev 176126)
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+@font-face {
+    font-family: "DroidSans";
+    src: url("../writing-mode/resources/DroidSansFallback-reduced.ttf") format("truetype");
+}
+</style>
+</head>
+<body>
+    This test makes sure that small-caps of web fonts work regardless of whether
+    the web font is supplied in SVG or in CSS.
+    <svg width="500px" height="40px">
+        <text font-family="DroidSans" x="0" y="16" font-variant="normal">This is some text</text>
+        <text font-family="DroidSans" x="0" y="32" font-variant="small-caps">This is some text</text>
+    </svg>
+    <div style="font-family: DroidSans; font-variant: small-caps;">This is some text</div>
+    <div style="font-family: DroidSans;">This is some text</div>
+</body>
+</html>
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to