mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 01:47:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px;
|
||||
writing-mode: vertical-lr; position: absolute; left: 0; top: 0; }
|
||||
.test { background: #aaa; position: absolute; left: 0; top: 0; width: 2em; height: 100%; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; left: 0; top: 34px;
|
||||
width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="rel">
|
||||
<div class="test"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div class="test"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr rel">
|
||||
<div class="test"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div class="test rel"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px;
|
||||
writing-mode: vertical-lr; position: absolute; left: 0; top: 0; }
|
||||
.test { background: #aaa; position: absolute; left: 0; top: 0; width: 2em; height: 100%; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; left: 0; top: 34px;
|
||||
background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="rel">
|
||||
<div class="test"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div class="test"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr rel">
|
||||
<div class="test"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div class="test rel"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { margin: 0; padding: 2px; border: 2px solid green; inline-size: -moz-fit-content; }
|
||||
</style>
|
||||
<body>
|
||||
<div>
|
||||
<div class="vlr"><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { position: absolute; margin: 0; padding: 2px; border: 2px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { position: absolute; margin: 0; padding: 2px; border: 2px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr rel">
|
||||
<div><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { position: absolute; margin: 0; padding: 2px; border: 2px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div class="rel"><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px;
|
||||
position: absolute; right: 0; top: 0; }
|
||||
.test { writing-mode: vertical-rl; background: #aaa;
|
||||
position: absolute; right: 0; top: 0; width: 2em; height: 100%; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; right: 0; top: 34px;
|
||||
width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="rel">
|
||||
<div class="test"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div class="test"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl rel">
|
||||
<div class="test"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; width: 30px; height: 40px; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div class="test rel"><span class="abc">abc</span><img src=""></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px;
|
||||
position: absolute; right: 0; top: 0; }
|
||||
.test { writing-mode: vertical-rl; background: #aaa;
|
||||
position: absolute; right: 0; top: 0; width: 2em; height: 100%; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; right: 0; top: 34px;
|
||||
background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="rel">
|
||||
<div class="test"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div class="test"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl rel">
|
||||
<div class="test"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 100px; height: 150px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
img { position: absolute; background: green; border: 5px solid yellow; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div class="test rel"><span class="abc">abc</span><img src="blue-32x32.png"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { margin: 0; padding: 2px; border: 2px solid green; inline-size: -moz-fit-content; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { position: absolute; margin: 0; padding: 2px; border: 2px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { position: absolute; margin: 0; padding: 2px; border: 2px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl rel">
|
||||
<div><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 120px; height: 150px; border: 5px solid blue; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
span { display: inline-block; padding: 5px; block-size: 1.5em; border: 2px solid red; }
|
||||
p { position: absolute; margin: 0; padding: 2px; border: 2px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div class="rel"><span>abc def</span><p>xyzzy</p></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px;
|
||||
writing-mode: vertical-lr; position: absolute; left: 0; top: 0; }
|
||||
.test { background: #aaa; position: absolute; left: 0; top: 0; width: 2em; height: 100%; }
|
||||
.rel { position: relative; }
|
||||
iframe {
|
||||
position: absolute; left: 0; top: 34px;
|
||||
background: yellow; border: 5px solid green;
|
||||
width: 300px; height: 150px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="rel">
|
||||
<div class="test"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
iframe { position: absolute; background: yellow; border: 5px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div class="test"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
iframe { position: absolute; background: yellow; border: 5px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr rel">
|
||||
<div class="test"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vlr { writing-mode: vertical-lr; }
|
||||
.rel { position: relative; }
|
||||
iframe { position: absolute; background: yellow; border: 5px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vlr">
|
||||
<div class="test rel"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px;
|
||||
writing-mode: vertical-rl; position: absolute; right: 0; top: 0; }
|
||||
.test { background: #aaa; position: absolute; right: 0; top: 0; width: 2em; height: 100%; }
|
||||
.rel { position: relative; }
|
||||
iframe {
|
||||
position: absolute; right: 0; top: 34px;
|
||||
background: yellow; border: 5px solid green;
|
||||
width: 300px; height: 150px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="rel">
|
||||
<div class="test"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
iframe { position: absolute; background: yellow; border: 5px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div class="test"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
iframe { position: absolute; background: yellow; border: 5px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl rel">
|
||||
<div class="test"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body>div { margin: 50px 20px; width: 400px; height: 500px; border: 5px solid blue; }
|
||||
.abc { display: inline-block; border: 2px solid red; inline-size: 30px; }
|
||||
.test { background: #aaa; width: 2em; }
|
||||
.vrl { writing-mode: vertical-rl; }
|
||||
.rel { position: relative; }
|
||||
iframe { position: absolute; background: yellow; border: 5px solid green; }
|
||||
</style>
|
||||
<body>
|
||||
<div class="vrl">
|
||||
<div class="test rel"><span class="abc">abc</span><iframe src="data:text/html,hello"></iframe></div>
|
||||
</div>
|
||||
BIN
layout/reftests/writing-mode/abspos/blue-32x32.png
Normal file
BIN
layout/reftests/writing-mode/abspos/blue-32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 B |
130
layout/reftests/writing-mode/abspos/reftest-stylo.list
Normal file
130
layout/reftests/writing-mode/abspos/reftest-stylo.list
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
|
||||
# This directory contains tests for position:absolute and vertical writing modes.
|
||||
# They require the vertical-text pref to be true, otherwise lots of them will fail.
|
||||
# (See bug 1079151 for the origin of these testcases by Gérard Talbot.)
|
||||
|
||||
|
||||
# All of these are fuzzy-if on skia content on OS X due to subpixel text positioning.
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-003.xht s71-abs-pos-non-replaced-vlr-003.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-005.xht s71-abs-pos-non-replaced-vlr-005.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-007.xht s71-abs-pos-non-replaced-vlr-007.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-009.xht s71-abs-pos-non-replaced-vlr-009.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-011.xht s71-abs-pos-non-replaced-vlr-011.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-013.xht s71-abs-pos-non-replaced-vlr-013.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-015.xht s71-abs-pos-non-replaced-vlr-015.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-017.xht s71-abs-pos-non-replaced-vlr-017.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-019.xht s71-abs-pos-non-replaced-vlr-019.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-021.xht s71-abs-pos-non-replaced-vlr-021.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-023.xht s71-abs-pos-non-replaced-vlr-023.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-025.xht s71-abs-pos-non-replaced-vlr-025.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-027.xht s71-abs-pos-non-replaced-vlr-027.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-029.xht s71-abs-pos-non-replaced-vlr-029.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-031.xht s71-abs-pos-non-replaced-vlr-031.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-033.xht s71-abs-pos-non-replaced-vlr-033.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-035.xht s71-abs-pos-non-replaced-vlr-035.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-037.xht s71-abs-pos-non-replaced-vlr-037.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-039.xht s71-abs-pos-non-replaced-vlr-039.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-041.xht s71-abs-pos-non-replaced-vlr-041.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-043.xht s71-abs-pos-non-replaced-vlr-043.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-045.xht s71-abs-pos-non-replaced-vlr-045.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-047.xht s71-abs-pos-non-replaced-vlr-047.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-049.xht s71-abs-pos-non-replaced-vlr-049.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-051.xht s71-abs-pos-non-replaced-vlr-051.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-053.xht s71-abs-pos-non-replaced-vlr-053.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-055.xht s71-abs-pos-non-replaced-vlr-055.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-057.xht s71-abs-pos-non-replaced-vlr-057.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-059.xht s71-abs-pos-non-replaced-vlr-059.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-061.xht s71-abs-pos-non-replaced-vlr-061.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-063.xht s71-abs-pos-non-replaced-vlr-063.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-065.xht s71-abs-pos-non-replaced-vlr-065.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-067.xht s71-abs-pos-non-replaced-vlr-067.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-069.xht s71-abs-pos-non-replaced-vlr-069.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-071.xht s71-abs-pos-non-replaced-vlr-071.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vlr-073.xht s71-abs-pos-non-replaced-vlr-073.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-075.xht s71-abs-pos-non-replaced-vlr-075.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-077.xht s71-abs-pos-non-replaced-vlr-077.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-079.xht s71-abs-pos-non-replaced-vlr-079.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-081.xht s71-abs-pos-non-replaced-vlr-081.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-083.xht s71-abs-pos-non-replaced-vlr-083.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-085.xht s71-abs-pos-non-replaced-vlr-085.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-087.xht s71-abs-pos-non-replaced-vlr-087.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-089.xht s71-abs-pos-non-replaced-vlr-089.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-091.xht s71-abs-pos-non-replaced-vlr-091.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-093.xht s71-abs-pos-non-replaced-vlr-093.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-095.xht s71-abs-pos-non-replaced-vlr-095.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vlr-097.xht s71-abs-pos-non-replaced-vlr-097.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-002.xht s71-abs-pos-non-replaced-vrl-002.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-004.xht s71-abs-pos-non-replaced-vrl-004.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-006.xht s71-abs-pos-non-replaced-vrl-006.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-008.xht s71-abs-pos-non-replaced-vrl-008.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-010.xht s71-abs-pos-non-replaced-vrl-010.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-012.xht s71-abs-pos-non-replaced-vrl-012.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-014.xht s71-abs-pos-non-replaced-vrl-014.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-016.xht s71-abs-pos-non-replaced-vrl-016.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-018.xht s71-abs-pos-non-replaced-vrl-018.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-020.xht s71-abs-pos-non-replaced-vrl-020.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-022.xht s71-abs-pos-non-replaced-vrl-022.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-024.xht s71-abs-pos-non-replaced-vrl-024.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-026.xht s71-abs-pos-non-replaced-vrl-026.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-028.xht s71-abs-pos-non-replaced-vrl-028.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-030.xht s71-abs-pos-non-replaced-vrl-030.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-032.xht s71-abs-pos-non-replaced-vrl-032.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-034.xht s71-abs-pos-non-replaced-vrl-034.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-036.xht s71-abs-pos-non-replaced-vrl-036.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-038.xht s71-abs-pos-non-replaced-vrl-038.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-040.xht s71-abs-pos-non-replaced-vrl-040.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-042.xht s71-abs-pos-non-replaced-vrl-042.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-044.xht s71-abs-pos-non-replaced-vrl-044.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-046.xht s71-abs-pos-non-replaced-vrl-046.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-048.xht s71-abs-pos-non-replaced-vrl-048.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-050.xht s71-abs-pos-non-replaced-vrl-050.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-052.xht s71-abs-pos-non-replaced-vrl-052.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-054.xht s71-abs-pos-non-replaced-vrl-054.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-056.xht s71-abs-pos-non-replaced-vrl-056.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-058.xht s71-abs-pos-non-replaced-vrl-058.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-060.xht s71-abs-pos-non-replaced-vrl-060.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-062.xht s71-abs-pos-non-replaced-vrl-062.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-064.xht s71-abs-pos-non-replaced-vrl-064.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-066.xht s71-abs-pos-non-replaced-vrl-066.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-068.xht s71-abs-pos-non-replaced-vrl-068.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-070.xht s71-abs-pos-non-replaced-vrl-070.xht
|
||||
fails fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) == s71-abs-pos-non-replaced-vrl-072.xht s71-abs-pos-non-replaced-vrl-072.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-074.xht s71-abs-pos-non-replaced-vrl-074.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-076.xht s71-abs-pos-non-replaced-vrl-076.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-078.xht s71-abs-pos-non-replaced-vrl-078.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-080.xht s71-abs-pos-non-replaced-vrl-080.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-082.xht s71-abs-pos-non-replaced-vrl-082.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-084.xht s71-abs-pos-non-replaced-vrl-084.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-086.xht s71-abs-pos-non-replaced-vrl-086.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-088.xht s71-abs-pos-non-replaced-vrl-088.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-090.xht s71-abs-pos-non-replaced-vrl-090.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-092.xht s71-abs-pos-non-replaced-vrl-092.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-094.xht s71-abs-pos-non-replaced-vrl-094.xht
|
||||
fails fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) == s71-abs-pos-non-replaced-vrl-096.xht s71-abs-pos-non-replaced-vrl-096.xht
|
||||
|
||||
== 1183431-orthogonal-modes-1a.html 1183431-orthogonal-modes-1a.html
|
||||
== 1183431-orthogonal-modes-1b.html 1183431-orthogonal-modes-1b.html
|
||||
== 1183431-orthogonal-modes-1c.html 1183431-orthogonal-modes-1c.html
|
||||
== 1183431-orthogonal-modes-2a.html 1183431-orthogonal-modes-2a.html
|
||||
== 1183431-orthogonal-modes-2b.html 1183431-orthogonal-modes-2b.html
|
||||
== 1183431-orthogonal-modes-2c.html 1183431-orthogonal-modes-2c.html
|
||||
== 1183431-orthogonal-modes-3a.html 1183431-orthogonal-modes-3a.html
|
||||
== 1183431-orthogonal-modes-3b.html 1183431-orthogonal-modes-3b.html
|
||||
== 1183431-orthogonal-modes-3c.html 1183431-orthogonal-modes-3c.html
|
||||
== 1183431-orthogonal-modes-4a.html 1183431-orthogonal-modes-4a.html
|
||||
== 1183431-orthogonal-modes-4b.html 1183431-orthogonal-modes-4b.html
|
||||
== 1183431-orthogonal-modes-4c.html 1183431-orthogonal-modes-4c.html
|
||||
== 1183431-orthogonal-modes-5a.html 1183431-orthogonal-modes-5a.html
|
||||
== 1183431-orthogonal-modes-5b.html 1183431-orthogonal-modes-5b.html
|
||||
== 1183431-orthogonal-modes-5c.html 1183431-orthogonal-modes-5c.html
|
||||
== 1183431-orthogonal-modes-6a.html 1183431-orthogonal-modes-6a.html
|
||||
# bug 1191801
|
||||
== 1183431-orthogonal-modes-6b.html 1183431-orthogonal-modes-6b.html
|
||||
== 1183431-orthogonal-modes-6c.html 1183431-orthogonal-modes-6c.html
|
||||
== 1183431-orthogonal-modes-7a.html 1183431-orthogonal-modes-7a.html
|
||||
== 1183431-orthogonal-modes-7b.html 1183431-orthogonal-modes-7b.html
|
||||
== 1183431-orthogonal-modes-7c.html 1183431-orthogonal-modes-7c.html
|
||||
== 1183431-orthogonal-modes-8a.html 1183431-orthogonal-modes-8a.html
|
||||
# bug 1191801
|
||||
== 1183431-orthogonal-modes-8b.html 1183431-orthogonal-modes-8b.html
|
||||
== 1183431-orthogonal-modes-8c.html 1183431-orthogonal-modes-8c.html
|
||||
128
layout/reftests/writing-mode/abspos/reftest.list
Normal file
128
layout/reftests/writing-mode/abspos/reftest.list
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
# This directory contains tests for position:absolute and vertical writing modes.
|
||||
# (See bug 1079151 for the origin of these testcases by Gérard Talbot.)
|
||||
|
||||
# All of these are fuzzy-if on skia content on OS X due to subpixel text positioning.
|
||||
# Frequent Windows 7 load failed: timed out waiting for test to complete (waiting for onload scripts to complete), bug 1167155 and friends
|
||||
# Even though the whole reftest.list here is skipped, it doesn't actually work because reftests match the last
|
||||
# **-if, which means even though we tried to skip this list,the fuzzy-if still matched forcing us to run the test.
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-003.xht s71-abs-pos-non-replaced-vlr-003-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-005.xht s71-abs-pos-non-replaced-vlr-005-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-007.xht s71-abs-pos-non-replaced-vlr-007-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-009.xht s71-abs-pos-non-replaced-vlr-009-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-011.xht s71-abs-pos-non-replaced-vlr-011-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-013.xht s71-abs-pos-non-replaced-vlr-013-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-015.xht s71-abs-pos-non-replaced-vlr-015-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-017.xht s71-abs-pos-non-replaced-vlr-017-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-019.xht s71-abs-pos-non-replaced-vlr-019-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-021.xht s71-abs-pos-non-replaced-vlr-021-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-023.xht s71-abs-pos-non-replaced-vlr-023-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-025.xht s71-abs-pos-non-replaced-vlr-025-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-027.xht s71-abs-pos-non-replaced-vlr-027-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-029.xht s71-abs-pos-non-replaced-vlr-029-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-031.xht s71-abs-pos-non-replaced-vlr-031-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-033.xht s71-abs-pos-non-replaced-vlr-033-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-035.xht s71-abs-pos-non-replaced-vlr-035-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-037.xht s71-abs-pos-non-replaced-vlr-037-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-039.xht s71-abs-pos-non-replaced-vlr-039-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-041.xht s71-abs-pos-non-replaced-vlr-041-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-043.xht s71-abs-pos-non-replaced-vlr-043-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-045.xht s71-abs-pos-non-replaced-vlr-045-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-047.xht s71-abs-pos-non-replaced-vlr-047-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-049.xht s71-abs-pos-non-replaced-vlr-049-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-051.xht s71-abs-pos-non-replaced-vlr-051-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-053.xht s71-abs-pos-non-replaced-vlr-053-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-055.xht s71-abs-pos-non-replaced-vlr-055-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-057.xht s71-abs-pos-non-replaced-vlr-057-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-059.xht s71-abs-pos-non-replaced-vlr-059-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-061.xht s71-abs-pos-non-replaced-vlr-061-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-063.xht s71-abs-pos-non-replaced-vlr-063-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-065.xht s71-abs-pos-non-replaced-vlr-065-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-067.xht s71-abs-pos-non-replaced-vlr-067-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-069.xht s71-abs-pos-non-replaced-vlr-069-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-071.xht s71-abs-pos-non-replaced-vlr-071-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-073.xht s71-abs-pos-non-replaced-vlr-073-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-075.xht s71-abs-pos-non-replaced-vlr-075-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-077.xht s71-abs-pos-non-replaced-vlr-077-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-079.xht s71-abs-pos-non-replaced-vlr-079-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-081.xht s71-abs-pos-non-replaced-vlr-081-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-083.xht s71-abs-pos-non-replaced-vlr-083-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-085.xht s71-abs-pos-non-replaced-vlr-085-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-087.xht s71-abs-pos-non-replaced-vlr-087-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-089.xht s71-abs-pos-non-replaced-vlr-089-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-091.xht s71-abs-pos-non-replaced-vlr-091-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-093.xht s71-abs-pos-non-replaced-vlr-093-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-095.xht s71-abs-pos-non-replaced-vlr-095-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vlr-097.xht s71-abs-pos-non-replaced-vlr-097-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-002.xht s71-abs-pos-non-replaced-vrl-002-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-004.xht s71-abs-pos-non-replaced-vrl-004-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-006.xht s71-abs-pos-non-replaced-vrl-006-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-008.xht s71-abs-pos-non-replaced-vrl-008-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-010.xht s71-abs-pos-non-replaced-vrl-010-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-012.xht s71-abs-pos-non-replaced-vrl-012-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-014.xht s71-abs-pos-non-replaced-vrl-014-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-016.xht s71-abs-pos-non-replaced-vrl-016-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-018.xht s71-abs-pos-non-replaced-vrl-018-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-020.xht s71-abs-pos-non-replaced-vrl-020-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-022.xht s71-abs-pos-non-replaced-vrl-022-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-024.xht s71-abs-pos-non-replaced-vrl-024-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-026.xht s71-abs-pos-non-replaced-vrl-026-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-028.xht s71-abs-pos-non-replaced-vrl-028-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-030.xht s71-abs-pos-non-replaced-vrl-030-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-032.xht s71-abs-pos-non-replaced-vrl-032-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-034.xht s71-abs-pos-non-replaced-vrl-034-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-036.xht s71-abs-pos-non-replaced-vrl-036-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-038.xht s71-abs-pos-non-replaced-vrl-038-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-040.xht s71-abs-pos-non-replaced-vrl-040-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-042.xht s71-abs-pos-non-replaced-vrl-042-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-044.xht s71-abs-pos-non-replaced-vrl-044-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-046.xht s71-abs-pos-non-replaced-vrl-046-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-048.xht s71-abs-pos-non-replaced-vrl-048-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-050.xht s71-abs-pos-non-replaced-vrl-050-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-052.xht s71-abs-pos-non-replaced-vrl-052-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-054.xht s71-abs-pos-non-replaced-vrl-054-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-056.xht s71-abs-pos-non-replaced-vrl-056-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-058.xht s71-abs-pos-non-replaced-vrl-058-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-060.xht s71-abs-pos-non-replaced-vrl-060-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-062.xht s71-abs-pos-non-replaced-vrl-062-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-064.xht s71-abs-pos-non-replaced-vrl-064-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-066.xht s71-abs-pos-non-replaced-vrl-066-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-068.xht s71-abs-pos-non-replaced-vrl-068-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-070.xht s71-abs-pos-non-replaced-vrl-070-ref.xht
|
||||
fuzzy-if(cocoaWidget,118,242) fuzzy-if(winWidget,116,240) fuzzy-if(skiaContent,154,320) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-072.xht s71-abs-pos-non-replaced-vrl-072-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-074.xht s71-abs-pos-non-replaced-vrl-074-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-076.xht s71-abs-pos-non-replaced-vrl-076-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-078.xht s71-abs-pos-non-replaced-vrl-078-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-080.xht s71-abs-pos-non-replaced-vrl-080-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-082.xht s71-abs-pos-non-replaced-vrl-082-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-084.xht s71-abs-pos-non-replaced-vrl-084-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-086.xht s71-abs-pos-non-replaced-vrl-086-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-088.xht s71-abs-pos-non-replaced-vrl-088-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-090.xht s71-abs-pos-non-replaced-vrl-090-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-092.xht s71-abs-pos-non-replaced-vrl-092-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-094.xht s71-abs-pos-non-replaced-vrl-094-ref.xht
|
||||
fuzzy-if(cocoaWidget,15,5) fuzzy-if(d2d,102,164) fuzzy-if(skiaContent,255,248) skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == s71-abs-pos-non-replaced-vrl-096.xht s71-abs-pos-non-replaced-vrl-096-ref.xht
|
||||
|
||||
== 1183431-orthogonal-modes-1a.html 1183431-orthogonal-modes-1-ref.html
|
||||
== 1183431-orthogonal-modes-1b.html 1183431-orthogonal-modes-1-ref.html
|
||||
== 1183431-orthogonal-modes-1c.html 1183431-orthogonal-modes-1-ref.html
|
||||
== 1183431-orthogonal-modes-2a.html 1183431-orthogonal-modes-2-ref.html
|
||||
== 1183431-orthogonal-modes-2b.html 1183431-orthogonal-modes-2-ref.html
|
||||
== 1183431-orthogonal-modes-2c.html 1183431-orthogonal-modes-2-ref.html
|
||||
== 1183431-orthogonal-modes-3a.html 1183431-orthogonal-modes-3-ref.html
|
||||
== 1183431-orthogonal-modes-3b.html 1183431-orthogonal-modes-3-ref.html
|
||||
== 1183431-orthogonal-modes-3c.html 1183431-orthogonal-modes-3-ref.html
|
||||
== 1183431-orthogonal-modes-4a.html 1183431-orthogonal-modes-4-ref.html
|
||||
== 1183431-orthogonal-modes-4b.html 1183431-orthogonal-modes-4-ref.html
|
||||
== 1183431-orthogonal-modes-4c.html 1183431-orthogonal-modes-4-ref.html
|
||||
== 1183431-orthogonal-modes-5a.html 1183431-orthogonal-modes-5-ref.html
|
||||
== 1183431-orthogonal-modes-5b.html 1183431-orthogonal-modes-5-ref.html
|
||||
== 1183431-orthogonal-modes-5c.html 1183431-orthogonal-modes-5-ref.html
|
||||
fails == 1183431-orthogonal-modes-6a.html 1183431-orthogonal-modes-6-ref.html # bug 1191801
|
||||
== 1183431-orthogonal-modes-6b.html 1183431-orthogonal-modes-6-ref.html
|
||||
== 1183431-orthogonal-modes-6c.html 1183431-orthogonal-modes-6-ref.html
|
||||
== 1183431-orthogonal-modes-7a.html 1183431-orthogonal-modes-7-ref.html
|
||||
== 1183431-orthogonal-modes-7b.html 1183431-orthogonal-modes-7-ref.html
|
||||
== 1183431-orthogonal-modes-7c.html 1183431-orthogonal-modes-7-ref.html
|
||||
fails == 1183431-orthogonal-modes-8a.html 1183431-orthogonal-modes-8-ref.html # bug 1191801
|
||||
== 1183431-orthogonal-modes-8b.html 1183431-orthogonal-modes-8-ref.html
|
||||
== 1183431-orthogonal-modes-8c.html 1183431-orthogonal-modes-8-ref.html
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, then the height is based on the content and then solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
|
||||
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : top: auto: set to static position
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
160px : top: auto: set to static position
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 2em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,112 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto', then set 'left' to the static position, the width becomes shrink-to-fit and then solve for 'right'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-3col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
width: auto;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
|
||||
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : left: auto: set to static position
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
(shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
160px : left: auto: set to static position
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : (shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed right value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,125 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, then the height is based on the content and then solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
|
||||
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : top: auto: set to static position
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
160px : top: auto: set to static position
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,120 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then set 'bottom' to the static position, the height is based on the content and then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
|
||||
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom: auto: set to static position
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom: auto: set to static position
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,112 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are 'auto', then set 'right' to the static position, the width becomes shrink-to-fit and then solve for 'left'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
width: auto;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
|
||||
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
(shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right: auto: set to static position
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : (shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right: auto: set to static position
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed left value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,124 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then set 'bottom' to the static position, the height is based on the content and then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.
|
||||
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom: auto: set to static position
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom: auto: set to static position
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height' are 'auto' and bottom is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' are 'auto' and bottom is not 'auto', then the height is based on the content and then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 2em;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: 2em;
|
||||
width: auto;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
(shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : (shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed left value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 2em;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 2em;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: 2em;
|
||||
width: auto;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
(shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : (shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed left value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' are 'auto' and bottom is not 'auto', then the height is based on the content and then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 2em;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom are 'auto' and 'height' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
color: transparent;
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : top: auto: set to static position
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 2em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'left' to the static position and then solve for 'right'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-3col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
width: 1em;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : left: auto: set to static position
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : width
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
160px : left: auto: set to static position
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : width
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed right value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom are 'auto' and 'height' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : top: auto: set to static position
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto and 'height' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto and 'height' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom: auto: set to static position
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'right' to the static position and then solve for 'left'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
width: 1em;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : width
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed left value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to static position and solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom: auto: set to static position
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,111 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: 1em;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
width: auto;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
"
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
80px : left
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
(shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
80px : left
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed right value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,110 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: 1em;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
width: auto;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
80px : left
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
(shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
80px : left
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : (shrink-to-fit) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed right value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,122 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: auto;
|
||||
color: green;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
80px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : (based on the content) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom: auto
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed bottom value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 1em;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
80px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 2em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-3col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: 1em;
|
||||
width: 1em;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : width
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
80px : right
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed left value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 1em;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
80px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 1em;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
80px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 2em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left', then solve for 'left'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-3col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
left: auto;
|
||||
position: absolute;
|
||||
right: 1em;
|
||||
width: 1em;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
4.'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
80px : width
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
80px : right
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed left value must be 160px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-007-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: rtl;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
bottom: 1em;
|
||||
color: green;
|
||||
height: 1em;
|
||||
position: absolute;
|
||||
top: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
(solve) : top: auto
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
80px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed top value must be 160px .
|
||||
*/
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vlr-003-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-2col-3row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: green;
|
||||
bottom: 1em;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: 2em;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.
|
||||
"
|
||||
7.1 Principles of Layout in Vertical Writing Modes
|
||||
http://www.w3.org/TR/css-writing-modes-3/#vertical-layout
|
||||
|
||||
So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.
|
||||
|
||||
"
|
||||
5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
|
||||
"
|
||||
|
||||
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
(solve) : height: auto
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
80px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
And so computed height value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span></span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 2em; top: 1em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>
|
||||
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
|
||||
<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />
|
||||
<link rel="match" href="s71-abs-pos-non-replaced-vrl-004-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
div#containing-block
|
||||
{
|
||||
background: red url("support/bg-red-3col-2row-320x320.png");
|
||||
color: transparent;
|
||||
direction: ltr;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: green;
|
||||
height: 1em;
|
||||
left: 2em;
|
||||
position: absolute;
|
||||
right: 1em;
|
||||
width: auto;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : left: auto
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-left-width
|
||||
+
|
||||
0px : padding-left
|
||||
+
|
||||
(solve) : width: auto
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
80px : right: auto
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
And so computed width value must be 80px .
|
||||
*/
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span></span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
|
||||
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>
|
||||
|
||||
|
||||
|
||||
<link type="text/css" rel="stylesheet" href="support/ahem.css" />
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
html
|
||||
{
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div#containing-block
|
||||
{
|
||||
-ah-writing-mode: initial;
|
||||
-webkit-writing-mode: initial;
|
||||
writing-mode: initial;
|
||||
direction: ltr;
|
||||
color: transparent;
|
||||
font: 80px/1 Ahem;
|
||||
height: 320px;
|
||||
position: relative;
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
div#containing-block > span
|
||||
{
|
||||
background-color: red;
|
||||
color: green;
|
||||
position: absolute;
|
||||
left: 1em; top: 2em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
]]></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>
|
||||
|
||||
<div id="containing-block">1 2 34<span>X</span></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue