Skip to content

Commit

Permalink
Bug 1283222 - Add some extra WPT line-breaking testcases. r=emilio
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D28624

--HG--
extra : moz-landing-system : lando
  • Loading branch information
jfkthame committed Apr 24, 2019
1 parent 775fbff commit cfc2f8e
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[line-breaking-016.html]
expected:
FAIL
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[line-breaking-017.html]
expected:
FAIL
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — line breaking at element boundaries</title>
<meta name=assert content="An empty inline element should not introduce a line-break opportunity">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="reference/line-breaking-015-ref.html">
<link rel=author title="Jonathan Kew" href="[email protected]">
<style>
.test { margin: 1em 0; width: 0; line-height: 2; }
</style>
<body>
The word "unbroken" below should <b>not</b> be broken:
<div class="test">un<span></span>bro<b></b>ken</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — line breaking at element boundaries</title>
<meta name=assert content="An out-of-flow element should not introduce a line-break opportunity">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="reference/line-breaking-016-ref.html">
<link rel=author title="Jonathan Kew" href="[email protected]">
<style>
.test { margin: 1em 0; width: 0; }
.oof { position: absolute; left: 6em; }
</style>
<body>
The word "unbroken" below should <b>not</b> be broken:
<div class="test">un<span class="oof"></span>bro<b class="oof">absolute</b>ken</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — line breaking at element boundaries</title>
<meta name=assert content="An out-of-flow element should not introduce a line-break opportunity">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="reference/line-breaking-017-ref.html">
<link rel=author title="Jonathan Kew" href="[email protected]">
<style>
.test { margin: 1em 0; width: 0; }
.oof { float: left; }
</style>
<body>
The word "unbroken" below should <b>not</b> be broken:
<div class="test">un<span class="oof"></span>bro<b class="oof">float</b>ken</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — reference file for line-breaking test</title>
<link rel=author title="Jonathan Kew" href="[email protected]">
<style>
.test { margin: 1em 0; line-height: 2; }
</style>
<body>
The word "unbroken" below should <b>not</b> be broken:
<div class="test">unbroken</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — reference file for line-breaking test</title>
<link rel=author title="Jonathan Kew" href="[email protected]">
<style>
.test { margin: 1em 0; }
.oof { position: absolute; left: 6em; }
</style>
<body>
The word "unbroken" below should <b>not</b> be broken:
<div class="test">unbroken<b class="oof">absolute</b></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — reference file for line-breaking test</title>
<link rel=author title="Jonathan Kew" href="[email protected]">
<style>
.test { margin: 1em 0; }
</style>
<body>
The word "unbroken" below should <b>not</b> be broken:
<div class="test">unbroken<br><b>float</b></div>
</body>
</html>

0 comments on commit cfc2f8e

Please sign in to comment.