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.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176126
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-11-14 Myles C. Maxfield <mmaxfield@apple.com>
+
+ 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 <ap@apple.com>
Many (most?) transitions tests are very flaky, frequently failing all at once
--- /dev/null
+<!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="../writing-mode/resources/DroidSansFallback-reduced.ttf" 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>
+
--- /dev/null
+<!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>
+