Merge pull request #8681 from w3c/font-default-features

new tests for 7.1 default font features
diff --git a/css/css-fonts/font-default-01-ref.html b/css/css-fonts/font-default-01-ref.html
new file mode 100644
index 0000000..bbe0251
--- /dev/null
+++ b/css/css-fonts/font-default-01-ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+  }
+</style>
+
+<body>
+<!-- test font does not currently test for rlig or locl -->
+<p>Test passes if the two lines below are identical, with six check marks (✓). </p>
+<section class="tests">
+	<p class="ref">AAAAAA</p>
+	<p class="ref">AAAAAA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-01.html b/css/css-fonts/font-default-01.html
new file mode 100644
index 0000000..c9045ed
--- /dev/null
+++ b/css/css-fonts/font-default-01.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<link rel="help" href="hhttps://www.w3.org/TR/css-fonts-3/#default-features">
+<link rel="match" href="font-default-01-ref.html">
+<meta name="assert" content="Required ligatures, common ligatures and contextual forms must be enabled by default (OpenType features: rlig, liga, clig, calt), along with localized forms (OpenType feature: locl), and features required for proper display of composed characters and marks (OpenType features: ccmp, mark, mkmk).">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+  }
+</style>
+
+<body>
+<!-- test font does not currently test for rlig or locl -->
+<p>Test passes if the two lines below are identical, with six check marks (✓). </p>
+<section class="tests">
+	<p class="test">CDGÂÂÄ</p>
+	<p class="ref">AAAAAA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-02-ref.html b/css/css-fonts/font-default-02-ref.html
new file mode 100644
index 0000000..6d45ace
--- /dev/null
+++ b/css/css-fonts/font-default-02-ref.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+  }
+  .test {
+    font-variant: normal;
+  }
+</style>
+
+<body>
+<!-- test font does not currently test for rlig or locl -->
+<p>Test passes if the three lines below are identical, with six check marks (✓). </p>
+<section class="tests">
+  <p class="ref">AAAAAA</p>
+	<p class="ref">AAAAAA</p>
+	<p class="ref">AAAAAA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-02.html b/css/css-fonts/font-default-02.html
new file mode 100644
index 0000000..24f6194
--- /dev/null
+++ b/css/css-fonts/font-default-02.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#default-features">
+<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-variant-prop">
+<link rel="match" href="font-default-02-ref.html">
+<meta name="assert" content="These features must always be enabled, even when the value of the ‘font-variant’ and ‘font-feature-settings’ properties is ‘normal’. ">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+  }
+  .test {
+    font-variant: normal;
+  }
+</style>
+
+<body>
+<!-- test font does not currently test for rlig or locl -->
+<p>Test passes if the three lines below are identical, with six check marks (✓). </p>
+<section class="tests">
+  <p class="default">CDGÂÂÄ</p>
+	<p class="test">CDGÂÂÄ</p>
+	<p class="ref">AAAAAA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-03-ref.html b/css/css-fonts/font-default-03-ref.html
new file mode 100644
index 0000000..2f1d160
--- /dev/null
+++ b/css/css-fonts/font-default-03-ref.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+  }
+  .test {
+    font-feature-settings: normal;
+  }
+</style>
+
+<body>
+<!-- test font does not currently test for rlig or locl -->
+<p>Test passes if the three lines below are identical, with six check marks (✓). </p>
+<section class="tests">
+  <p class="default">CDGÂÂÄ</p>
+	<p class="test">CDGÂÂÄ</p>
+	<p class="ref">AAAAAA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-03.html b/css/css-fonts/font-default-03.html
new file mode 100644
index 0000000..a72a4bc
--- /dev/null
+++ b/css/css-fonts/font-default-03.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#default-features">
+<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop">
+<link rel="match" href="font-default-03-ref.html">
+<meta name="assert" content="These features must always be enabled, even when the value of the ‘font-variant’ and ‘font-feature-settings’ properties is ‘normal’. ">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+  }
+  .test {
+    font-feature-settings: normal;
+  }
+</style>
+
+<body>
+<!-- test font does not currently test for rlig or locl -->
+<p>Test passes if the three lines below are identical, with six check marks (✓). </p>
+<section class="tests">
+  <p class="default">CDGÂÂÄ</p>
+	<p class="test">CDGÂÂÄ</p>
+	<p class="ref">AAAAAA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-04-a-ref.html b/css/css-fonts/font-default-04-a-ref.html
new file mode 100644
index 0000000..cf428d2
--- /dev/null
+++ b/css/css-fonts/font-default-04-a-ref.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<meta name="assert" content="For upright text within vertical text runs, vertical alternates (OpenType feature: vert) must be enabled">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+    writing-mode: vertical-rl;
+    text-orientation: upright;
+    color: green;
+  }
+  .default {
+    color: purple;
+  }
+</style>
+
+<body>
+<p>Test passes if the first <em>vertical</em> line (in purple) has <em>at least one</em> check mark
+and the next two  lines (in green) are identical, with two check marks (✓).</p>
+<section class="tests">
+  <p class="default">AB</p>
+	<p><span class="test1">A</span><span class="test2">A</span></p>
+	<p class="ref">AA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-04-b-ref.html b/css/css-fonts/font-default-04-b-ref.html
new file mode 100644
index 0000000..3051b27
--- /dev/null
+++ b/css/css-fonts/font-default-04-b-ref.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<meta name="assert" content="For upright text within vertical text runs, vertical alternates (OpenType feature: vert) must be enabled">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+    writing-mode: vertical-rl;
+    text-orientation: upright;
+    color: green;
+  }
+  .default {
+    color: purple;
+  }
+</style>
+
+<body>
+<p>Test passes if the first <em>vertical</em> line (in purple) has <em>at least one</em> check mark
+and the next two  lines (in green) are identical, with two check marks (✓).</p>
+<section class="tests">
+  <p class="default">BA</p>
+	<p><span class="test1">A</span><span class="test2">A</span></p>
+	<p class="ref">AA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-04-c-ref.html b/css/css-fonts/font-default-04-c-ref.html
new file mode 100644
index 0000000..773acfc
--- /dev/null
+++ b/css/css-fonts/font-default-04-c-ref.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<meta name="assert" content="For upright text within vertical text runs, vertical alternates (OpenType feature: vert) must be enabled">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+    writing-mode: vertical-rl;
+    text-orientation: upright;
+    color: green;
+  }
+  .default {
+    color: purple;
+  }
+</style>
+
+<body>
+<p>Test passes if the first <em>vertical</em> line (in purple) has <em>at least one</em> check mark
+and the next two  lines (in green) are identical, with two check marks (✓).</p>
+<section class="tests">
+  <p class="default">AA</p>
+	<p><span class="test1">A</span><span class="test2">A</span></p>
+	<p class="ref">AA</p>
+</section>
\ No newline at end of file
diff --git a/css/css-fonts/font-default-04.html b/css/css-fonts/font-default-04.html
new file mode 100644
index 0000000..5493d72
--- /dev/null
+++ b/css/css-fonts/font-default-04.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>CSS Test:  font default features</title>
+<link rel="author" title="Chris Lilley" href="chris@w3.org">
+<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#default-features">
+<link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop">
+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#block-flow">
+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation">
+<link rel="match" href="font-default-04-a-ref.html">
+<link rel="match" href="font-default-04-b-ref.html">
+<link rel="match" href="font-default-04-c-ref.html">
+<meta name="assert" content="For upright text within vertical text runs, vertical alternates (OpenType feature: vert) must be enabled">
+<style>
+  @font-face {
+    font-family: fwf;
+    src: url(support/fonts/FontWithFancyFeatures.otf);
+  }
+  .tests {
+	  font-family: fwf;
+	  font-size: 4em;
+	  line-height: 1.1;
+    writing-mode: vertical-rl;
+    text-orientation: upright;
+    color: green;
+  }
+  .default {
+    color: purple;
+  }
+  .test1 {
+    font-feature-settings: "vert" on;
+  }
+  .test2 {
+    font-feature-settings: "vert" 2;
+  }
+</style>
+
+<body>
+<p>Test passes if the first <em>vertical</em> line (in purple) has <em>at least one</em> check mark
+and the next two  lines (in green) are identical, with two check marks (✓).</p>
+<section class="tests">
+  <p class="default">Å人</p>
+	<p><span class="test1">Å</span><span class="test2">人</span></p>
+	<p class="ref">AA</p>
+</section>
\ No newline at end of file