summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/font-synthesis-style-binary.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-fonts/font-synthesis-style-binary.html')
-rw-r--r--testing/web-platform/tests/css/css-fonts/font-synthesis-style-binary.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-fonts/font-synthesis-style-binary.html b/testing/web-platform/tests/css/css-fonts/font-synthesis-style-binary.html
new file mode 100644
index 0000000000..1391d97386
--- /dev/null
+++ b/testing/web-platform/tests/css/css-fonts/font-synthesis-style-binary.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta charset="utf-8"/>
+<title>CSS Test: font-synthesis-style: none disables fake italic/oblique</title>
+<link rel="match" href="font-synthesis-style-binary-ref.html">
+<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-synthesis-style">
+<meta name="assert" content=" If ‘style’ is not specified, user agents must not synthesize italic faces for base64 encoded fonts">
+<style>
+ @font-face {
+ font-family: "NotoSans subset";
+ src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAAs4ABEAAAAAEsAAAArbAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbgQ4cMgZgAGQIgX4JjzQREAqGGIU9CxQAATYCJAMkBCAFgjgHIAyEGhsoESMRwcYBBPS+OtlfHphDRE0PmY9orCaG8CHhhnQfLmmvI6tM6zjqEHjW5ciGfInp7m/Y/hupDzxeun7CTf/dXYIFq2myz6BitMwkK3UqKSRoBapGJ87E2okL/W6G/znV9yX5a3nMWOmGayEjhRbAMcbxEpAC1ivipYE4BLnteGCjFFInNLJmN4vOkKrBFt3w/9W9yiW0C6TCU1/Zdhn+txwkqSh/oClTy3NzlGzDdctb1y4bb0n6o/73PwA/+syKMLhc+9ducvdRcVERqApHStaYbJIHuTyi/YS5ArKqrJCtq6sjgvEVpg5YWNtjv/nQ2ix46gpueIuozzcNIABQM7C4bJcDqp5N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c4J0ZGTY7tTHrHbwkrBF0abw0aHdXy9NyyTNw7S7nNPILTds2HbNijutnCRwx32p3k0a+M8C11InzYRD8VbMJiT0xQcXcggBwVyzeNBLoyfo0MSjCZYS60QJseRIgKaYJFLbAIAAA==);
+ font-style: normal;
+ font-weight: 400;
+ }
+ @supports not (font-synthesis-style: none) {
+ .test {color: red;}
+ }
+ .test {
+ font-family: "NotoSans subset";
+ font-size: 3em;
+ }
+ .nosynth {
+ font-style: italic;
+ font-synthesis-style: none;
+ }
+</style>
+
+<p>Test passes if the two lines below are identical (the second line is <em>not obliqued</em>), and there is no red.</p>
+<section class="test">
+ <p>Filler text</p>
+ <p class="nosynth">Filler text</p>
+</section>