Bug 1056516 - submit Hyphenation Control reftests to CSSWG. draft
authorjeremychen@mozilla.com <jeremychen@mozilla.com>
Tue, 28 Feb 2017 21:35:29 +0800
changeset 490465 9a675db675921aee10d8443820138c3d16beb261
parent 490464 b3e89ecfdb9cb7983ae118ba407d2af32ea002b8
child 547262 7727993d3f9bfc41305a75b17e9e9df54c4b3381
push id47102
push userjichen@mozilla.com
push dateTue, 28 Feb 2017 13:36:45 +0000
bugs1056516
milestone54.0a1
Bug 1056516 - submit Hyphenation Control reftests to CSSWG. MozReview-Commit-ID: IgkXfADC60P
layout/reftests/w3c-css/submitted/text3/hyphenation-control-1-ref.html
layout/reftests/w3c-css/submitted/text3/hyphenation-control-1.html
layout/reftests/w3c-css/submitted/text3/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/hyphenation-control-1-ref.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 6.1. Hyphenation Control: the hyphens property</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<style>
+code {
+  display:block;
+  hyphens:manual;
+  border: 1px solid black;
+}
+</style>
+</head>
+<body lang="en-us">
+<!--
+  Hyphenation opportunities of the texts in this test are as follows,
+
+        frag[A]ilis[A]tic[C]ex[A]pi[A]ali
+
+  where [A] is an automatic hyphen, and [C] is a conditional hyphen.
+
+  In this test, we set width to somewhere after the conditional hyphen,
+  then we see if automatic hyphen breaks are ignored correctly.
+-->
+<code style="width:12ch;">
+fragilistic-<br />expiali
+</code>
+<br />
+<code style="width:14ch;">
+fragilistic-<br />expiali
+</code>
+<br />
+<code style="width:16ch;">
+fragilistic-<br />expiali
+</code>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text3/hyphenation-control-1.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Text 6.1. Hyphenation Control: the hyphens property</title>
+<link rel="author" title="Chun-Min (Jeremy) Chen" href="mailto:jeremychen@mozilla.com">
+<link rel="author" title="Mozilla" href="https://www.mozilla.org">
+<link rel="match" href="hyphenation-control-1-ref.html">
+<meta name="assert" content="Test checks that automatic hyphenation opportunities within a word
+must be ignored if the word contains a conditional hyphen (&shy; or U+00AD), in favor of the
+conditional hyphen(s).">
+<style>
+code {
+  display:block;
+  hyphens:auto;
+  border: 1px solid black;
+}
+</style>
+</head>
+<body lang="en-us">
+<!--
+  Hyphenation opportunities of the texts in this test are as follows,
+
+        frag[A]ilis[A]tic[C]ex[A]pi[A]ali
+
+  where [A] is an automatic hyphen, and [C] is a conditional hyphen.
+
+  In this test, we set width to somewhere after the conditional hyphen,
+  then we see if automatic hyphen breaks are ignored correctly.
+-->
+<code style="width:12ch;">
+fragilistic&shy;expiali
+</code>
+<br />
+<code style="width:14ch;">
+fragilistic&shy;expiali
+</code>
+<br />
+<code style="width:16ch;">
+fragilistic&shy;expiali
+</code>
+</body>
+</html>
--- a/layout/reftests/w3c-css/submitted/text3/reftest.list
+++ b/layout/reftests/w3c-css/submitted/text3/reftest.list
@@ -2,16 +2,18 @@
 == text-align-match-parent-02.html text-align-match-parent-ref.html
 == text-align-match-parent-03.html text-align-match-parent-ref.html
 == text-align-match-parent-04.html text-align-match-parent-ref.html
 == text-align-match-parent-root-ltr.html text-align-match-parent-root-ltr-ref.html
 == text-align-match-parent-root-rtl.html text-align-match-parent-root-rtl-ref.html
 
 == text-word-spacing-001.html text-word-spacing-ref.html
 
+== hyphenation-control-1.html hyphenation-control-1-ref.html
+
 == segment-break-transformation-removable-1.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-removable-2.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-removable-3.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-removable-4.html segment-break-transformation-removable-ref.html
 == segment-break-transformation-unremovable-1.html segment-break-transformation-unremovable-ref.html
 == segment-break-transformation-unremovable-2.html segment-break-transformation-unremovable-ref.html
 == segment-break-transformation-unremovable-3.html segment-break-transformation-unremovable-ref.html
 == segment-break-transformation-unremovable-4.html segment-break-transformation-unremovable-ref.html