Changeset 211060 in webkit
- Timestamp:
- Jan 23, 2017 1:41:23 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 7 added
- 6 deleted
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r211059 r211060 1 2017-01-23 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Migrate font variations tests to using David Jonathan Ross's Boxis font 4 https://bugs.webkit.org/show_bug.cgi?id=167222 5 6 Reviewed by Dean Jackson. 7 8 He extremely generously made this font for doing testing of variation fonts, 9 and worked with us to licence it appropriately so it can be used in WebKit 10 directly. 11 12 Thanks so much to DJR!!!! 13 14 I also took this opportunity to make the tests in animations/font-variations 15 more robust. 16 17 * animations/font-variations/font-variation-settings-expected.html: Removed. 18 * animations/font-variations/font-variation-settings-expected.txt: Added. 19 * animations/font-variations/font-variation-settings-order-expected.html: Removed. 20 * animations/font-variations/font-variation-settings-order-expected.txt: Added. 21 * animations/font-variations/font-variation-settings-order.html: 22 * animations/font-variations/font-variation-settings-unlike-expected.html: Removed. 23 * animations/font-variations/font-variation-settings-unlike-expected.txt: Added. 24 * animations/font-variations/font-variation-settings-unlike.html: 25 * animations/font-variations/font-variation-settings.html: 26 * animations/font-variations/resources/Boxis-VF.ttf: Added. 27 * fast/backgrounds/background-repeat-x-y.html: Removed. 28 * fast/text/variations/advances.html: 29 * fast/text/variations/case-axis-names-expected.html: 30 * fast/text/variations/case-axis-names.html: 31 * fast/text/variations/default-value-expected.html: 32 * fast/text/variations/default-value.html: 33 * fast/text/variations/duplicate-axis-expected.html: Removed. 34 * fast/text/variations/duplicate-axis.html: Removed. 35 * fast/text/variations/duplicate-expected.html: 36 * fast/text/variations/duplicate.html: 37 * fast/text/variations/exist-expected-mismatch.html: 38 * fast/text/variations/exist.html: 39 * fast/text/variations/getComputedStyle-expected.txt: 40 * fast/text/variations/getComputedStyle.html: 41 * fast/text/variations/inheritance-expected.html: 42 * fast/text/variations/inheritance.html: 43 * fast/text/variations/order-expected.html: 44 * fast/text/variations/order.html: 45 * fast/text/variations/outofbounds-expected-mismatch.html: 46 * fast/text/variations/outofbounds.html: 47 * fast/text/variations/resources/Boxis-VF.ttf: Added. 48 * platform/mac/TestExpectations: 49 1 50 2017-01-23 Ryan Haddad <ryanhaddad@apple.com> 2 51 -
trunk/LayoutTests/animations/font-variations/font-variation-settings-order.html
r210315 r211060 4 4 <script src="../resources/animation-test-helpers.js"></script> 5 5 <style> 6 @keyframes weightAnimation { 6 @font-face { 7 font-family: "Boxis"; 8 src: url("resources/Boxis-VF.ttf"); 9 } 10 11 @keyframes TheAnimation { 7 12 from { 8 font-variation-settings: " wght" 0.5, "wdth" 0.9;13 font-variation-settings: "hght" 400, "wdth" 500; 9 14 } 10 15 to { 11 font-variation-settings: "wdth" 1.2, "wght" 3.2;16 font-variation-settings: "wdth" 900, "hght" 800; 12 17 } 13 18 } 14 19 15 20 #box { 16 font: 100px "Skia"; 17 animation-name: "weightAnimation"; 21 font: 100px "Boxis"; 18 22 animation-duration: 3s; 19 23 animation-timing-function: linear; … … 27 31 var expectedValues = [ 28 32 // [animation-name, time, element-id, property, expected-value, tolerance] 29 [" weightAnimation", 0.5, "box", "font-variation-settings", "'wght' 0.95, 'wdth' 0.95", 0.05],30 [" weightAnimation", 1.0, "box", "font-variation-settings", "'wght' 1.4, 'wdth' 1", 0.05],31 [" weightAnimation", 2.0, "box", "font-variation-settings", "'wght' 2.3, 'wdth' 1.1", 0.05],33 ["TheAnimation", 0.5, "box", "font-variation-settings", "'wdth' 566.6666, 'hght' 466.6666", 5], 34 ["TheAnimation", 1.0, "box", "font-variation-settings", "'wdth' 633.3333, 'hght' 533.3333", 5], 35 ["TheAnimation", 2.0, "box", "font-variation-settings", "'wdth' 766.6666, 'hght' 666.6666", 5], 32 36 ]; 33 runAnimationTest(expectedValues, undefined, undefined, undefined, true, undefined); 37 38 if (window.testRunner) { 39 testRunner.waitUntilDone(); 40 } 41 42 var promises = []; 43 44 document.fonts.forEach(function(f) { 45 promises.push(f.loaded); 46 }); 47 48 Promise.all(promises).then(function() { 49 document.getElementById("box").style.animationName = "TheAnimation"; 50 runAnimationTest(expectedValues, undefined, undefined, undefined, false, undefined); 51 }); 34 52 </script> 35 53 </body> -
trunk/LayoutTests/animations/font-variations/font-variation-settings-unlike.html
r210315 r211060 4 4 <script src="../resources/animation-test-helpers.js"></script> 5 5 <style> 6 @keyframes weightAnimation { 6 @font-face { 7 font-family: "Boxis"; 8 src: url("resources/Boxis-VF.ttf"); 9 } 10 11 @keyframes TheAnimation { 7 12 from { 8 font-variation-settings: " wght" 0.5, "wdth" 0.9;13 font-variation-settings: "hght" 400, "wdth" 500; 9 14 } 10 15 to { 11 font-variation-settings: " wght" 3.2;16 font-variation-settings: "hght" 600; 12 17 } 13 18 } 14 19 15 20 #box { 16 font: 100px "Skia"; 17 animation-name: "weightAnimation"; 21 font: 100px "Boxis"; 18 22 animation-duration: 3s; 19 23 animation-timing-function: linear; … … 27 31 var expectedValues = [ 28 32 // [animation-name, time, element-id, property, expected-value, tolerance] 29 [" weightAnimation", 0.5, "box", "font-variation-settings", "normal", 0.05],30 [" weightAnimation", 1.0, "box", "font-variation-settings", "normal", 0.05],31 [" weightAnimation", 2.0, "box", "font-variation-settings", "normal", 0.05],33 ["TheAnimation", 0.5, "box", "font-variation-settings", "normal", 5], 34 ["TheAnimation", 1.0, "box", "font-variation-settings", "normal", 5], 35 ["TheAnimation", 2.0, "box", "font-variation-settings", "normal", 5], 32 36 ]; 33 runAnimationTest(expectedValues, undefined, undefined, undefined, true, undefined); 37 38 if (window.testRunner) { 39 testRunner.waitUntilDone(); 40 } 41 42 var promises = []; 43 44 document.fonts.forEach(function(f) { 45 promises.push(f.loaded); 46 }); 47 48 Promise.all(promises).then(function() { 49 document.getElementById("box").style.animationName = "TheAnimation"; 50 runAnimationTest(expectedValues, undefined, undefined, undefined, false, undefined); 51 }); 34 52 </script> 35 53 </body> -
trunk/LayoutTests/animations/font-variations/font-variation-settings.html
r210315 r211060 4 4 <script src="../resources/animation-test-helpers.js"></script> 5 5 <style> 6 @keyframes weightAnimation { 6 @font-face { 7 font-family: "Boxis"; 8 src: url("resources/Boxis-VF.ttf"); 9 } 10 11 @keyframes TheAnimation { 7 12 from { 8 font-variation-settings: "w ght" 0.1;13 font-variation-settings: "wdth" 400; 9 14 } 10 15 to { 11 font-variation-settings: "w ght" 1.9;16 font-variation-settings: "wdth" 900; 12 17 } 13 18 } 14 19 15 20 #box { 16 font: 100px "-apple-system"; 17 animation-name: "weightAnimation"; 21 font: 100px "Boxis"; 18 22 animation-duration: 3s; 19 23 animation-timing-function: linear; … … 27 31 var expectedValues = [ 28 32 // [animation-name, time, element-id, property, expected-value, tolerance] 29 [" weightAnimation", 0.5, "box", "font-variation-settings", "'wght' 0.4", 0.05],30 [" weightAnimation", 1.0, "box", "font-variation-settings", "'wght' 0.7", 0.05],31 [" weightAnimation", 2.0, "box", "font-variation-settings", "'wght' 1.3", 0.05],33 ["TheAnimation", 0.5, "box", "font-variation-settings", "'wdth' 483.3333", 5], 34 ["TheAnimation", 1.0, "box", "font-variation-settings", "'wdth' 566.6666", 5], 35 ["TheAnimation", 2.0, "box", "font-variation-settings", "'wdth' 733.3333", 5], 32 36 ]; 33 runAnimationTest(expectedValues, undefined, undefined, undefined, true, undefined); 37 38 if (window.testRunner) { 39 testRunner.waitUntilDone(); 40 } 41 42 var promises = []; 43 44 document.fonts.forEach(function(f) { 45 promises.push(f.loaded); 46 }); 47 48 Promise.all(promises).then(function() { 49 document.getElementById("box").style.animationName = "TheAnimation"; 50 runAnimationTest(expectedValues, undefined, undefined, undefined, false, undefined); 51 }); 34 52 </script> 35 53 </body> -
trunk/LayoutTests/fast/text/variations/advances.html
r206896 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 <script src="../../../resources/js-test-pre.js"></script> 5 11 </head> 6 12 <body> 7 <div><span id="regular" style="font: 100px ' Skia';">ham</span></div>8 <div><span id="wide" style="font: 100px ' Skia'; font-variation-settings: 'wdth' 1.25;">ham</span></div>9 <div><span id="specifiedregular" style="font: 100px ' Skia'; font-variation-settings: 'wdth' 1;">ham</span></div>10 <div><span id="narrow" style="font: 100px ' Skia'; font-variation-settings: 'wdth' 0.62;">ham</span></div>13 <div><span id="regular" style="font: 100px 'Boxis';">ham</span></div> 14 <div><span id="wide" style="font: 100px 'Boxis'; font-variation-settings: 'wdth' 900;">ham</span></div> 15 <div><span id="specifiedregular" style="font: 100px 'Boxis'; font-variation-settings: 'wdth' 750;">ham</span></div> 16 <div><span id="narrow" style="font: 100px 'Boxis'; font-variation-settings: 'wdth' 500;">ham</span></div> 11 17 <script> 12 var regular = document.getElementById("regular"); 13 var wide = document.getElementById("wide"); 14 var specifiedregular = document.getElementById("specifiedregular"); 15 var narrow = document.getElementById("narrow"); 18 window.jsTestIsAsync = true; 16 19 17 shouldNotBe("regular.offsetWidth", "wide.offsetWidth"); 18 shouldNotBe("regular.offsetWidth", "narrow.offsetWidth"); 19 shouldNotBe("narrow.offsetWidth", "wide.offsetWidth"); 20 shouldBe("regular.offsetWidth", "specifiedregular.offsetWidth"); 20 var promises = []; 21 22 document.fonts.forEach(function(f) { 23 promises.push(f.loaded); 24 }); 25 26 Promise.all(promises).then(function() { 27 var regular = document.getElementById("regular"); 28 var wide = document.getElementById("wide"); 29 var specifiedregular = document.getElementById("specifiedregular"); 30 var narrow = document.getElementById("narrow"); 31 32 shouldNotBe("regular.offsetWidth", "wide.offsetWidth"); 33 shouldNotBe("regular.offsetWidth", "narrow.offsetWidth"); 34 shouldNotBe("narrow.offsetWidth", "wide.offsetWidth"); 35 shouldBe("regular.offsetWidth", "specifiedregular.offsetWidth"); 36 finishJSTest(); 37 }); 38 21 39 </script> 22 40 <script src="../../../resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/text/variations/case-axis-names-expected.html
r207581 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 12 This test passes if capitalized and lowercased axis names are distinct. 7 <div style="font: 100px ' -apple-system';">Hello</div>13 <div style="font: 100px 'Boxis';">Hello</div> 8 14 </body> 9 15 </html> -
trunk/LayoutTests/fast/text/variations/case-axis-names.html
r207581 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 12 This test passes if capitalized and lowercased axis names are distinct. 7 <div style="font: 100px ' -apple-system'; font-variation-settings: 'WGHT' 1.8;">Hello</div>13 <div style="font: 100px 'Boxis'; font-variation-settings: 'WDTH' 900;">Hello</div> 8 14 </body> 9 15 </html> -
trunk/LayoutTests/fast/text/variations/default-value-expected.html
r210054 r211060 2 2 <html> 3 3 <head> 4 <script> 5 if (window.internals) 6 window.internals.settings.setVariationFontsEnabled(true); 7 </script> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 8 10 </head> 9 11 <body> 10 12 This test makes sure that default values of variations get applied correctly. The test fails if the text below isn't thin. 11 <div style="font: 70px ' Skia'; font-variation-settings: 'wght' 1.000001;">hamburgefonstiv</div>13 <div style="font: 70px 'Boxis'; font-variation-settings: 'wdth' 750.000001;">hamburgefonstiv</div> 12 14 </body> 13 15 <html> -
trunk/LayoutTests/fast/text/variations/default-value.html
r210054 r211060 2 2 <html> 3 3 <head> 4 <script> 5 if (window.internals) 6 window.internals.settings.setVariationFontsEnabled(true); 7 </script> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 8 10 </head> 9 11 <body> 10 12 This test makes sure that default values of variations get applied correctly. The test fails if the text below isn't thin. 11 <div style="font: 70px ' Skia'; font-variation-settings: 'wght' 1.0;">hamburgefonstiv</div>13 <div style="font: 70px 'Boxis'; font-variation-settings: 'wdth' 750;">hamburgefonstiv</div> 12 14 </body> 13 15 <html> -
trunk/LayoutTests/fast/text/variations/duplicate-expected.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia'; font-variation-settings: 'wght' 3;">Test passes if this text has a weight of 3.</div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'wdth' 500;">Test passes if this text has a width of 500.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/duplicate.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia'; font-variation-settings: 'wght' 2, 'wght' 3;">Test passes if this text has a weight of 3.</div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'wdth' 900, 'wdth' 500;">Test passes if this text has a width of 500.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/exist-expected-mismatch.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia';">Test passes if this text is bold.</div>12 <div style="font-family: 'Boxis';">Test passes if this text is wide.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/exist.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' -apple-system'; font-variation-settings: 'wght' 1.8;">Test passes if this text is bold.</div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'wdth' 900;">Test passes if this text is wide.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/getComputedStyle-expected.txt
r206679 r211060 1 PASS window.getComputedStyle(document.getElementById('test0')).getPropertyValue('font-variation-settings') is "' wght' 2"2 PASS window.getComputedStyle(document.getElementById('test1')).getPropertyValue('font-variation-settings') is "' wght' 3"3 PASS window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings') is "'w ght' 2, 'wdth' 1.2"4 PASS window.getComputedStyle(document.getElementById('test 2')).getPropertyValue('font-variation-settings') is window.getComputedStyle(document.getElementById('test3')).getPropertyValue('font-variation-settings')1 PASS window.getComputedStyle(document.getElementById('test0')).getPropertyValue('font-variation-settings') is "'hght' 400" 2 PASS window.getComputedStyle(document.getElementById('test1')).getPropertyValue('font-variation-settings') is "'hght' 500" 3 PASS window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings') is "'wdth' 500, 'hght' 400" 4 PASS window.getComputedStyle(document.getElementById('test3')).getPropertyValue('font-variation-settings') is window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings') 5 5 PASS window.getComputedStyle(document.getElementById('test4')).getPropertyValue('font-variation-settings') is "normal" 6 6 PASS window.getComputedStyle(document.getElementById('test5')).getPropertyValue('font-variation-settings') is "normal" 7 7 PASS window.getComputedStyle(document.getElementById('test6')).getPropertyValue('font-variation-settings') is "normal" 8 PASS window.getComputedStyle(document.getElementById('test7')).getPropertyValue('font-variation-settings') is "' wght' 27"8 PASS window.getComputedStyle(document.getElementById('test7')).getPropertyValue('font-variation-settings') is "'hght' 999999" 9 9 PASS successfullyParsed is true 10 10 11 11 TEST COMPLETE 12 12 a 13 a 14 a 15 a 16 a 17 a 18 a 19 a -
trunk/LayoutTests/fast/text/variations/getComputedStyle.html
r210315 r211060 3 3 <head> 4 4 <meta charset="utf-8"> 5 <style> 6 @font-face { 7 font-family: "Boxis"; 8 src: url("resources/Boxis-VF.ttf"); 9 } 10 </style> 5 11 <script src="../../../resources/js-test-pre.js"></script> 6 12 </head> 7 13 <body> 8 <div id="test0" style="font-family: ' Skia'; font-variation-settings: 'wght' 2;"></div>9 <div id="test1" style="font-family: ' Skia'; font-variation-settings: 'wght' 2, 'wght' 3;"></div>10 <div id="test2" style="font-family: ' Skia'; font-variation-settings: 'wght' 2, 'wdth' 1.2;"></div>11 <div id="test3" style="font-family: ' Skia'; font-variation-settings: 'wdth' 1.2, 'wght' 2;"></div>12 <div id="test4" style="font-family: ' Skia'; font-variation-settings: normal;"></div>13 <div id="test5" style="font-family: ' Skia'; font-variation-settings: 'abcde' 3;"></div>14 <div id="test6" style="font-family: ' Skia'; font-variation-settings: 'abc한국어e' 3;"></div>15 <div id="test7" style="font-family: ' Skia'; font-variation-settings: 'wght' 27;"></div>14 <div id="test0" style="font-family: 'Boxis'; font-variation-settings: 'hght' 400;">a</div> 15 <div id="test1" style="font-family: 'Boxis'; font-variation-settings: 'hght' 400, 'hght' 500;">a</div> 16 <div id="test2" style="font-family: 'Boxis'; font-variation-settings: 'hght' 400, 'wdth' 500;">a</div> 17 <div id="test3" style="font-family: 'Boxis'; font-variation-settings: 'wdth' 500, 'hght' 400;">a</div> 18 <div id="test4" style="font-family: 'Boxis'; font-variation-settings: normal;">a</div> 19 <div id="test5" style="font-family: 'Boxis'; font-variation-settings: 'abcde' 500;">a</div> 20 <div id="test6" style="font-family: 'Boxis'; font-variation-settings: 'abc한국어e' 500;">a</div> 21 <div id="test7" style="font-family: 'Boxis'; font-variation-settings: 'hght' 999999;">a</div> 16 22 <script> 17 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test0')).getPropertyValue('font-variation-settings')", "'wght' 2"); 18 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test1')).getPropertyValue('font-variation-settings')", "'wght' 3"); 19 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')", "'wght' 2, 'wdth' 1.2"); 20 shouldBe("window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')", "window.getComputedStyle(document.getElementById('test3')).getPropertyValue('font-variation-settings')"); 21 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test4')).getPropertyValue('font-variation-settings')", "normal"); 22 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test5')).getPropertyValue('font-variation-settings')", "normal"); 23 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test6')).getPropertyValue('font-variation-settings')", "normal"); 24 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test7')).getPropertyValue('font-variation-settings')", "'wght' 27"); 23 window.jsTestIsAsync = true; 24 25 var promises = []; 26 27 document.fonts.forEach(function(f) { 28 promises.push(f.loaded); 29 }); 30 31 Promise.all(promises).then(function() { 32 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test0')).getPropertyValue('font-variation-settings')", "'hght' 400"); 33 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test1')).getPropertyValue('font-variation-settings')", "'hght' 500"); 34 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')", "'wdth' 500, 'hght' 400"); 35 shouldBe("window.getComputedStyle(document.getElementById('test3')).getPropertyValue('font-variation-settings')", "window.getComputedStyle(document.getElementById('test2')).getPropertyValue('font-variation-settings')"); 36 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test4')).getPropertyValue('font-variation-settings')", "normal"); 37 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test5')).getPropertyValue('font-variation-settings')", "normal"); 38 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test6')).getPropertyValue('font-variation-settings')", "normal"); 39 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test7')).getPropertyValue('font-variation-settings')", "'hght' 999999"); 40 finishJSTest(); 41 }); 25 42 </script> 26 43 <script src="../../../resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/text/variations/inheritance-expected.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia'; font-variation-settings: 'wght' 2;">Test passes if this text is bold.</div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'wdth' 900;">Test passes if this text is wide.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/inheritance.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia'; font-variation-settings: 'wght' 2;"><div>Test passes if this text is bold.</div></div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'wdth' 900;"><div>Test passes if this text is wide.</div></div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/order-expected.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia'; font-variation-settings: 'wdth' 1.2, 'wght' 2;">Test passes if this text has a weight of 3.</div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'wdth' 500, 'hght' 400;">Test passes if this text has a height of 400 and a width of 500.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/order.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia'; font-variation-settings: 'wght' 2, 'wdth' 1.2;">Test passes if this text has a weight of 3.</div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'hght' 400, 'wdth' 500;">Test passes if this text has a height of 400 and a width of 500.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/fast/text/variations/outofbounds-expected-mismatch.html
r210054 r211060 2 2 <html> 3 3 <head> 4 <script> 5 if (window.internals) 6 window.internals.settings.setVariationFontsEnabled(true); 7 </script> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 8 10 </head> 9 11 <body> 10 <div style="font-family: ' Skia';">Test passes if this text is bold.</div>12 <div style="font-family: 'Boxis';">Test passes if this text is wide.</div> 11 13 </body> 12 14 </html> -
trunk/LayoutTests/fast/text/variations/outofbounds.html
r210315 r211060 2 2 <html> 3 3 <head> 4 <style> 5 @font-face { 6 font-family: "Boxis"; 7 src: url("resources/Boxis-VF.ttf"); 8 } 9 </style> 4 10 </head> 5 11 <body> 6 <div style="font-family: ' Skia'; font-variation-settings: 'wght' 27;">Test passes if this text is bold.</div>12 <div style="font-family: 'Boxis'; font-variation-settings: 'wdth' 9999999999;">Test passes if this text is wide.</div> 7 13 </body> 8 14 </html> -
trunk/LayoutTests/platform/mac/TestExpectations
r211059 r211060 1430 1430 1431 1431 # rdar://problem/28586837 1432 fast/text/variations/order.html [ Crash ]1433 animations/font-variations/font-variation-settings-order.html [ Pass Failure ImageOnlyFailureCrash ]1432 fast/text/variations/order.html [ Pass Crash ] 1433 animations/font-variations/font-variation-settings-order.html [ Pass Crash ] 1434 1434 # Variation fonts are not implemented earlier than Sierra. 1435 1435 [ ElCapitan Yosemite ] fast/text/variations [ Pass Failure ImageOnlyFailure ]
Note: See TracChangeset
for help on using the changeset viewer.