[common][fonts-css3] Update alternates-order tc with new reference. 58/320358/1
authorYang Hehua <hehua.yang@samsung.com>
Thu, 27 Feb 2025 07:16:42 +0000 (15:16 +0800)
committerYang Hehua <hehua.yang@samsung.com>
Thu, 27 Feb 2025 07:19:08 +0000 (15:19 +0800)
Change-Id: I5b5b746637671adbcf90e15dff34ce928927eea2
Signed-off-by: Yang Hehua <hehua.yang@samsung.com>
common/tct-fonts-css3-tests/fonts/csswg/COPYING
common/tct-fonts-css3-tests/fonts/csswg/alternates-order-ref.html
common/tct-fonts-css3-tests/fonts/csswg/alternates-order.html

index 5567a5f72ffa25237c0714cc05fff07b1387682a..619d261dc8ee6566ccb685240bb99b844eb887ef 100755 (executable)
@@ -18,6 +18,9 @@ with some modifications:
 
 3. Using @font-face instead of AHEM font installation.
 
+4. alternates-order.html
+change comes from https://github.com/web-platform-tests/wpt/blob/master/css/css-fonts/
+
 These tests are copyright by W3C and/or the author listed in the test
 file. The tests are dual-licensed under the W3C Test Suite License:
 http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
index cf1d97611ab32105c9a0be71bd81a9ad7a0b1928..7f9639c87597e46950e88c76808ecf5bdf78a29c 100755 (executable)
@@ -19,6 +19,8 @@ span {
   font-feature-settings: "ss05"; /* crossed W */
 }
 
+/* tests that should NOT use the feature, due to case-sensitivity of font-feature-values names */
+#test2, #test3 { font-feature-settings: "ss05" off; }
 </style>
 </head>
 <body lang="en">
index 067848348d4d78f2eecb80250773ded1373ff437..23d23d23844f6d2715865e54573561419c95d4b1 100755 (executable)
@@ -3,10 +3,10 @@
 <head>
 <title>CSS Test: feature value matching for font-variant-alternates</title>
 <link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com"/>
-<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-variant-alternates-prop"/>
-<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-feature-values"/>
+<link rel="help" href="http://www.w3.org/TR/css-fonts-4/#font-variant-alternates-prop"/>
+<link rel="help" href="http://www.w3.org/TR/css-fonts-4/#font-feature-values"/>
 <link rel="match" href="alternates-order-ref.html"/>
-<meta name="flags" content=""/>
+
 <meta name="assert" content="Case and order of font family name or feature name should not affect alternate rendered"/>
 <style type="text/css">
 @font-face {
@@ -65,13 +65,13 @@ div { margin: 0 20px; }
 }
 
 #test2 {
-  /* testing case-insensitivity of styleset name */
+  /* testing case-sensitivity of styleset name */
   font-family: fontB;
   font-variant-alternates: styleset(altW);
 }
 
 #test3 {
-  /* testing case-insensitivity of styleset name */
+  /* testing case-sensitivity of styleset name */
   font-family: fontB;
   font-variant-alternates: styleset(ALTW);
 }
@@ -79,7 +79,7 @@ div { margin: 0 20px; }
 #test4 {
   /* testing escapes in styleset name */
   font-family: fontB;
-  font-variant-alternates: styleset(\41 ltW);
+  font-variant-alternates: styleset(\41 lTw);
 }
 
 #test5 {
@@ -92,6 +92,7 @@ div { margin: 0 20px; }
   /* testing one feature doesn't affect another */
   font-variant-alternates: styleset(somethingElse);
   -moz-font-feature-settings: "ss05" on;
+  font-feature-settings: "ss05" on;
 }
 
 #test7 {
@@ -99,6 +100,7 @@ div { margin: 0 20px; }
   font-family: fontA;
   font-variant-alternates: styleset(scriptJ);
   -moz-font-feature-settings: "ss06";
+  font-feature-settings: "ss06";
 }
 
 #test8 {
@@ -119,6 +121,5 @@ div { margin: 0 20px; }
 <div><span id="test1">W</span> <span id="test2">W</span> <span id="test3">W</span></div>
 <div><span id="test4">W</span> <span id="test5">W</span> <span id="test6">W</span></div>
 <div><span id="test7">W</span> <span id="test8">W</span> <span id="test9">W</span></div>
- <p>Test passes if all the above letter 'W' are in the same font.</p>
 </body>
-</html>
+</html>
\ No newline at end of file