Update CSS tests to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8

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

View file

@ -0,0 +1,25 @@
# Define some types
AddType application/xhtml+xml .xht
AddType text/html .htm
AddType text/css .css
AddType image/png .png
AddType text/plain .data .list
# Set the default character set
AddDefaultCharset utf-8
# Indexing Options
Options +Indexes
IndexOptions DescriptionWidth=* NameWidth=* FancyIndexing FoldersFirst ScanHTMLTitles
IndexIgnore .htaccess *~ .#* #*# CVS README
ReadmeName README
# Set up the README files to be plain text
<files README>
ForceType text/plain
SetHandler default-handler
</files>
# Add some default descriptions
AddDescription "Information about the files in this directory" README

View file

@ -0,0 +1,107 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left: auto', 'width: auto' and 'right: auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left: auto', 'width: auto' and 'right: auto') whose containing block is the initial containing block must set 'left' to the static position. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: ltr;
}
div#green-overlapping-test
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: auto;
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'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
auto : right
====================
: width of containing block (width of Initial Containing Block)
becomes
8px : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,117 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left: auto', 'width: auto' and 'right: auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-004-ref.htm">
<meta content="image" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left: auto', 'width: auto' and 'right: auto') whose containing block is the initial containing block must set 'right' to the static position. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: rtl;
}
img
{
vertical-align: top;
}
div#green-overlapping-test
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: auto;
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'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
auto : right
====================
: width of containing block (width of Initial Containing Block)
becomes
solve : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
8px : right
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</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>
<!--
The image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'width' are 'auto' and 'right' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: auto;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' and 'width' are 'auto' and 'right' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,106 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' and 'right' are 'auto' and 'width' is not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'right' are 'auto' and 'width' is not 'auto') whose containing block is the initial containing block and whose direction is 'ltr' must set left to static position and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: ltr;
}
div#green-overlapping-test
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: 50px;
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 (...) Then solve for (...) 'right' (if 'direction' is 'ltr').
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
auto : right
====================
: width of containing block (width of Initial Containing Block)
becomes
8px : left (set to static position)
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
solve : right
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,116 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' and 'right' are 'auto', 'width' is not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-004-ref.htm">
<meta content="image" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' and 'right' are 'auto', 'width' is not 'auto') whose containing block is the initial containing block and whose direction is 'rtl' must set right to static position and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: rtl;
}
img
{
vertical-align: top;
}
div#green-overlapping-test
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: 50px;
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 'rtl' set 'right' to the static position (...) Then solve for 'left' (if 'direction is 'rtl').
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
auto : right (set to static position)
====================
: width of containing block (width of Initial Containing Block)
becomes
solve : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
8px : right (static position)
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</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>
<!--
The image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'width' and 'right' are 'auto' and 'left' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 60% of 500px == 300px (offset of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'width' and 'right' are 'auto' and 'left' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 60% of 500px == 300px (offset of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: auto;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: auto;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'width' is 'auto', 'left' and 'right' are not 'auto') whose containing block is the initial containing block must solve 'width'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'width' is 'auto', 'left' and 'right' are not 'auto' with direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'width' is 'auto', 'left' and 'right' are not 'auto') whose containing block is the initial containing block must solve 'width'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'right' is 'auto', 'left' and 'width' are not 'auto') whose containing block is the initial containing block must solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'right' is 'auto', 'left' and 'width' are not 'auto') whose containing block is the initial containing block must solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - overconstrained values with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with overconstrained 'left', 'width' and 'right' values) whose containing block is the initial containing block must ignore the value for 'right' and solve for that value. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-lr' - overconstrained values with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with overconstrained 'left', 'width' and 'right' values) whose containing block is the initial containing block must ignore the value for 'left' and solve for that value. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,107 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left: auto', 'width: auto' and 'right: auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left: auto', 'width: auto' and 'right: auto') whose containing block is the initial containing block must set 'left' to the static position. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: ltr;
}
div#green-overlapping-test
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: auto;
writing-mode: vertical-rl;
}
/*
"
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'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
auto : right
====================
: width of containing block (width of Initial Containing Block)
becomes
8px : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
solve : right
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,117 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left: auto', 'width: auto' and 'right: auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-004-ref.htm">
<meta content="image" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left: auto', 'width: auto' and 'right: auto') whose containing block is the initial containing block must set 'right' to the static position. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: rtl;
}
img
{
vertical-align: top;
}
div#green-overlapping-test
{
border-left: green solid 25px;
border-right: green solid 75px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: auto;
writing-mode: vertical-rl;
}
/*
"
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'
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
auto : width
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
auto : right
====================
: width of containing block (width of Initial Containing Block)
becomes
solve : left
+
0px : margin-left
+
25px : border-left-width
+
0px : padding-left
+
0px : width (shrink-to-fit)
+
0px : padding-right
+
75px : border-right-width
+
0px : margin-right
+
8px : right
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</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>
<!--
The image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'width' are 'auto' and 'right' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: auto;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' and 'width' are 'auto' and 'right' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,106 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' and 'right' are 'auto', 'width' is not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' and 'right' are 'auto', 'width' is not 'auto') whose containing block is the initial containing block and whose direction is 'ltr' must set left to static position and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: ltr;
}
div#green-overlapping-test
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: 50px;
writing-mode: vertical-rl;
}
/*
"
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 (...) Then solve for (...) 'right' (if 'direction' is 'ltr').
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
auto : right
====================
: width of containing block (width of Initial Containing Block)
becomes
8px : left (set to static position)
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
solve : right
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,116 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' and 'right' are 'auto', 'width' is not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-004-ref.htm">
<meta content="image" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' and 'right' are 'auto', 'width' is not 'auto') whose containing block is the initial containing block and whose direction is 'rtl' must set right to static position and then solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
html
{
direction: rtl;
}
img
{
vertical-align: top;
}
div#green-overlapping-test
{
background-color: green;
border-left: green solid 35px;
border-right: green solid 15px;
height: 100px;
left: auto;
position: absolute;
right: auto;
width: 50px;
writing-mode: vertical-rl;
}
/*
"
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 'rtl' set 'right' to the static position (...) Then solve for 'left' (if 'direction is 'rtl').
"
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
auto : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
auto : right (set to static position)
====================
: width of containing block (width of Initial Containing Block)
becomes
solve : left
+
0px : margin-left
+
35px : border-left-width
+
0px : padding-left
+
50px : width
+
0px : padding-right
+
15px : border-right-width
+
0px : margin-right
+
8px : right (static position)
====================
: width of containing block (width of Initial Containing Block)
*/
div#red-overlapped-reference
{
background-color: red;
height: 100px;
position: relative;
width: 100px;
z-index: -1;
}
</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>
<!--
The image says:
Test passes if there is a filled green square and <strong>no red</strong>.
-->
<div id="green-overlapping-test"></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'width' and 'right' are 'auto' and 'left' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 60% of 500px == 300px (offset of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'width' and 'right' are 'auto' and 'left' is not 'auto') whose containing block is the initial containing block must set width to shrink-to-fit and then solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 60% of 500px == 300px (offset of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: auto;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/ref-filled-green-100px-square.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'left' is 'auto', 'width' and 'right' are not 'auto') whose containing block is the initial containing block must solve for 'left'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px; /* 500px divided by 5 == 100px (width of green square) */
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: auto;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'width' is 'auto', 'left' and 'right' are not 'auto') whose containing block is the initial containing block must solve 'width'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'width' is 'auto', 'left' and 'right' are not 'auto' with direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'width' is 'auto', 'left' and 'right' are not 'auto') whose containing block is the initial containing block must solve 'width'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with 'right' is 'auto', 'left' and 'width' are not 'auto') whose containing block is the initial containing block must solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with 'right' is 'auto', 'left' and 'width' are not 'auto') whose containing block is the initial containing block must solve for 'right'. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - overconstrained values with 'direction: ltr' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'ltr', then an absolutely positioned box (with overconstrained 'left', 'width' and 'right' values) whose containing block is the initial containing block must ignore the value for 'right' and solve for that value. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Writing Modes Test: position absolute and 'vertical-rl' - overconstrained values with 'direction: rtl' in initial containing block</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="match" href="reference/abs-pos-non-replaced-icb-vrl-008-ref.htm">
<meta content="" name="flags">
<meta content="This test checks that when the initial containing block's writing-mode is 'horizontal-tb' and its 'direction' is 'rtl', then an absolutely positioned box (with overconstrained 'left', 'width' and 'right' values) whose containing block is the initial containing block must ignore the value for 'left' and solve for that value. Whether such absolutely positioned box's 'writing-mode' is vertical or not is irrelevant." name="assert">
<style type="text/css">
object#overlapping-green
{
height: 116px;
width: 500px;
vertical-align: top;
}
div#red-overlapped-reference
{
background-color: red;
bottom: 116px;
height: 100px;
left: 300px;
position: relative;
width: 100px;
z-index: -1;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div><object data="support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html" type="text/html" id="overlapping-green">This test requires a browser with capability to embed an HTML document thanks to the HTML &lt;object&gt; element.</object></div>
<div id="red-overlapped-reference"></div>
</body>
</html>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then the height becomes shrink-to-fit and then solve for 'bottom'.">
<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'.">
<style type="text/css">
div#containing-block
@ -37,40 +38,38 @@
/*
"
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.
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, §10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
0px : top: auto
160px : top: auto: set to static position
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
@ -78,27 +77,27 @@ So:
gives us:
0px : top: auto
160px : top: auto: set to static position
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 240px;
And so computed bottom value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto', then the width becomes shrink-to-fit and then solve for 'right'.">
<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'.">
<style type="text/css">
div#containing-block
@ -38,34 +39,29 @@
/*
"
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
CSS2.1, §10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
0px : left: auto
160px : left: auto: set to static position
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(shrink-to-fit) : width: auto
(shrink-to-fit) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
@ -73,13 +69,13 @@ So:
gives us:
0px : left: auto
160px : left: auto: set to static position
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : (shrink-to-fit) : width: auto
+
@ -87,13 +83,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
And so computed right value must be 240px;
And so computed right value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then the height becomes shrink-to-fit and then solve for 'bottom'.">
<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'.">
<style type="text/css">
html
@ -42,40 +43,38 @@
/*
"
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.
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
0px : top: auto
160px : top: auto: set to static position
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
@ -83,27 +82,27 @@ So:
gives us:
0px : top: auto
160px : top: auto: set to static position
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 240px;
And so computed bottom value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then the height becomes shrink-to-fit and then solve for 'top'.">
<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'.">
<style type="text/css">
div#containing-block
@ -37,42 +38,40 @@
/*
"
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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
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/#logical-direction-layout
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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
0px : bottom: auto
160px : bottom: auto: set to static position
=====================
320px : height of containing block
@ -80,25 +79,25 @@ gives us:
(solve) : top: auto
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
0px : bottom: auto
160px : bottom: auto: set to static position
=====================
320px : height of containing block
And so computed top value must be 240px;
And so computed top value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are 'auto', then the width becomes shrink-to-fit and then solve for 'left'.">
<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'.">
<style type="text/css">
div#containing-block
@ -38,35 +39,31 @@
/*
"
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
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(shrink-to-fit) : width: auto
(shrink-to-fit) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right: auto
160px : right: auto: set to static position
=====================
320px : width of containing block
@ -74,11 +71,11 @@ gives us:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : (shrink-to-fit) : width: auto
+
@ -86,13 +83,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right: auto
160px : right: auto: set to static position
=====================
320px : width of containing block
And so computed left value must be 80px;
And so computed left value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then the height becomes shrink-to-fit and then solve for 'top'.">
<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'.">
<style type="text/css">
html
@ -41,42 +42,40 @@
/*
"
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
10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
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/#logical-direction-layout
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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
0px : bottom: auto
160px : bottom: auto: set to static position
=====================
320px : height of containing block
@ -84,25 +83,25 @@ gives us:
(solve) : top: auto
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
0px : bottom: auto
160px : bottom: auto: set to static position
=====================
320px : height of containing block
And so computed top value must be 240px;
And so computed top value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<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 becomes shrink-to-fit and then solve for 'top'.">
<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'.">
<style type="text/css">
div#containing-block
@ -37,38 +38,36 @@
/*
"
set 'auto' values for 'margin-left' and 'margin-right' to 0, and pick the one of the following six rules that applies.
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
@ -78,25 +77,25 @@ gives us:
(solve) : top: auto
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
320px : height of containing block
And so computed bottom value must be 80px;
And so computed top value must be 80px .
*/
</style>

View file

@ -7,7 +7,8 @@
<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="match" href="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<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'.">
@ -15,7 +16,7 @@
<style type="text/css">
div#containing-block
{
background: red url("support/bg-red-2col-3row-320x320.png");
background: red url("support/bg-red-2col-2row-320x320.png");
color: transparent;
direction: ltr;
font: 80px/1 Ahem;
@ -30,39 +31,35 @@
color: green;
left: auto;
position: absolute;
right: auto;
right: 2em;
width: auto;
writing-mode: vertical-lr;
}
/*
"
set 'auto' values for 'margin-left' and 'margin-right' to 0, and pick the one of the following six rules that applies.
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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(shrink-to-fit) : width: auto
(shrink-to-fit) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right
=====================
@ -72,11 +69,11 @@ gives us:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : (shrink-to-fit) : width: auto
+
@ -84,13 +81,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right
=====================
320px : width of containing block
And so computed left value must be 80px;
And so computed left value must be 80px .
*/
</style>

View file

@ -3,14 +3,15 @@
<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>
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<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 becomes shrink-to-fit and then solve for 'top'.">
<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'.">
<style type="text/css">
html
@ -41,38 +42,36 @@
/*
"
set 'auto' values for 'margin-left' and 'margin-right' to 0, and pick the one of the following six rules that applies.
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
@ -82,25 +81,25 @@ gives us:
(solve) : top: auto
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
320px : height of containing block
And so computed top value must be 80px;
And so computed top value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<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 becomes shrink-to-fit and then solve for 'top'.">
<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'.">
<style type="text/css">
div#containing-block
@ -37,38 +38,36 @@
/*
"
set 'auto' values for 'margin-left' and 'margin-right' to 0, and pick the one of the following six rules that applies.
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
@ -78,25 +77,25 @@ gives us:
(solve) : top: auto
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
320px : height of containing block
And so computed top value must be 80px;
And so computed top value must be 80px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -30,41 +31,37 @@
color: green;
left: auto;
position: absolute;
right: auto;
right: 2em;
width: auto;
writing-mode: vertical-lr;
}
/*
"
set 'auto' values for 'margin-left' and 'margin-right' to 0, and pick the one of the following six rules that applies.
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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(shrink-to-fit) : width: auto
(shrink-to-fit) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right
160px : right
=====================
320px : width of containing block
@ -72,11 +69,11 @@ gives us:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : (shrink-to-fit) : width: auto
+
@ -84,13 +81,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right
160px : right
=====================
320px : width of containing block
And so computed left value must be 80px;
And so computed left value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<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 becomes shrink-to-fit and then solve for 'top'.">
<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'.">
<style type="text/css">
html
@ -41,38 +42,36 @@
/*
"
set 'auto' values for 'margin-left' and 'margin-right' to 0, and pick the one of the following six rules that applies.
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
@ -82,25 +81,25 @@ gives us:
(solve) : top: auto
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
=====================
320px : height of containing block
And so computed top value must be 80px;
And so computed top value must be 80px .
*/
</style>

View file

@ -3,14 +3,15 @@
<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>
<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="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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'.">
<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'.">
<style type="text/css">
div#containing-block
@ -36,25 +37,25 @@
}
/*
"
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').
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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
160px : top: auto: set to static position
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
@ -66,35 +67,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
(solve) : bottom: auto
=====================
320px : height of containing block
gives us:
160px : top: auto
+
0px : margin-top: auto
+
0px : border-top-width
+
0px : padding-top
+
80px : height
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 80px.
And so computed bottom value must be 80px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<meta name="flags" content="ahem image">
@ -41,18 +42,16 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
160px : left: auto
160px : left: auto: set to static position
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -60,7 +59,7 @@ So:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
@ -68,13 +67,13 @@ So:
gives us:
160px : left: auto
160px : left: auto: set to static position
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -82,13 +81,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
And so computed right value must be 80px.
And so computed right value must be 80px .
*/
</style>

