Update CSS tests to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8

This commit is contained in:
James Graham 2015-07-27 17:47:31 +01:00
parent 662c00a810
commit df03062d62
10934 changed files with 428309 additions and 254265 deletions

View file

@ -0,0 +1,36 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
body
{
direction: rtl;
}
img
{
vertical-align: top;
}
img#green-square
{
position: relative;
top: 16px;
}
</style>
</head>
<body>
<p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><br><img id="green-square" src="support/swatch-green.png" width="100" height="100" alt="Image download support must be enabled"></p>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
background-color: green;
height: 100px;
margin-left: 300px;
width: 100px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div></div>
</body>
</html>

View file

@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div
{
margin-left: 0.5em;
}
img
{
vertical-align: top;
}
img#green-square
{
position: relative;
left: 176px;
top: 160px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div
{
margin-left: 0.5em;
}
img
{
vertical-align: top;
}
img#green-square
{
position: relative;
left: 176px;
top: 80px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
body
{
direction: rtl;
}
div
{
margin-right: 0.5em;
}
img
{
vertical-align: top;
}
img#green-square
{
position: relative;
right: 176px;
top: 160px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
body
{
direction: rtl;
}
div
{
margin-right: 0.5em;
}
img
{
vertical-align: top;
}
img#green-square
{
position: relative;
right: 176px;
top: 80px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,43 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div#expected
{
text-align: right;
}
div#reference-overlapping-green
{
background-color: green;
height: 100%;
position: absolute;
right: 273px;
top: 0px;
width: 100px;
}
</style>
</head>
<body>
<div id="expected"><img src="support/pass-cdts-bg-pos-vrl-018.png" width="357" height="17" alt="Image download support must be enabled"></div>
<!--
The image says:
Test passes if there is a <strong>no red</strong>.
-->
<div id="reference-overlapping-green"></div>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
background-color: green;
height: 100px;
margin-left: 100px;
width: 100px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div></div>
</body>
</html>

View file

@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
span
{
color: blue;
line-height: 3em;
}
span.top-left-bottom
{
border-style: solid none solid solid;
padding: 0.4em 0 0.4em 1em;
}
span.top-right-bottom
{
border-style: solid solid solid none;
padding: 0.4em 1em 0.4em 0;
}
</style>
</head>
<body>
<p>The following two lines should be identical. (Force bidi: א)</p>
<p><span class="top-left-bottom">AAABBBCCC</span>DDDEEEFFF<span class="top-right-bottom">GGGHHHIII</span>JJJKKKLLL</p>
<p><span class="top-left-bottom">AAABBBCCC</span>DDDEEEFFF<span class="top-right-bottom">GGGHHHIII</span>JJJKKKLLL</p>
</body>
</html>

View file

@ -0,0 +1,53 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div > p
{
background-color: #FFC;
border: solid;
color: black;
margin: 1em;
padding: 0.5em;
width: 17em;
}
span
{
color: navy;
line-height: 3em;
}
span.top-left-bottom
{
border-style: solid none solid solid;
padding: 0.4em 0 0.4em 1em;
}
span.top-right-bottom
{
border-style: solid solid solid none;
padding: 0.4em 1em 0.4em 0;
}
</style>
</head>
<body>
<p>The following two blocks should be identical, including overflow. (Force bidi: א)</p>
<div>
<p><span class="top-left-bottom">AAABBBCCC</span>DDDEEEFFF<span class="top-right-bottom">GGGHHHIII</span> JJJKKKLLLMMMNNNOOO</p>
<p><span class="top-left-bottom">AAABBBCCC</span>DDDEEEFFF<span class="top-right-bottom">GGGHHHIII</span> JJJKKKLLLMMMNNNOOO</p>
</div>
</body>
</html>

View file

@ -0,0 +1,64 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div > p
{
background-color: #FFC;
border: solid;
margin: 1em;
padding: 0.5em;
white-space: nowrap;
}
span {line-height: 3em;}
span.top-left-bottom
{
border-style: solid none solid solid;
padding: 0.4em 0 0.4em 1em;
}
.navy {color: navy;}
.orange {color: orange;}
span.top-right-bottom
{
border-style: solid solid solid none;
padding: 0.4em 1em 0.4em 0;
}
</style>
</head>
<body>
<p>The following two blocks should be identical, including overflow. (Force bidi: א)</p>
<div>
<p>
<span class="top-left-bottom navy"> aaa bbb ccc </span>
<span class="top-left-bottom orange"> ddd eee fff </span>
ggg hhh iii
<span class="top-right-bottom navy"> jjj kkk lll </span>
<span class="top-right-bottom orange"> mmm nnn ooo </span>
</p>
<p>
<span class="top-left-bottom navy"> aaa bbb ccc </span>
<span class="top-left-bottom orange"> ddd eee fff </span>
ggg hhh iii
<span class="top-right-bottom navy"> jjj kkk lll </span>
<span class="top-right-bottom orange"> mmm nnn ooo </span>
</p>
</div>
</body>
</html>

View file

@ -0,0 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
border: black solid;
color: navy;
font: 2em monospace;
margin: 1em;
padding: 1em;
}
span
{
background-color: yellow;
border: orange solid;
margin: 0.1em 1em;
padding: 0.1em 1em;
}
</style>
</head>
<body>
<p>The following two lines should be identical. (Force bidi: א)</p>
<div>TEST<span>TEST</span></div>
<div>TEST<span>TEST</span></div>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
span
{
border-color: orange purple teal yellow;
border-style: solid;
border-width: 5px;
}
</style>
</head>
<body>
<p>Test passes if the 2 lines are <strong>identical</strong>.</p>
<p>First <span>Second</span></p>
<p>First <span>Second</span></p>
</body>
</html>

View file

@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
border-color: orange purple teal yellow;
border-style: solid;
border-width: 5px;
margin-bottom: 1em;
width: 10em;
}
</style>
</head>
<body>
<p>Test passes if the 2 lines are <strong>identical</strong>.</p>
<div>Text</div>
<div>Text</div>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
line-height: 1.25em;
margin-bottom: 1.25em;
}
img {vertical-align: top;}
</style>
</head>
<body>
<p>Test passes if the 2 bicolored stripes are <strong>identical</strong>.</p>
<div><img src="support/1x1-navy.png" width="40" height="20" alt="Image download support must be enabled"><img src="support/swatch-orange.png" width="80" height="20" alt="Image download support must be enabled"><img src="support/1x1-navy.png" width="120" height="20" alt="Image download support must be enabled"></div>
<div><img src="support/1x1-navy.png" width="40" height="20" alt="Image download support must be enabled"><img src="support/swatch-orange.png" width="80" height="20" alt="Image download support must be enabled"><img src="support/1x1-navy.png" width="120" height="20" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,35 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
background-color: navy;
line-height: 1.25em;
margin-bottom: 1.25em;
padding-right: 6.25em;
text-align: right;
width: 25em;
}
img {vertical-align: top;}
</style>
</head>
<body>
<p>Test passes if the 2 bicolored stripes are <strong>identical</strong>.</p>
<div><img src="support/swatch-orange.png" width="80" height="20" alt="Image download support must be enabled"></div>
<div><img src="support/swatch-orange.png" width="80" height="20" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,102 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
p + .set {border-top: solid orange;}
.set
{
border-bottom: solid orange;
clear: both;
float: left;
}
.control
{
border: silver solid;
color: blue;
float: left;
font: bold larger monospace;
margin: 1em;
padding: 0.25em;
}
/* ensure BDO processing */
bdo
{
direction: ltr;
unicode-bidi: bidi-override;
}
</style>
</head>
<body>
<p>In each pair of silver boxes below, the two patterns must be identical.</p>
<!--
&#x05D0; א is hebrew letter alef
&#x05EA; ת is hebrew letter tav
-->
<!-- control for bidi support -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א &divide; &times; - + &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; &divide; &times; - + ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א &divide; &times; - + &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; &divide; &times; - + ת</bdo></div>
</div>
</div>
<!-- sibling boxes -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
</div>
<!-- anonymous boxes -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
</div>
<!-- anonymous boxes -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
</div>
<!--
PS &#x2029; Paragraph separator
LS &#x2028; Line separator
-->
</body>
</html>

