зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1258916 part 12 - Remove some of duplicate writing modes tests in tree. r=jfkthame
MozReview-Commit-ID: nebe2a6lFe --HG-- extra : source : 3fbfb8528d2ffcc4d1e80a355e3c1e74f9524fa0
This commit is contained in:
Родитель
ea2da9e68b
Коммит
fbed858169
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
</head>
|
||||
<body>
|
||||
<div id="reference"><img src="blue-yellow-206w-165h.png" width="206" height="165" alt="Image download support must be enabled"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,59 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the margin are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
height: 3px;
|
||||
margin: 0.5em auto;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: yellow;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
-ah-writing-mode: vertical-rl;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: tb-rl; /* IE11 */
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
margin-bottom: 2.5%; /* 5px */
|
||||
margin-left: 50%; /* 100px */
|
||||
margin-right: 25%; /* 50px */
|
||||
margin-top: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
margin-bottom: 10%;
|
||||
margin-left: 25%;
|
||||
margin-right: 50%;
|
||||
margin-top: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner foo"></div>
|
||||
<hr>
|
||||
<div class="inner bar"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,59 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: margin percentage and 'vertical-lr'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the margin are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
height: 3px;
|
||||
margin: 0.5em auto;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: yellow;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
margin-bottom: 2.5%; /* 5px */
|
||||
margin-left: 50%; /* 100px */
|
||||
margin-right: 25%; /* 50px */
|
||||
margin-top: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
margin-bottom: 10%;
|
||||
margin-left: 25%;
|
||||
margin-right: 50%;
|
||||
margin-top: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner foo"></div>
|
||||
<hr>
|
||||
<div class="inner bar"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,63 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the margin are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-rl'. In this test, div.outer's computed 'writing-mode' value is 'vertical-rl' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
height: 200px;
|
||||
-ah-writing-mode: vertical-rl;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: tb-rl; /* IE11 */
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
width: 3px;
|
||||
margin: auto 0.5em;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: yellow;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
-ah-writing-mode: horizontal-tb;
|
||||
-webkit-writing-mode: horizontal-tb;
|
||||
writing-mode: lr-tb; /* IE11 */
|
||||
writing-mode: horizontal-tb;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
margin-left: 2.5%; /* 5px */
|
||||
margin-top: 50%; /* 100px */
|
||||
margin-bottom: 25%; /* 50px */
|
||||
margin-right: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
margin-left: 10%;
|
||||
margin-top: 25%;
|
||||
margin-bottom: 50%;
|
||||
margin-right: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner foo"></div>
|
||||
<hr>
|
||||
<div class="inner bar"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,63 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: margin percentage and 'vertical-lr'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the margin are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-lr'. In this test, div.outer's computed 'writing-mode' value is 'vertical-lr' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
height: 200px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
width: 3px;
|
||||
margin: auto 0.5em;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: yellow;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
-ah-writing-mode: horizontal-tb;
|
||||
-webkit-writing-mode: horizontal-tb;
|
||||
writing-mode: lr-tb; /* IE11 */
|
||||
writing-mode: horizontal-tb;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
margin-left: 2.5%; /* 5px */
|
||||
margin-top: 50%; /* 100px */
|
||||
margin-bottom: 25%; /* 50px */
|
||||
margin-right: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
margin-left: 10%;
|
||||
margin-top: 25%;
|
||||
margin-bottom: 50%;
|
||||
margin-right: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner bar"></div>
|
||||
<hr>
|
||||
<div class="inner foo"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,57 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: padding percentage and 'vertical-rl'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the padding are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
height: 3px;
|
||||
margin: 3px auto;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: transparent;
|
||||
height: 50px;
|
||||
-ah-writing-mode: vertical-rl;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: tb-rl; /* IE11 */
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
padding-bottom: 2.5%; /* 5px */
|
||||
padding-left: 50%; /* 100px */
|
||||
padding-right: 25%; /* 50px */
|
||||
padding-top: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
padding-bottom: 10%;
|
||||
padding-left: 25%;
|
||||
padding-right: 50%;
|
||||
padding-top: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
<hr>
|
||||
<div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,58 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: padding percentage and 'vertical-lr'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the padding are calculated with respect to the inline-size (width) of the containing block if 'writing-mode' of such containing block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
height: 3px;
|
||||
margin: 3px auto;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: transparent;
|
||||
height: 50px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
padding-bottom: 2.5%; /* 5px */
|
||||
padding-left: 50%; /* 100px */
|
||||
padding-right: 25%; /* 50px */
|
||||
padding-top: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
padding-bottom: 10%;
|
||||
padding-left: 25%;
|
||||
padding-right: 50%;
|
||||
padding-top: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
<hr>
|
||||
<div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: padding percentage and 'vertical-rl'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the padding are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-rl'. In this test, div.outer's computed 'writing-mode' value is 'vertical-rl' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
height: 200px;
|
||||
-ah-writing-mode: vertical-rl;
|
||||
-webkit-writing-mode: vertical-rl;
|
||||
writing-mode: tb-rl; /* IE11 */
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
width: 3px;
|
||||
margin: auto 3px;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: transparent;
|
||||
width: 50px;
|
||||
-ah-writing-mode: horizontal-tb;
|
||||
-webkit-writing-mode: horizontal-tb;
|
||||
writing-mode: lr-tb; /* IE11 */
|
||||
writing-mode: horizontal-tb;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
padding-left: 2.5%; /* 5px */
|
||||
padding-top: 50%; /* 100px */
|
||||
padding-bottom: 25%; /* 50px */
|
||||
padding-right: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
padding-left: 10%;
|
||||
padding-top: 25%;
|
||||
padding-bottom: 50%;
|
||||
padding-right: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
<hr>
|
||||
<div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,62 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: padding percentage and 'vertical-lr'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
<meta content="This test checks that percentages on the padding are calculated with respect to the inline size (height!) of the containing block if 'writing-mode' of such containing block is 'vertical-lr'. In this test, div.outer's computed 'writing-mode' value is 'vertical-lr' and it is the div.inner's containing block." name="assert">
|
||||
<style type="text/css">
|
||||
div.outer
|
||||
{
|
||||
background-color: blue;
|
||||
border: blue solid 3px;
|
||||
height: 200px;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
background-color: transparent;
|
||||
border: transparent none 0px;
|
||||
width: 3px;
|
||||
margin: auto 3px;
|
||||
}
|
||||
|
||||
div.inner
|
||||
{
|
||||
background-color: transparent;
|
||||
width: 50px;
|
||||
-ah-writing-mode: horizontal-tb;
|
||||
-webkit-writing-mode: horizontal-tb;
|
||||
writing-mode: lr-tb; /* IE11 */
|
||||
writing-mode: horizontal-tb;
|
||||
}
|
||||
|
||||
div.foo
|
||||
{
|
||||
padding-left: 2.5%; /* 5px */
|
||||
padding-top: 50%; /* 100px */
|
||||
padding-bottom: 25%; /* 50px */
|
||||
padding-right: 10%; /* 20px */
|
||||
}
|
||||
|
||||
div.bar
|
||||
{
|
||||
padding-left: 10%;
|
||||
padding-top: 25%;
|
||||
padding-bottom: 50%;
|
||||
padding-right: 2.5%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="outer">
|
||||
<div class="inner bar"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
<hr>
|
||||
<div class="inner foo"><img src="swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Writing Modes Test: margin percentage and 'vertical-rl'</title>
|
||||
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
|
||||
</head>
|
||||
<body>
|
||||
<div id="reference"><img src="blue-yellow-165w-206h.png" width="165" height="206" alt="Image download support must be enabled"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -4,104 +4,6 @@
|
|||
# (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
|
||||
|
|
|
@ -1,107 +1,3 @@
|
|||
# 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
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,120 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,112 +0,0 @@
|
|||
<!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>
|
|
@ -1,57 +0,0 @@
|
|||
<!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>
|
|
@ -1,125 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,120 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,112 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,124 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,118 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,110 +0,0 @@
|
|||
<!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>
|
|
@ -1,57 +0,0 @@
|
|||
<!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>
|
|
@ -1,122 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,118 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,110 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,122 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,110 +0,0 @@
|
|||
<!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>
|
|
@ -1,57 +0,0 @@
|
|||
<!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>
|
|
@ -1,101 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,88 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,100 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,118 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,111 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,122 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,118 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,110 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,122 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,88 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,100 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,88 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,101 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
|
@ -1,88 +0,0 @@
|
|||
<!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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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>
|
|
@ -1,100 +0,0 @@
|
|||
<!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-007-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[
|
||||
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: 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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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' 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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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' 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 'rtl' 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: 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: 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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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' 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>
|
|
@ -1,88 +0,0 @@
|
|||
<!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' 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 'rtl' and '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: rtl;
|
||||
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
|
||||
+
|
||||
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
|
||||
=====================
|
||||
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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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' 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>
|
|
@ -1,100 +0,0 @@
|
|||
<!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' 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-007-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' 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[
|
||||
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: 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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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: 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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', 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: 1em;
|
||||
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.
|
||||
|
||||
"
|
||||
6. 'right' is 'auto', 'left' and 'width' are not 'auto', 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
|
||||
+
|
||||
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 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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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 'right' is 'auto', 'left' and 'width' 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: 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>
|
|
@ -1,88 +0,0 @@
|
|||
<!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 'right' is 'auto', 'left' and 'width' 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-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto', 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: 1em;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
6. 'right' is 'auto', 'left' and 'width' are not 'auto', 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
|
||||
+
|
||||
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 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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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: 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>
|
|
@ -1,100 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', 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: 1em;
|
||||
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.
|
||||
|
||||
"
|
||||
6. 'right' is 'auto', 'left' and 'width' are not 'auto', 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
|
||||
+
|
||||
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 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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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: 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>
|
|
@ -1,96 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', 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: 1em;
|
||||
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.
|
||||
|
||||
"
|
||||
6. 'right' is 'auto', 'left' and 'width' are not 'auto', 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
|
||||
+
|
||||
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 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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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 'right' is 'auto', 'left' and 'width' 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: 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>
|
|
@ -1,88 +0,0 @@
|
|||
<!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 'right' is 'auto', 'left' and 'width' 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-009-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto', 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: 1em;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
6. 'right' is 'auto', 'left' and 'width' are not 'auto', 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
|
||||
+
|
||||
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 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>
|
|
@ -1,56 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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: 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>
|
|
@ -1,100 +0,0 @@
|
|||
<!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 'bottom' is 'auto' and 'top' and 'height' 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-013-ref.xht" />
|
||||
|
||||
<meta name="flags" content="ahem image" />
|
||||
<meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', 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: 1em;
|
||||
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.
|
||||
|
||||
"
|
||||
6. 'right' is 'auto', 'left' and 'width' are not 'auto', 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
|
||||
+
|
||||
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 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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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 not 'auto' (overconstrained)</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>
|
|
@ -1,120 +0,0 @@
|
|||
<!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 not 'auto' (overconstrained)</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 not 'auto' and if the values are overconstrained, then ignore 'bottom' 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: 2em;
|
||||
color: green;
|
||||
height: 1em;
|
||||
margin-bottom: 0em;
|
||||
margin-top: 0em;
|
||||
position: absolute;
|
||||
top: 2em;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
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 the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
|
||||
"
|
||||
|
||||
'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
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
160px : bottom
|
||||
=====================
|
||||
320px : height of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
160px : top
|
||||
+
|
||||
0px : margin-top
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : height
|
||||
+
|
||||
0px : padding-bottom
|
||||
+
|
||||
0px : border-bottom-width
|
||||
+
|
||||
0px : margin-bottom
|
||||
+
|
||||
(solve) : bottom
|
||||
=====================
|
||||
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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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 not 'auto' (overconstrained)</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>
|
|
@ -1,112 +0,0 @@
|
|||
<!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 not 'auto' (overconstrained)</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 not 'auto' (overconstrained), then ignore 'right' 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: 2em;
|
||||
margin-left: 0em;
|
||||
margin-right: 0em;
|
||||
position: absolute;
|
||||
right: 2em;
|
||||
width: 1em;
|
||||
-ah-writing-mode: vertical-lr;
|
||||
-webkit-writing-mode: vertical-lr;
|
||||
writing-mode: tb-lr; /* IE11 */
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
|
||||
/*
|
||||
"
|
||||
If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
|
||||
"
|
||||
|
||||
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
|
||||
|
||||
So:
|
||||
|
||||
160px : left
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : width
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
160px : right
|
||||
=====================
|
||||
320px : width of containing block
|
||||
|
||||
gives us:
|
||||
|
||||
160px : left
|
||||
+
|
||||
0px : margin-left
|
||||
+
|
||||
0px : border-top-width
|
||||
+
|
||||
0px : padding-top
|
||||
+
|
||||
80px : width
|
||||
+
|
||||
0px : padding-right
|
||||
+
|
||||
0px : border-right-width
|
||||
+
|
||||
0px : margin-right
|
||||
+
|
||||
(solve) : right
|
||||
=====================
|
||||
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>
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче