Skip to content

Commit

Permalink
Bug 1848650 [wpt PR 41449] - Udpdate existing tests to match spec cha…
Browse files Browse the repository at this point in the history
…nge, a=testonly

Automatic update from web-platform-tests
Udpdate existing tests to match spec change

See w3c/csswg-drafts#8972

--
Extended tests for CSS spec change

w3c/csswg-drafts#8972

--

wpt-commits: 53807acd4083a922122b48f1ffe67dbd768ecd7c, 95e1a49d028b1477af6d0e69033d7205d8452da5
wpt-pr: 41449
  • Loading branch information
w3cgruntbot authored and moz-wptsync-bot committed Aug 24, 2023
1 parent 3b1f072 commit 822863f
Show file tree
Hide file tree
Showing 28 changed files with 506 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
<html>
<meta charset="utf-8">
<title>CSS Text — NARROW NO-BREAK SPACE after atomic inline</title>
<meta name=assert content="There is a soft wrap opportunity between an atomic inline and a preceeding NARROW NO-BREAK SPACE">
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a preceeding NARROW NO-BREAK SPACE">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 50px/1 Ahem;
font: 100px/1 Ahem;
color: green;
width: 100px;
height: 100px;
background: red;
}
span {
display: inline-block;
color: transparent;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div>AB&#8239;<span>CD</span></div>
<div>A&#8239;<span>B</span></div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,24 @@
<html>
<meta charset="utf-8">
<title>CSS Text — NARROW NO-BREAK SPACE before atomic inline</title>
<meta name=assert content="There is a soft wrap opportunity between an atomic inline and a following NARROW NO-BREAK SPACE">
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a following NARROW NO-BREAK SPACE">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="reference/line-breaking-atomic-004-ref.html">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.red {
font: 50px/1 Ahem;
position: absolute;
z-index: -1;
color: red;
}

.test {
font: 50px/1 Ahem;
color: green;
div {
font: 100px/1 Ahem;
color: transparent;
width: 100px;
height: 100px;
background: red;
}
span {
display: inline-block;
color: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div class=red>&#8239;AB<br>&#8239;CD</div>
<div class=test><span>&#8239;AB</span>&#8239;CD</div>
<div><span>A</span>&#8239;B</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,24 @@
<html>
<meta charset="utf-8">
<title>CSS Text — WORD JOINER after atomic inline</title>
<meta name=assert content="There is a soft wrap opportunity between an atomic inline and a following WORD JOINER">
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a following WORD JOINER">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="reference/line-breaking-atomic-005-ref.html">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.red {
font: 50px/1 Ahem;
position: absolute;
z-index: -1;
color: red;
}

.test {
font: 50px/1 Ahem;
color: green;
div {
font: 100px/1 Ahem;
color: transparent;
width: 100px;
height: 100px;
background: red;
}
span {
display: inline-block;
color: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div class=red>&#8288;AB<br>&#8288;CD</div>
<div class=test><span>&#8288;AB</span>&#8288;CD</div>
<div><span>A</span>&#8288;B</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
<html>
<meta charset="utf-8">
<title>CSS Text — WORD JOINER before atomic inline</title>
<meta name=assert content="There is a soft wrap opportunity between an atomic inline and a preceeding WORD JOINER">
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a preceeding WORD JOINER">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 50px/1 Ahem;
font: 100px/1 Ahem;
color: green;
width: 100px;
height: 100px;
background: red;
}
span {
display: inline-block;
color: transparent;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div>AB&#8288;<span>CD</span></div>
<div>A&#8288;<span>B</span></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — ZERO WIDTH JOINER after atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a following ZERO WIDTH JOINER">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: transparent;
width: 100px;
background: red;
}
span {
display: inline-block;
color: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div><span>A</span>&#x200D;B</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — ZERO WIDTH JOINER before atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a preceeding ZERO WIDTH JOINER">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: green;
width: 100px;
background: red;
}
span {
display: inline-block;
color: transparent;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div>A&#x200D;<span>B</span></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — ZERO WIDTH NO-BREAK SPACE after atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a following ZERO WIDTH NO-BREAK SPACE">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: transparent;
width: 100px;
background: red;
}
span {
display: inline-block;
color: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div><span>A</span>&#xFEFF;B</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — ZERO WIDTH NO-BREAK SPACE before atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a preceeding ZERO WIDTH NO-BREAK SPACE">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: green;
width: 100px;
background: red;
}
span {
display: inline-block;
color: transparent;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div>A&#xFEFF;<span>B</span></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — MONGOLIAN VOWEL SEPARATOR after atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a preceeding MONGOLIAN VOWEL SEPARATOR">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: green;
width: 100px;
background: red;
}
span {
display: inline-block;
color: transparent;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div>A&#x180E;<span>B</span></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — MONGOLIAN VOWEL SEPARATOR before atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a following MONGOLIAN VOWEL SEPARATOR">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: transparent;
width: 100px;
background: red;
}
span {
display: inline-block;
color: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div><span>A</span>&#x180E;B</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — COMBINING GRAPHEME JOINER after atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a preceeding COMBINING GRAPHEME JOINER">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: green;
width: 100px;
background: red;
}
span {
display: inline-block;
color: transparent;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div>A&#x034F;<span>B</span></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — COMBINING GRAPHEME JOINER before atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a following COMBINING GRAPHEME JOINER">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: transparent;
width: 100px;
background: red;
}
span {
display: inline-block;
color: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div><span>A</span>&#x034F;B</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — FIGURE SPACE after atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a preceeding FIGURE SPACE (class GL)">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: green;
width: 100px;
background: red;
}
span {
display: inline-block;
color: transparent;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div>A&#x2007;<span>B</span></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — FIGURE SPACE before atomic inline</title>
<meta name=assert content="There is no soft wrap opportunity between an atomic inline and a following FIGURE SPACE (class GL)">
<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 100px/1 Ahem;
color: transparent;
width: 100px;
background: red;
}
span {
display: inline-block;
color: green;
}
</style>

<p>Test passes if there is a filled green square and <strong>no red</strong>.

<div><span>A</span>&#x2007;B</div>
Loading

0 comments on commit 822863f

Please sign in to comment.