View file

@ -0,0 +1,74 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
p + .set {border-top: solid orange;}
.set
{
border-bottom: solid orange;
clear: both;
float: left;
}
.control
{
border: silver solid;
color: blue;
float: left;
font: bold larger monospace;
margin: 1em;
padding: 0.25em;
}
/* ensure BDO processing */
bdo
{
direction: ltr;
unicode-bidi: bidi-override;
}
</style>
</head>
<body>
<p>In each pair of silver boxes below, the two patterns must be identical.</p>
<!--
&#x05D0; א is hebrew letter alef
&#x05EA; ת is hebrew letter tav
-->
<!-- control for bidi support -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א &divide; &times; - + &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; &divide; &times; - + ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א &divide; &times; - + &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; &divide; &times; - + ת</bdo></div>
</div>
</div>
<!-- preserved source line break breaks bidi paragraph -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,86 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
p + .set {border-top: solid orange;}
.set
{
border-bottom: solid orange;
clear: both;
float: left;
}
.control
{
border: silver solid;
color: blue;
float: left;
font: bold larger monospace;
margin: 1em;
padding: 0.25em;
}
/* ensure BDO processing */
bdo
{
direction: ltr;
unicode-bidi: bidi-override;
}
</style>
</head>
<body>
<p>In each pair of silver boxes below, the two patterns must be identical.</p>
<!--
&#x05D0; א is hebrew letter alef
&#x05EA; ת is hebrew letter tav
-->
<!-- control for bidi support -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א &divide; &times; - + &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; &divide; &times; - + ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א &divide; &times; - + &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; &divide; &times; - + ת</bdo></div>
</div>
</div>
<!-- paragraph separator breaks bidi paragraph -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">א + - &times; &divide; &nbsp;</bdo></div>
<div><bdo dir="ltr">&nbsp; + - &times; &divide; ת</bdo></div>
</div>
</div>
<!-- line separator does not break bidi paragraph -->
<div class="set">
<div class="control">
<div><bdo dir="ltr">&nbsp; &divide; &times; - + א</bdo></div>
<div><bdo dir="ltr">ת &divide; &times; - + &nbsp;</bdo></div>
</div>
<div class="control">
<div><bdo dir="ltr">&nbsp; &divide; &times; - + א</bdo></div>
<div><bdo dir="ltr">ת &divide; &times; - + &nbsp;</bdo></div>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,25 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
p.control {text-align: right;}
</style>
</head>
<body>
<p>Test passes if the 2 lines are <strong>identical</strong>.</p>
<p class="control">a b (c d).</p>
<p class="control">a b (c d).</p>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
</head>
<body>
<p>Test passes if the 2 lines are <strong>identical</strong>.</p>
<p>(a b א) c d</p>
<p>(a b א) c d</p>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
</head>
<body>
<p>Test passes if the 2 lines are <strong>identical</strong>.</p>
<p>Readable</p>
<p>Readable</p>
</body>
</html>

