Bug 1098257 - Add tests for inlinizing block-level boxes inside ruby. r=heycam

--HG--
extra : rebase_source : 312702b9a3a6cfacc067001fe4013dbf23b6b52a
extra : source : 02feede82eaf3c822748fc5751f20b21bb0ac514
This commit is contained in:
Xidorn Quan 2014-12-11 09:26:19 +11:00
parent 4acbb5abac
commit e1f2ef0e3c
11 changed files with 272 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
.inline {
display: inline-block;
background-color: yellow;
width: 30px; height: 30px;
}
</style>
</head>
<body>
<div><ruby>a<div class="inline">b</div>c</ruby></div>
<div><rb>a<div class="inline">b</div>c</rb></div>
<div><rt>a<div class="inline">b</div>c</rt></div>
<div><rbc>a<div class="inline">b</div>c</rbc></div>
<div><rtc>a<div class="inline">b</div>c</rtc></div>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
.inline {
display: block;
background-color: yellow;
width: 30px; height: 30px;
}
</style>
</head>
<body>
<div><ruby>a<div class="inline">b</div>c</ruby></div>
<div><rb>a<div class="inline">b</div>c</rb></div>
<div><rt>a<div class="inline">b</div>c</rt></div>
<div><rbc>a<div class="inline">b</div>c</rbc></div>
<div><rtc>a<div class="inline">b</div>c</rtc></div>
</body>
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
.block, table, .flex {
background-color: yellow;
width: 100px; height: 30px;
border: 1px solid blue;
}
.block { display: inline-block; }
table { display: inline-table; border-collapse: collapse; }
td { border: 3px solid red; }
.flex { display: inline-flex; }
.flex-item { flex: auto; }
</style>
</head>
<body>
<div><rb>a<div class="block">b</div>c</rb><rt>x<div class="block">y</div>z</rt></div>
<div>
<rb>a<table><tr><td>b1</td><td>b2</td></tr></table>c</rb>
<rt>x<table><tr><td>y1</td><td>y2</td></tr></table>z</rt>
</div>
<div>
<rb>a<div class="flex">
<div class="flex-item">b1</div>
<div class="flex-item">b2</div>
</div>c</rb>
<rt>x<div class="flex">
<div class="flex-item">y1</div>
<div class="flex-item">y2</div>
</div>z</rt>
</div>
</body>
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
.block, table, .flex {
background-color: yellow;
width: 100px; height: 30px;
border: 1px solid blue;
}
.block { display: block; }
table { border-collapse: collapse; }
td { border: 3px solid red; }
.flex { display: flex; }
.flex-item { flex: auto; }
</style>
</head>
<body>
<div><rb>a<div class="block">b</div>c</rb><rt>x<div class="block">y</div>z</rt></div>
<div>
<rb>a<table><tr><td>b1</td><td>b2</td></tr></table>c</rb>
<rt>x<table><tr><td>y1</td><td>y2</td></tr></table>z</rt>
</div>
<div>
<rb>a<div class="flex">
<div class="flex-item">b1</div>
<div class="flex-item">b2</div>
</div>c</rb>
<rt>x<div class="flex">
<div class="flex-item">y1</div>
<div class="flex-item">y2</div>
</div>z</rt>
</div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
div { border-collapse: collapse; }
.table { display: inline-table; }
.cell {
display: table-cell;
background-color: yellow;
border: 3px solid blue;
}
</style>
</head>
<body>
<div><ruby>a<div class="table"><div class="cell">b1</div><div class="cell">b2</div></div>c</ruby></div>
<div><rb>a<div class="table"><div class="cell">b1</div><div class="cell">b2</div></div>c</rb></div>
<div><rt>a<div class="table"><div class="cell">b1</div><div class="cell">b2</div></div>c</rt></div>
<div><rbc>a<div class="table"><div class="cell">b1</div><div class="cell">b2</div></div>c</rbc></div>
<div><rtc>a<div class="table"><div class="cell">b1</div><div class="cell">b2</div></div>c</rtc></div>
</body>
</html>

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
body { border-collapse: collapse; }
.cell {
display: table-cell;
background-color: yellow;
border: 3px solid blue;
}
</style>
</head>
<body>
<div><ruby>a<div class="cell">b1</div><div class="cell">b2</div>c</ruby></div>
<div><rb>a<div class="cell">b1</div><div class="cell">b2</div>c</rb></div>
<div><rt>a<div class="cell">b1</div><div class="cell">b2</div>c</rt></div>
<div><rbc>a<div class="cell">b1</div><div class="cell">b2</div>c</rbc></div>
<div><rtc>a<div class="cell">b1</div><div class="cell">b2</div>c</rtc></div>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
.inline {
display: inline-block;
background-color: yellow;
width: 30px; height: 30px;
}
</style>
</head>
<body>
<div><ruby>a<span><div class="inline">b</div></span>c</ruby></div>
<div><rb>a<span><div class="inline">b</div></span>c</rb></div>
<div><rt>a<span><div class="inline">b</div></span>c</rt></div>
<div><rbc>a<span><div class="inline">b</div></span>c</rbc></div>
<div><rtc>a<span><div class="inline">b</div></span>c</rtc></div>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
.inline {
display: block;
background-color: yellow;
width: 30px; height: 30px;
}
</style>
</head>
<body>
<div><ruby>a<span><div class="inline">b</div></span>c</ruby></div>
<div><rb>a<span><div class="inline">b</div></span>c</rb></div>
<div><rt>a<span><div class="inline">b</div></span>c</rt></div>
<div><rbc>a<span><div class="inline">b</div></span>c</rbc></div>
<div><rtc>a<span><div class="inline">b</div></span>c</rtc></div>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
ruby::before, rb::before, rt::before, rbc::before, rtc::before {
content: "a";
display: inline-block;
background-color: yellow;
width: 30px; height: 30px;
}
ruby::after, rb::after, rt::after, rbc::after, rtc::after {
content: "c";
display: inline-block;
background-color: yellow;
width: 30px; height: 30px;
}
</style>
</head>
<body>
<div><ruby>b</ruby></div>
<div><rb>b</rb></div>
<div><rt>b</rt></div>
<div><rbc>b</rbc></div>
<div><rtc>b</rtc></div>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1098257 - Inlinize block-level boxes inside ruby</title>
<link rel="stylesheet" href="common.css">
<style>
ruby::before, rb::before, rt::before, rbc::before, rtc::before {
content: "a";
display: block;
background-color: yellow;
width: 30px; height: 30px;
}
ruby::after, rb::after, rt::after, rbc::after, rtc::after {
content: "c";
display: block;
background-color: yellow;
width: 30px; height: 30px;
}
</style>
</head>
<body>
<div><ruby>b</ruby></div>
<div><rb>b</rb></div>
<div><rt>b</rt></div>
<div><rbc>b</rbc></div>
<div><rtc>b</rtc></div>
</body>
</html>

View File

@ -11,6 +11,11 @@ default-preferences pref(layout.css.ruby.enabled,true)
== dynamic-removal-1.html dynamic-removal-1-ref.html
== dynamic-removal-2.html dynamic-removal-2-ref.html
fuzzy-if(winWidget,28,1) == dynamic-removal-3.html dynamic-removal-3-ref.html # bug 1111891
== inlinize-blocks-1.html inlinize-blocks-1-ref.html
== inlinize-blocks-2.html inlinize-blocks-2-ref.html
== inlinize-blocks-3.html inlinize-blocks-3-ref.html
== inlinize-blocks-4.html inlinize-blocks-4-ref.html
== inlinize-blocks-5.html inlinize-blocks-5-ref.html
== ruby-whitespace-1.html ruby-whitespace-1-ref.html
== ruby-whitespace-2.html ruby-whitespace-2-ref.html
!= ruby-reflow-1-opaqueruby.html ruby-reflow-1-noruby.html