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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/font-shorthand-from-longhands.html

Issue 1955723004: Implement font-variant-numeric (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 @font-face { 5 @font-face {
6 font-family: "foobar"; 6 font-family: "foobar";
7 src: local("foobar"); 7 src: local("foobar");
8 } 8 }
9 div { 9 div {
10 font-family: "foobar"; 10 font-family: "foobar";
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 style.fontVariantLigatures = "discretionary-ligatures"; 75 style.fontVariantLigatures = "discretionary-ligatures";
76 // Shorthand cannot be built because of non-normal ligatures value. 76 // Shorthand cannot be built because of non-normal ligatures value.
77 shouldBe("style.font", "''"); 77 shouldBe("style.font", "''");
78 shouldBe("computedStyle.font", "''"); 78 shouldBe("computedStyle.font", "''");
79 // Reset for next test. 79 // Reset for next test.
80 style.fontVariantLigatures = "normal"; 80 style.fontVariantLigatures = "normal";
81 shouldBe("style.font", "'italic small-caps bold ultra-expanded 20px/40px sans-se rif'"); 81 shouldBe("style.font", "'italic small-caps bold ultra-expanded 20px/40px sans-se rif'");
82 shouldBe("computedStyle.font", "'italic small-caps bold ultra-expanded 20px / 40 px sans-serif'"); 82 shouldBe("computedStyle.font", "'italic small-caps bold ultra-expanded 20px / 40 px sans-serif'");
83 83
84 style.fontVariantNumeric = "lining-nums";
85 // Shorthand cannot be built because of non-normal numeric value.
86 shouldBe("style.font", "''");
87 shouldBe("computedStyle.font", "''");
88 // Reset for next test.
89 style.fontVariantNumeric = "normal";
90 shouldBe("style.font", "'italic small-caps bold ultra-expanded 20px/40px sans-se rif'");
91 shouldBe("computedStyle.font", "'italic small-caps bold ultra-expanded 20px / 40 px sans-serif'");
92
84 style.font = ""; 93 style.font = "";
85 shouldBe("style.font", "''"); 94 shouldBe("style.font", "''");
86 shouldBe("computedStyle.font", "'normal normal normal normal 16px / normal fooba r'"); 95 shouldBe("computedStyle.font", "'normal normal normal normal 16px / normal fooba r'");
87 shouldBe("checkFontStyleValue()", "true"); 96 shouldBe("checkFontStyleValue()", "true");
88 97
89 style.fontVariantCaps = "all-small-caps"; 98 style.fontVariantCaps = "all-small-caps";
90 shouldBe("style.fontVariantCaps", "'all-small-caps'"); 99 shouldBe("style.fontVariantCaps", "'all-small-caps'");
91 // Font shorthand is reset to empty string since all-small-caps cannot be repres ented. 100 // Font shorthand is reset to empty string since all-small-caps cannot be repres ented.
92 shouldBe("computedStyle.font", "''"); 101 shouldBe("computedStyle.font", "''");
93 shouldBe("style.font", "''"); 102 shouldBe("style.font", "''");
94 103
95 document.body.removeChild(testContainer); 104 document.body.removeChild(testContainer);
96 </script> 105 </script>
97 </body> 106 </body>
98 </html> 107 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698