View file

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>direction/unicode-bidi: span unicode-bidi plaintext, no strong (1)</title>
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
<style type="text/css">
.test span { direction: rtl; unicode-bidi: plaintext; }
/* the following styles are not part of the test */
.test, .ref { font-size: 150%; border: 1px solid orange; margin: 10px; width: 10em; padding: 5px; clear: both; }
input { margin: 5px; }
@font-face {
font-family: 'ezra_silregular';
src: url('support/sileot-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
.test, .ref { font-family: ezra_silregular, serif; }
</style>
</head>
<body>
<p class="instructions" dir="ltr">Test passes if the two boxes are identical.</p>
<!--Notes:
Key to entities used below:
&#x5d0; ... &#x5d5; - The first six Hebrew letters (strongly RTL).
&#x202d; - The LRO (left-to-right-override) formatting character.
&#x202c; - The PDF (pop directional formatting) formatting character; closes LRO.
-->
<div class="ref" dir="rtl">&#x202D;&lt; &gt; &gt; &lt;&#x202C;</div>
<div class="ref" dir="rtl">&#x202D;&lt; &gt; &gt; &lt;&#x202C;</div>
</body></html>

View file

@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div
{
margin-left: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-left: 16px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div
{
margin-left: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-left: 66px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div
{
margin-left: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-left: 16px;
padding-top: 50px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div
{
margin-left: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-left: 66px;
padding-top: 50px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
</head>
<body>
<p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"></p>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div > img
{
padding-left: 50px;
}
</style>
</head>
<body>
<p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"></p>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div > img
{
padding-top: 50px;
}
</style>
</head>
<body>
<p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"></p>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
div > img
{
padding-left: 50px;
padding-top: 50px;
}
</style>
</head>
<body>
<p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"></p>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
body
{
direction: rtl;
}
div
{
margin-right: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-right: 66px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
body
{
direction: rtl;
}
div
{
margin-right: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-right: 16px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
body
{
direction: rtl;
}
div
{
margin-right: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-right: 66px;
padding-top: 50px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<meta content="image" name="flags">
<style type="text/css">
body
{
direction: rtl;
}
div
{
margin-right: 8px;
}
img
{
vertical-align: top;
}
img + img
{
padding-right: 16px;
padding-top: 50px;
}
</style>
</head>
<body>
<div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled"><img src="support/swatch-green.png" width="50" height="50" alt="Image download support must be enabled"></div>
<!--
Image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
</body>
</html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div {border: blue solid 2px;}
</style>
</head>
<body>
<p>Test passes if "Filler Text" is inside and aligned to the <strong>left side</strong> of hollow blue rectangle.</p>
<div>Filler Text</div>
</body>
</html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
border: blue solid 2px;
text-align: right;
}
</style>
</head>
<body>
<p>Test passes if "Filler Text" is inside and aligned to the <strong>right side</strong> of hollow blue rectangle.</p>
<div>Filler Text</div>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
background-color: orange;
height: 100px;
width: 100px;
}
img {vertical-align: top;}
</style>
</head>
<body>
<p>Test passes if there is a black square in the <strong>upper-left corner</strong> of the orange square.</p>
<div><img src="support/black15x15.png" width="50" height="50" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<style type="text/css">
div
{
background-color: orange;
height: 100px;
text-align: right;
width: 100px;
}
img {vertical-align: top;}
</style>
</head>
<body>
<p>Test passes if there is a black square in the <strong>upper-right corner</strong> of the orange square.</p>
<div><img src="support/black15x15.png" width="50" height="50" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -11,7 +11,9 @@
<body>
<p>Test passes if there is <strong>no red</strong>.</p>
<p>Test passes if there are the words "PASS PASS".</p>
<div>PASS PASS</div>
</body>
</html>

View file

@ -9,20 +9,13 @@
<meta name="flags" content="image">
<style type="text/css">
div
{
position: absolute;
top: 252px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><img src="support/swatch-green.png" width="100" height="100" alt="Image download support must be enabled"></div>
<div><img src="support/left-bottom-green-200x300.png" width="200" height="300" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -9,21 +9,13 @@
<meta name="flags" content="image">
<style type="text/css">
div
{
left: 108px;
position: absolute;
top: 252px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><img src="support/swatch-green.png" width="100" height="100" alt="Image download support must be enabled"></div>
<div><img src="support/right-bottom-green-200x300.png" width="200" height="300" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -9,20 +9,13 @@
<meta name="flags" content="image">
<style type="text/css">
div
{
left: 108px;
position: absolute;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><img src="support/swatch-green.png" width="100" height="100" alt="Image download support must be enabled"></div>
<div><img src="support/right-top-green-200x300.png" width="200" height="300" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,55 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
--><html><head>
<title>CSS Reftest Reference</title>
<link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert">
<meta charset="utf-8">
<style>
.flexContainer {
width: 40px;
height: 30px;
border: 1px solid gray;
margin-bottom: 5px;
}
.flexContainer > * {
width: 20px;
height: 15px;
float: left;
}
.item1 {
/* Note: flex items are ordered as "CMYK": cyan, magenta, yellow, black */
background: cyan;
}
.item2 {
background: magenta;
}
.item3 {
background: yellow;
}
.item4 {
background: black;
}
</style>
</head>
<body>
<div class="flexContainer">
<div class="item1"></div><div class="item2"></div>
<div class="item3"></div><div class="item4"></div>
</div>
<div class="flexContainer">
<div class="item1"></div><div class="item2"></div>
<div class="item3"></div><div class="item4"></div>
</div>
<div class="flexContainer">
<div class="item1"></div><div class="item2"></div>
<div class="item3"></div><div class="item4"></div>
</div>
<div class="flexContainer">
<div class="item1"></div><div class="item2"></div>
<div class="item3"></div><div class="item4"></div>
</div>
</body></html>

View file

@ -0,0 +1,55 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
--><html><head>
<title>CSS Reftest Reference</title>
<link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert">
<meta charset="utf-8">
<style>
.flexContainer {
width: 40px;
height: 30px;
border: 1px solid gray;
margin-bottom: 5px;
}
.flexContainer > * {
width: 20px;
height: 15px;
float: left;
}
.item1 {
/* Note: flex items are ordered as "CMYK": cyan, magenta, yellow, black */
background: cyan;
}
.item2 {
background: magenta;
}
.item3 {
background: yellow;
}
.item4 {
background: black;
}
</style>
</head>
<body>
<div class="flexContainer">
<div class="item1"></div><div class="item3"></div>
<div class="item2"></div><div class="item4"></div>
</div>
<div class="flexContainer">
<div class="item1"></div><div class="item3"></div>
<div class="item2"></div><div class="item4"></div>
</div>
<div class="flexContainer">
<div class="item1"></div><div class="item3"></div>
<div class="item2"></div><div class="item4"></div>
</div>
<div class="flexContainer">
<div class="item1"></div><div class="item3"></div>
<div class="item2"></div><div class="item4"></div>
</div>
</body></html>

View file

@ -0,0 +1,55 @@
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
--><html><head>
<title>CSS Reftest Reference</title>
<link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert">
<meta charset="utf-8">
<style>
.flexContainer {
width: 40px;
height: 30px;
border: 1px solid gray;
margin-bottom: 5px;
}
.flexContainer > * {
width: 20px;
height: 15px;
float: left;
}
.item1 {
/* Note: flex items are ordered as "CMYK": cyan, magenta, yellow, black */
background: cyan;
}
.item2 {
background: magenta;
}
.item3 {
background: yellow;
}
.item4 {
background: black;
}
</style>
</head>
<body>
<div class="flexContainer">
<div class="item3"></div><div class="item1"></div>
<div class="item4"></div><div class="item2"></div>
</div>
<div class="flexContainer">
<div class="item3"></div><div class="item1"></div>
<div class="item4"></div><div class="item2"></div>
</div>
<div class="flexContainer">
<div class="item3"></div><div class="item1"></div>
<div class="item4"></div><div class="item2"></div>
</div>
<div class="flexContainer">
<div class="item3"></div><div class="item1"></div>
<div class="item4"></div><div class="item2"></div>
</div>
</body></html>

View file

@ -3,7 +3,6 @@
<meta charset="utf-8">
<title>CSS Test Reference</title>
<link href="http://google.com/+MasatakaYakura" rel="author" title="Masataka Yakura">
<link href="reference/full-width-notcu-notref.htm" rel="mismatch">
<style>
.tcu-all {
text-combine-upright: all;
@ -20,4 +19,5 @@
</div>
</body></html>

View file

@ -3,7 +3,6 @@
<meta charset="utf-8">
<title>CSS Test Reference</title>
<link href="http://google.com/+MasatakaYakura" rel="author" title="Masataka Yakura">
<link href="reference/full-width-horizontal-notref.htm" rel="mismatch">
<style>
.test {
writing-mode: vertical-rl;
@ -20,4 +19,5 @@
</div>
</body></html>

View file

@ -3,8 +3,6 @@
<meta charset="utf-8">
<title>CSS Test Reference</title>
<link href="http://google.com/+MasatakaYakura" rel="author" title="Masataka Yakura">
<link href="reference/full-width-notcu-notref.htm" rel="mismatch">
<link href="reference/full-width-horizontal-notref.htm" rel="mismatch">
<style>
.test {
writing-mode: vertical-rl;
@ -25,4 +23,5 @@
</div>
</body></html>

View file

@ -7,13 +7,14 @@
<style>
.test {
font-size: 5em;
line-height: 1;
font-family: Ahem;
}
</style>
</head>
<body>
<p>Test passes if there are 2 <strong>identical</strong> black rectangles.</p>
<p>Test passes if there are 2 <strong>identical</strong> black squares.</p>
<div class="test">
<p>x</p>

View file

@ -7,6 +7,7 @@
<style>
.test {
font-size: 5em;
line-height: 1;
font-family: Ahem;
}
</style>

View file

@ -7,6 +7,7 @@
<style>
.test {
font-size: 5em;
line-height: 1;
font-family: Ahem;
}
</style>

View file

@ -7,6 +7,7 @@
<style>
.test {
font-size: 5em;
line-height: 1;
font-family: Ahem;
}
</style>

View file

@ -1,55 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<style type="text/css">
div.control {
font-size: 2em;
background-color: orange;
}
img {
margin-left: -300px;
}
div.control > span {
background-color: yellow;
padding: 0em 1em;
}
div.control1 {
color: orange;
margin-top: 1em;
}
div.control1 > span {
color: yellow;
}
</style>
</head>
<body>
<p>Test passes if ...</p>
<ol>
<li>the bottom of glyph 'L' is touching a thin blue line in each 7 orange rectangles and</li>
<li>all 7 orange rectangles are <strong>identical</strong>.</li>
</ol>
<div class="control control1">LLLL<span>ABCD</span></div>
<div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></div>
<div class="control control1">LLLL<span>ABCD</span></div>
<div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></div>
<div class="control control1">LLLL<span>ABCD</span></div>
<div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></div>
<div class="control control1">LLLL<span>ABCD</span></div>
<div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></div>
<div class="control control1">LLLL<span>ABCD</span></div>
<div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></div>
<div class="control control1">LLLL<span>ABCD</span></div>
<div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></div>
<div class="control control1">LLLL<span>ABCD</span></div>
<div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,48 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-07-20 -->
<meta name="flags" content="image">
<style type="text/css">
img
{
vertical-align: top;
}
img
{
padding-left: 90px; /* 60 px (padding-left) + 30px (the position difference of box) */
}
img + br + img
{
padding-left: 60px; /* 60 px (padding-left) */
}
img + br + img + img
{
padding-left: 0;
}
img + br + img + img + br + img
{
padding-left: 105px; /* 60 px (padding-left) + 45px (the position difference of box)
}
</style>
</head>
<body>
<p>Test passes if 2 orange squares are centered with respect to a blue square.</p>
<div>
<img src="support/swatch-orange.png" width="60" height="60" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-blue.png" width="120" height="120" alt="Image download support must be enabled"><!--
--><img src="support/swatch-yellow.png" width="120" height="120" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,48 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-07-20 -->
<meta name="flags" content="image">
<style type="text/css">
img
{
vertical-align: top;
}
img
{
padding-left: 210px; /* 60 px (padding-left) + 120px (blue box width) + 30px (the position difference of box) */
}
img + br + img
{
padding-left: 60px; /* 60 px (padding-left) */
}
img + br + img + img
{
padding-left: 0;
}
img + br + img + img + br + img
{
padding-left: 225px; /* 60 px (padding-left) + 120px (blue box width) + 45px (the position difference of box)
}
</style>
</head>
<body>
<p>Test passes if 2 orange squares are centered with respect to a blue square.</p>
<div>
<img src="support/swatch-orange.png" width="60" height="60" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-yellow.png" width="120" height="120" alt="Image download support must be enabled"><!--
--><img src="support/swatch-blue.png" width="120" height="120" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -1,85 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<style type="text/css">
div.control {
font-size: 2em;
background-color: orange;
}
img {
margin-left: -300px;
}
/* inline-block */
.inline-block {
display: inline-block;
}
.descendant-block {
display: block;
height: 1em;
background-color: yellow;
padding-left: 1em;
padding-right: 1em;
}
</style>
</head>
<body>
<p>Test passes if ...</p>
<ol>
<li>the bottom of glyph 'L' and the bottom of yellow square is touching a thin blue line in each 7 orange rectangles and</li>
<li>all 7 orange rectangles are <strong>identical</strong>.</li>
</ol>
<div class="control">
<p>LLLLL<span class="inline-block">
<span class="descendant-block"></span>
<span class="descendant-block"></span>
</span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></p>
</div>
<div class="control">
<p>LLLLL<span class="inline-block">
<span class="descendant-block"></span>
<span class="descendant-block"></span>
</span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></p>
</div>
<div class="control">
<p>LLLLL<span class="inline-block">
<span class="descendant-block"></span>
<span class="descendant-block"></span>
</span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></p>
</div>
<div class="control">
<p>LLLLL<span class="inline-block">
<span class="descendant-block"></span>
<span class="descendant-block"></span>
</span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></p>
</div>
<div class="control">
<p>LLLLL<span class="inline-block">
<span class="descendant-block"></span>
<span class="descendant-block"></span>
</span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></p>
</div>
<div class="control">
<p>LLLLL<span class="inline-block">
<span class="descendant-block"></span>
<span class="descendant-block"></span>
</span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></p>
</div>
<div class="control">
<p>LLLLL<span class="inline-block">
<span class="descendant-block"></span>
<span class="descendant-block"></span>
</span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled"></p>
</div>
</body>
</html>

View file

@ -0,0 +1,29 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-07-21 -->
<meta name="flags" content="image">
<style type="text/css">
img
{
padding-left: 84px; /* 60px (padding-left) + 24px (the left edge position of box) */
vertical-align: top;
}
</style>
</head>
<body>
<p>Test passes if the <strong>left edge</strong> of an irregular polygon is straight and unbroken.</p>
<div>
<img src="support/swatch-fuchsia.png" width="48" height="60" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-fuchsia.png" width="216" height="120" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-fuchsia.png" width="24" height="30" alt="Image download support must be enabled">
</div>
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-07-21 -->
<meta name="flags" content="image">
<style type="text/css">
img
{
vertical-align: top;
}
img
{
padding-left: 228px; /* 60 px (padding-left) + 120px (first line-block width) + 48px (the position difference of box) */
}
img + br + img
{
padding-left: 60px; /* 60 px (padding-left) */
}
img + br + img + br + img
{
padding-left: 252px; /* 60 px (padding-left) + 120px (first line-block width) + 72px (the position difference of box) */
}
</style>
</head>
<body>
<p>Test passes if the <strong>right edge</strong> of an irregular polygon is straight and unbroken.</p>
<div>
<img src="support/swatch-aqua.png" width="48" height="60" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-aqua.png" width="216" height="120" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-aqua.png" width="24" height="30" alt="Image download support must be enabled">
</div>
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-07-21 -->
<meta name="flags" content="image">
<style type="text/css">
img
{
vertical-align: top;
}
img
{
padding-left: 192px; /* 60 px (padding-left) + 120px (width of inline-block) + 12px (the position difference of box) */
}
img + br + img
{
padding-left: 60px; /* 60 px (padding-left) */
}
img + br + img + br + img
{
padding-left: 198px; /* 60 px (padding-left) + 120px (width of inline-block)+ 18px (the position difference of box) */
}
</style>
</head>
<body>
<p>Test passes if the <strong>right edge</strong> of an irregular polygon is straight and unbroken.</p>
<div>
<img src="support/swatch-olive.png" width="12" height="60" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-olive.png" width="144" height="120" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-olive.png" width="6" height="30" alt="Image download support must be enabled">
</div>
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-07-21 -->
<meta name="flags" content="image">
<style type="text/css">
img
{
vertical-align: top;
}
img
{
padding-left: 156px; /* 60 px (padding-left) + 48px (the position difference of box) + 48px (ascent width) */
}
img + br + img
{
padding-left: 156px; /* 60 px (padding-left) + 96px (ascent width)*/
}
img + br + img + br + img
{
padding-left: 156px; /* 60 px (padding-left) + 72px (the position difference of box) + 24px (ascent width) */
}
</style>
</head>
<body>
<p>Test passes if the <strong>left edge</strong> of an irregular polygon is straight and unbroken.</p>
<div>
<img src="support/swatch-teal.png" width="12" height="60" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-teal.png" width="144" height="120" alt="Image download support must be enabled"><br><!--
--><img src="support/swatch-teal.png" width="6" height="30" alt="Image download support must be enabled">
</div>
</body>
</html>

View file

@ -0,0 +1,24 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Reftest Reference</title>
<link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com">
<link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-06-12 -->
<meta name="flags" content="image">
<style type="text/css">
img
{
vertical-align: bottom;
}
</style>
</head>
<body>
<p>Test passes if the <strong>bottom edge</strong> of an irregular polygon is straight and unbroken.</p>
<div><img src="support/swatch-orange.png" width="60" height="48" alt="Image download support must be enabled"><img src="support/swatch-orange.png" width="180" height="135" alt="Image download support must be enabled"><img src="support/swatch-orange.png" width="30" height="24" alt="Image download support must be enabled"></div>
</body>
</html>

View file

@ -0,0 +1,4 @@
<Files ~ "^at-charset-00[1-6].css$">
AddCharset Shift_JIS .css
</Files>

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -0,0 +1,31 @@
CSS Half-Width Orientation Test and CSS Full-Width Orientation Test are released under the SIL Open Font License - please read it carefully and do not download the fonts unless you agree to the the terms of the license:
Copyright © 2013 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Names CSS Half-Width Orientation Test and CSS Full-Width Orientation Test
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

View file

@ -0,0 +1,36 @@
CSS Orientation Test
====
Overview
----
CSS Orientation Test are special-purpose OpenType fonts. This open source project provides all of the source files that were used to build these OpenType fonts by using the AFDKO *makeotf* tool.
Getting Involved
----
Send suggestions for changes to the CSS Orientation Test project maintainer, lunde@adobe.com, for consideration.
Building
====
Pre-built font binaries
----
The installable font resources (font binaries) are not part of the source files. They are available on [Open@Adobe](https://sourceforge.net/projects/csso9ntestfonts.adobe/files/).
Requirements
----
For building binary font files from source, installation of the [Adobe Font Development Kit for OpenType](http://www.adobe.com/devnet/opentype/afdko.html) (AFDKO) is necessary. The AFDKO tools are widely used for font development today, and are part of most font editor applications.
Building the fonts
----
The key to building OpenType fonts is *makeotf*, which is part of AFDKO. Information and usage instructions can be found by executing *makeotf -h*.
In this repository, all necessary files are in place for building the OpenType fonts. For example, build a binary OTF font for the full-width version like this, which also includes a post-process for inserting a "stub" 'DSIG' table:
% makeotf -f cidfont.ps -r -ch UnicodeAll-UTF32-H
% sfntedit -a DSIG=DSIG.bin CSSFWOrientationTest.otf
% sfntedit -f CSSFWOrientationTest.otf
That is all.

View file

@ -0,0 +1,4 @@
@font-face {
font-family: "Ahem";
src: url(../../../../fonts/Ahem.ttf);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-007 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-lr' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: 80%;
top: 0px;
width: auto;
writing-mode: vertical-lr;
}
/*
"
1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
80% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
400px : right (80% of 500px == 400px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 0 .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-009 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-lr' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: 20%;
top: 0px;
width: auto;
writing-mode: vertical-lr;
}
/*
"
1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
20% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
400px : right (20% of 500px == 100px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 300px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-015 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: 60%;
position: absolute;
right: auto;
top: 0px;
width: auto;
writing-mode: vertical-lr;
}
/*
"
3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width (set to shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px == 300px)
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
so used right offset value must be 100px.
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-017 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-lr' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: 60%;
position: absolute;
right: auto;
top: 0px;
width: auto;
writing-mode: vertical-lr;
}
/*
"
3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width (set to shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px == 300px)
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
so used right offset value must be 100px.
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-019 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: 80%;
top: 0px;
width: 50px;
writing-mode: vertical-lr;
}
/*
"
4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
80% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
400px : right (80% of 500px == 400px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 0px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-021 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: 80%;
top: 0px;
width: 50px;
writing-mode: vertical-lr;
}
/*
"
4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
80% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
400px : right (80% of 500px == 400px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 0px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-023 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-lr' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
background-color: green;
border-left: green none 0px;
border-right: green none 0px;
height: 100px;
left: 60%;
position: absolute;
right: 20%;
top: 0px;
width: auto;
writing-mode: vertical-lr;
}
/*
"
5. [If] 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
20% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px)
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
solve : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
100px : right (20% of 500px == 100px)
====================
500px : width of containing block (width of Initial Containing Block)
so used width value must be 100px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-025 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-lr' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
background-color: green;
border-left: green none 0px;
border-right: green none 0px;
height: 100px;
left: 60%;
position: absolute;
right: 20%;
top: 0px;
width: auto;
writing-mode: vertical-lr;
}
/*
"
5. [If] 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
20% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px)
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
solve : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
100px : right (20% of 500px == 100px)
====================
500px : width of containing block (width of Initial Containing Block)
so used width value must be 100px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-027 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-lr' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
background-color: green;
border-left: green none 0px;
border-right: green none 0px;
height: 100px;
left: 60%;
position: absolute;
right: auto;
top: 0px;
width: 20%;
writing-mode: vertical-lr;
}
/*
"
6. [If] 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
20% : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
auto : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px)
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
100px : width (20% of 500px == 100px)
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
so used right offset value must be 100px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-029 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-lr' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
background-color: green;
border-left: green none 0px;
border-right: green none 0px;
height: 100px;
left: 60%;
position: absolute;
right: auto;
top: 0px;
width: 20%;
writing-mode: vertical-lr;
}
/*
"
6. [If] 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
20% : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
auto : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px)
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
100px : width (20% of 500px == 100px)
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
so used right offset value must be 100px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,96 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-031 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-lr' - overconstrained values with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
background-color: green;
border-left: green none 0px;
border-right: green none 0px;
height: 100px;
left: 60%;
margin-left: 0px;
margin-right: 0px;
position: absolute;
right: 40%;
top: 0px;
width: 20%;
writing-mode: vertical-lr;
}
/*
"
If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
20% : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
40% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px)
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
100px : width (20% of 500px == 100px)
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
ignore and solve : right
====================
500px : width of containing block (width of Initial Containing Block)
so used right offset value must be 100px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,96 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-033 in 'writing-mode: vertical-lr'</title>
<!--
position absolute and 'vertical-lr' - overconstrained values with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
background-color: green;
border-left: green none 0px;
border-right: green none 0px;
height: 100px;
left: 20%;
margin-left: 0px;
margin-right: 0px;
position: absolute;
right: 20%;
top: 0px;
width: 20%;
writing-mode: vertical-lr;
}
/*
"
If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
20% : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
20% : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
20% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
ignore and solve : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
100px : width (20% of 500px == 100px)
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
100px : right
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 300px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-006 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: 80%;
top: 0px;
width: auto;
writing-mode: vertical-rl;
}
/*
"
1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
80% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
400px : right (80% of 500px == 400px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 0px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-008 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: 20%;
top: 0px;
width: auto;
writing-mode: vertical-rl;
}
/*
"
1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
20% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
100px : right (20% of 500px == 100px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 300px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-014 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: 60%;
position: absolute;
right: auto;
top: 0px;
width: auto;
writing-mode: vertical-rl;
}
/*
"
3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width (set to shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px == 300px)
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
so used right offset value must be 100px.
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-016 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: 60%;
position: absolute;
right: auto;
top: 0px;
width: auto;
writing-mode: vertical-rl;
}
/*
"
3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width (set to shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px == 300px)
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
500px : width of containing block (width of Initial Containing Block)
so used right offset value must be 100px.
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-018 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: 80%;
top: 0px;
width: 50px;
writing-mode: vertical-rl;
}
/*
"
4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
80% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
400px : right (80% of 500px == 400px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 0px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-020 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block
-->
<style type="text/css">
html
{
direction: rtl;
}
div
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: 80%;
top: 0px;
width: 50px;
writing-mode: vertical-rl;
}
/*
"
4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
80% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
(solve) : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
400px : right (80% of 500px == 400px)
====================
500px : width of containing block (width of Initial Containing Block)
so used left offset value must be 0px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-022 in 'writing-mode: vertical-rl'</title>
<!--
position absolute and 'vertical-rl' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
-->
<style type="text/css">
html
{
direction: ltr;
}
div
{
background-color: green;
border-left: green none 0px;
border-right: green none 0px;
height: 100px;
left: 60%;
position: absolute;
right: 20%;
top: 0px;
width: auto;
writing-mode: vertical-rl;
}
/*
"
5. [If] 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
60% : left
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
20% : right
====================
500px : width of containing block (width of Initial Containing Block)
becomes
300px : left (60% of 500px)
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
solve : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
100px : right (20% of 500px == 100px)
====================
500px : width of containing block (width of Initial Containing Block)
so used width value must be 100px .
*/
</style>
</head>
<body>
<div></div>
</body></html>

Some files were not shown because too many files have changed in this diff Show more