View file

@ -3,14 +3,15 @@
<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>
<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="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<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'.">
<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'.">
<style type="text/css">
html
@ -41,25 +42,25 @@
}
/*
"
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').
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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
160px : top: auto: set to static position
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
@ -71,35 +72,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
gives us:
160px : top: auto
+
0px : margin-top: auto
+
0px : border-top-width
+
0px : padding-top
+
80px : height
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 80px.
And so computed bottom value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<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 'bottom' to static position and solve for 'top'.">
<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'.">
<style type="text/css">
div#containing-block
@ -36,25 +37,25 @@
}
/*
"
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').
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -66,35 +67,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom: auto
160px : bottom: auto: set to static position
=====================
320px : height of containing block
gives us:
(solve) : top: auto
+
0px : margin-top: auto
+
0px : border-top-width
+
0px : padding-top
+
80px : height
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
+
160px : bottom: auto
=====================
320px : height of containing block
And so computed top value must be 80px.
And so computed top value must be 80px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -41,18 +42,16 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -60,35 +59,13 @@ So:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right: auto
=====================
320px : width of containing block
gives us:
(solve) : left: auto
+
0px : margin-left: auto
+
0px : border-top-width
+
0px : padding-top
+
80px : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
+
160px : right: auto
=====================
320px : width of containing block
And so computed left value must be 80px.
And so computed left value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<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 'bottom' to static position and then solve for 'top'.">
<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'.">
<style type="text/css">
html
@ -40,25 +41,25 @@
}
/*
"
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').
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -70,35 +71,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
160px : bottom
160px : bottom: auto: set to static position
=====================
320px : height of containing block
gives us:
(solve) : top: auto
+
0px : margin-top: auto
+
0px : border-top-width
+
0px : padding-top
+
80px : height
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
+
160px : bottom
=====================
320px : height of containing block
And so computed top value must be 80px.
And so computed top value must be 80px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<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 becomes shrink-to-fit and then solve for 'bottom'.">
<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'.">
<style type="text/css">
div#containing-block
@ -36,38 +37,37 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
@ -77,25 +77,25 @@ gives us:
80px : top
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px.
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -42,26 +43,24 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
80px : left
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(shrink-to-fit) : width: auto
(shrink-to-fit) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
@ -71,7 +70,7 @@ gives us:
80px : left
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
+
@ -83,13 +82,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
And so computed right value must be 160px.
And so computed right value must be 160px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<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 becomes shrink-to-fit and then solve for 'bottom'.">
<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'.">
<style type="text/css">
html
@ -40,38 +41,37 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
@ -81,25 +81,25 @@ gives us:
80px : top
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px.
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height becomes shrink-to-fit and then solve for 'bottom'.">
<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'.">
<style type="text/css">
div#containing-block
@ -36,38 +37,37 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
@ -77,25 +77,25 @@ gives us:
80px : top
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px.
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -36,32 +37,29 @@
}
/*
"
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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
80px : left
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(shrink-to-fit) : width: auto
(shrink-to-fit) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
@ -71,11 +69,11 @@ gives us:
80px : left
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : (shrink-to-fit) : width: auto
+
@ -83,13 +81,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
And so computed right value must be 160px.
And so computed right value must be 160px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<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 becomes shrink-to-fit and then solve for 'bottom'.">
<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'.">
<style type="text/css">
html
@ -40,38 +41,37 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
80px: top
80px : top
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
(based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
@ -79,27 +79,27 @@ So:
gives us:
80px: top
80px : top
+
0px : margin-top: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : height: auto
80px : (based on the content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px.
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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'.">
<meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'.">
<style type="text/css">
div#containing-block
@ -36,44 +37,43 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : height: auto
80px : height
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed top value must be 160px.
And so computed top value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<meta name="flags" content="ahem image">
@ -41,32 +42,30 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width: auto
80px : width
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
80px : right
=====================
320px : width of containing block
And so computed left value must be 160px.
And so computed left value must be 160px .
*/
</style>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<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 then solve for 'top'.">
<meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'.">
<style type="text/css">
html
@ -40,43 +41,43 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : height: auto
80px : height
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed top value must be 160px.
And so computed top value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<meta name="flags" content="ahem image">
@ -36,43 +37,43 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : height: auto
80px : height
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed top value must be 160px.
And so computed top value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<meta name="flags" content="ahem image">
@ -41,18 +42,16 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
(solve) : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -60,13 +59,13 @@ So:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
80px : right
=====================
320px : width of containing block
And so computed left value must be 160px.
And so computed left value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<meta name="flags" content="ahem image">
@ -40,25 +41,25 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -70,15 +71,16 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed top value must be 160px.
And so computed top value must be 160px .
*/
</style>
</head>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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 then solve for 'height'.">
<meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'.">
<style type="text/css">
div#containing-block
@ -27,34 +28,34 @@
div#containing-block > span
{
background-color: red;
background-color: green;
bottom: 1em;
color: green;
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -66,13 +67,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed height value must be 80px.
And so computed height value must be 80px .
*/
</style>
@ -83,7 +84,7 @@ And so computed height value must be 80px.
<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>
<div id="containing-block">1 2 34<span></span></div>
</body>
</html>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<meta name="flags" content="ahem image">
@ -26,8 +27,8 @@
div#containing-block > span
{
background-color: red;
color: green;
background-color: green;
height: 1em;
left: 2em;
position: absolute;
right: 1em;
@ -41,18 +42,16 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
160px : left: auto
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(solve) : width: auto
+
@ -60,13 +59,13 @@ So:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
80px : right: auto
=====================
320px : width of containing block
And so computed width value must be 80px.
And so computed width value must be 80px .
*/
</style>
@ -77,7 +76,7 @@ And so computed width value must be 80px.
<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>
<div id="containing-block">1 2 34<span></span></div>
</body>
</html>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<meta name="flags" content="ahem image">
@ -31,34 +32,34 @@
div#containing-block > span
{
background-color: red;
background-color: green;
bottom: 1em;
color: green;
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -70,13 +71,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed height value must be 80px.
And so computed height value must be 80px .
*/
</style>
@ -87,7 +88,7 @@ And so computed height value must be 80px.
<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>
<div id="containing-block">1 2 34<span></span></div>
</body>
</html>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<meta name="flags" content="ahem image">
@ -27,34 +28,34 @@
div#containing-block > span
{
background-color: red;
background-color: green;
bottom: 1em;
color: green;
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -66,13 +67,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed height value must be 80px.
And so computed height value must be 80px .
*/
</style>
@ -83,7 +84,7 @@ And so computed height value must be 80px.
<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>
<div id="containing-block">1 2 34<span></span></div>
</body>
</html>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<meta name="flags" content="ahem image">
@ -26,8 +27,8 @@
div#containing-block > span
{
background-color: red;
color: green;
background-color: green;
height: 1em;
left: 2em;
position: absolute;
right: 1em;
@ -41,18 +42,16 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
160px : left
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
(solve) : width: auto
+
@ -60,13 +59,13 @@ So:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
80px : right
=====================
320px : width of containing block
And so computed width value must be 80px.
And so computed width value must be 80px .
*/
</style>
@ -77,7 +76,7 @@ And so computed width value must be 80px.
<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>
<div id="containing-block">1 2 34<span></span></div>
</body>
</html>

View file

@ -7,10 +7,11 @@
<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="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<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 then solve for 'height'.">
<meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'.">
<style type="text/css">
html
@ -31,34 +32,34 @@
div#containing-block > span
{
background-color: red;
background-color: green;
bottom: 1em;
color: green;
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -70,13 +71,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
And so computed height value must be 80px.
And so computed height value must be 80px .
*/
</style>
@ -87,7 +88,7 @@ And so computed height value must be 80px.
<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>
<div id="containing-block">1 2 34<span></span></div>
</body>
</html>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -36,25 +37,25 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -66,13 +67,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px;
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -41,18 +42,16 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
80px : left
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -60,13 +59,13 @@ So:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
And so computed right value must be 160px;
And so computed right value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<meta name="flags" content="ahem image">
@ -40,25 +41,25 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -70,13 +71,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px;
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -36,25 +37,25 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -66,13 +67,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px;
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -41,18 +42,16 @@
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
80px : left
+
0px : margin-left: auto
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -60,13 +59,13 @@ So:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
And so computed right value must be 160px;
And so computed right value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<meta name="flags" content="ahem image">
@ -40,25 +41,25 @@
}
/*
"
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'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'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: auto
0px : margin-top
+
0px : border-top-width
+
@ -70,13 +71,13 @@ So:
+
0px : border-bottom-width
+
0px : margin-bottom: auto
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
And so computed bottom value must be 160px;
And so computed bottom value must be 160px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<meta name="flags" content="ahem image">
@ -39,18 +40,18 @@
/*
"
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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
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/#logical-direction-layout
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:
@ -96,7 +97,7 @@ gives us:
=====================
320px : height of containing block
And so computed bottom value must be 80px;
And so computed bottom value must be 80px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<meta name="flags" content="ahem image">
@ -43,8 +44,6 @@ If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'au
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
@ -86,11 +85,11 @@ gives us:
+
0px : margin-right
+
(solve) : right: auto
(solve) : right
=====================
320px : width of containing block
And so computed right value must be 80px;
And so computed right value must be 80px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<meta name="flags" content="ahem image">
@ -43,18 +44,18 @@
/*
"
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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
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/#logical-direction-layout
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:
@ -100,7 +101,7 @@ gives us:
=====================
320px : height of containing block
And so computed bottom value must be 80px;
And so computed bottom value must be 80px .
*/
</style>

View file

@ -7,6 +7,7 @@
<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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -38,19 +39,19 @@
}
/*
"
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 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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
@ -96,7 +97,7 @@ gives us:
=====================
320px : height of containing block
And so computed top value must be 80px;
And so computed top value must be 80px .
*/
</style>

View file

@ -3,10 +3,11 @@
<head>
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left', 'width' and 'right' are not 'auto'</title>
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' 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="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
@ -43,8 +44,6 @@ If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'au
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
So:
@ -52,9 +51,9 @@ So:
+
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -74,9 +73,9 @@ gives us:
+
0px : margin-left
+
0px : border-top-width
0px : border-left-width
+
0px : padding-top
0px : padding-left
+
80px : width
+
@ -84,13 +83,13 @@ gives us:
+
0px : border-right-width
+
0px : margin-right: auto
0px : margin-right
+
160px : right
=====================
320px : width of containing block
And so computed left value must be 80px;
And so computed left value must be 80px .
*/
</style>

View file

@ -3,10 +3,11 @@
<head>
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top', 'height' and 'bottom' are not 'auto'</title>
<title>CSS Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' 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="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<meta name="flags" content="ahem image">
@ -42,19 +43,19 @@
}
/*
"
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 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
CSS2.1, § 10.3.7 Absolutely positioned, non-replaced elements
http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
"
Layout rules that refer to the *-left and *-right box properties (border, margin, padding) use *-top and *-bottom instead, and vice versa. Which side of the box the property applies to doesn't change: only which values are inputs to which layout calculations changes.
"
7.1 Principles of Layout in Vertical Writing Modes
http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
@ -100,7 +101,7 @@ gives us:
=====================
320px : height of containing block
And so computed top value must be 80px;
And so computed top value must be 80px .
*/
</style>

View file

@ -0,0 +1,114 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: auto;
position: absolute;
right: auto;
width: 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, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
(based on the content) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
gives us:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
80px : (based on the content) : 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>

View file

@ -0,0 +1,106 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<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, the height is based on content and then solve for 'bottom'.">
<style type="text/css">
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;
bottom: auto;
color: green;
height: auto;
position: absolute;
top: auto;
writing-mode: vertical-lr;
}
/*
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
80px : top: auto: set to static position
+
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
gives us:
80px : top: auto: set to static position
+
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : 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>

View file

@ -0,0 +1,118 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'.">
<style type="text/css">
html
{
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;
color: green;
left: auto;
position: absolute;
right: auto;
width: 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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
(based on the content) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
gives us:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
80px : (based on the content) : 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>

View file

@ -0,0 +1,115 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: auto;
position: absolute;
right: auto;
width: auto;
writing-mode: horizontal-tb;
}
/*
"
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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
(based on the content) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
gives us:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
80px : (based on the content) : 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>

View file

@ -0,0 +1,114 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: auto;
position: absolute;
right: auto;
width: 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, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
(based on the content) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
gives us:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
80px : (based on the content) : 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>

View file

@ -0,0 +1,106 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, the height is based on content and then solve for 'bottom'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
/*
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
80px : top: auto: set to static position
+
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
(shrink-to-fit) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom
+
(solve) : bottom: auto
=====================
320px : height of containing block
gives us:
80px : top: auto: set to static position
+
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (shrink-to-fit) : 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>

View file

@ -0,0 +1,118 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'.">
<style type="text/css">
html
{
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;
color: green;
left: auto;
position: absolute;
right: auto;
width: 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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
(based on the content) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
gives us:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
80px : (based on the content) : 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>

View file

@ -0,0 +1,115 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<meta name="flags" content="ahem image">
<meta name="assert" content="When 'direction' is 'rtl' and 'left', 'width' and 'right' are 'auto' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position, the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: auto;
position: absolute;
right: auto;
width: auto;
writing-mode: horizontal-tb;
}
/*
"
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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.
3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
(based on the content) : width: auto
+
0px : padding-right
+
0px : border-right-width
+
0px : margin-right
+
(solve) : right: auto
=====================
320px : width of containing block
gives us:
80px : left: auto: set to static position
+
0px : margin-left
+
0px : border-left-width
+
0px : padding-left
+
80px : (based on the content) : 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>

View file

@ -0,0 +1,112 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: 1em;
position: absolute;
right: auto;
width: 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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
(based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
320px : width of containing block
gives us:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : (based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
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>

View file

@ -0,0 +1,104 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vrl-002-ref.htm">
<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 content and then solve for 'top'.">
<style type="text/css">
div#containing-block
{
background: red url("support/bg-red-3col-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: auto;
position: absolute;
top: auto;
writing-mode: vertical-lr;
}
/*
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'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 content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom
+
80px : bottom: auto
=====================
320px : height of containing block
gives us:
(solve) : top: auto
+
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (based on content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom
+
80px : bottom: auto
=====================
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>

View file

@ -0,0 +1,116 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<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' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'right'.">
<style type="text/css">
html
{
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;
color: green;
left: 1em;
position: absolute;
right: auto;
width: 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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
(based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left: auto
=====================
320px : width of containing block
gives us:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : (based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left: 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>

View file

@ -0,0 +1,113 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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' and 'writing-mode' is 'vertical-rl', then the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: 1em;
position: absolute;
right: auto;
width: auto;
writing-mode: horizontal-tb;
}
/*
"
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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
(based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
320px : width of containing block
gives us:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : (based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
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>

View file

@ -0,0 +1,112 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<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' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: 1em;
position: absolute;
right: auto;
width: 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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
(based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
320px : width of containing block
gives us:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : (based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
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>

View file

@ -0,0 +1,104 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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 content and then solve for 'top'.">
<style type="text/css">
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: auto;
position: absolute;
top: auto;
writing-mode: vertical-lr;
}
/*
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'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 content) : height: auto
+
0px : padding-bottom
+
0px : border-bottom-width
+
0px : margin-bottom
+
80px : bottom
=====================
320px : height of containing block
gives us:
(solve) : top: auto
+
0px : margin-top
+
0px : border-top-width
+
0px : padding-top
+
80px : (based on content) : height: auto
+
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>

View file

@ -0,0 +1,116 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-013-ref.htm">
<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' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'right'.">
<style type="text/css">
html
{
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;
color: green;
left: 1em;
position: absolute;
right: auto;
width: 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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
(based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
320px : width of containing block
gives us:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : (based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
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>

View file

@ -0,0 +1,113 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-009-ref.htm">
<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' and 'writing-mode' is 'vertical-lr', then the width is based on the content and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: red;
color: green;
left: 1em;
position: absolute;
right: auto;
width: auto;
writing-mode: horizontal-tb;
}
/*
"
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, *left and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
(based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
320px : width of containing block
gives us:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : (based on the content) : width: auto
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left
=====================
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>

View file

@ -0,0 +1,90 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-003-ref.htm">
<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' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position and then solve for 'right'.">
<style type="text/css">
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;
writing-mode: vertical-lr;
}
div#containing-block > span
{
background-color: green;
height: 1em;
left: auto;
position: absolute;
right: auto;
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, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : width
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left: auto: set to static position
=====================
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></span></div>
</body>
</html>

View file

@ -0,0 +1,82 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<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="reference/abs-pos-non-replaced-vrl-004-ref.htm">
<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 the static position and then solve for 'bottom'.">
<style type="text/css">
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;
bottom: auto;
height: 1em;
position: absolute;
top: auto;
width: 1em;
writing-mode: vertical-lr;
}
/*
"
2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block
So:
80px : 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 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></span></div>
</body>
</html>

View file

@ -0,0 +1,94 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<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-height" title="10.6.4 Absolutely positioned, non-replaced elements">
<link rel="match" href="reference/abs-pos-non-replaced-vlr-007-ref.htm">
<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' and 'writing-mode' is 'vertical-lr', then set 'left' to the static position and then solve for 'right'.">
<style type="text/css">
html
{
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;
height: 1em;
left: auto;
position: absolute;
right: auto;
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, *left properties and *right properties are input into the §10.6.4 algorithms where *left properties refer to *top properties in the layout rules and where *right properties refer to *bottom properties in the layout rules.
"
2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'
"
'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block
So:
(solve) : right: auto
+
0px : margin-right
+
0px : border-right-width
+
0px : padding-right
+
80px : width
+
0px : padding-left
+
0px : border-left-width
+
0px : margin-left
+
80px : left: auto: set to static position
=====================
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></span></div>
</body>
</html>

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