Auto merge of #8748 - Ms2ger:update-tests, r=Ms2ger

Update tests.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8748)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-30 18:14:56 +05:30
commit 78a298bdba
1350 changed files with 35605 additions and 7213 deletions

View file

@ -13,7 +13,7 @@
<body>
<h1>CSS Flexible Box Layout Module Level 1 CR Test Suite</h1>
<h2>Alignment (161 tests)</h2>
<h2>Alignment (162 tests)</h2>
<table width="100%">
<col id="test-column">
<col id="refs-column">
@ -844,7 +844,7 @@
</tr>
</tbody>
<tbody id="s8.3.#propdef-align-items">
<!-- 28 tests -->
<!-- 29 tests -->
<tr id="align-items-001-8.3.#propdef-align-items" class="">
<td>
<a href="align-items-001.htm">align-items-001</a></td>
@ -994,6 +994,17 @@
<td>flexbox | align-items: stretch
</td>
</tr>
<tr id="flexbox_align-items-stretch-writing-modes-8.3.#propdef-align-items" class="primary">
<td><strong>
<a href="flexbox_align-items-stretch-writing-modes.htm">flexbox_align-items-stretch-writing-modes</a></strong></td>
<td><a href="reference/flexbox_align-items-stretch-writing-modes-ref.htm">=</a> </td>
<td></td>
<td>Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl
<ul class="assert">
<li>vertical-writing-mode flex items should stretch</li>
</ul>
</td>
</tr>
<tr id="flexbox_align-self-auto-8.3.#propdef-align-items" class="primary">
<td><strong>
<a href="flexbox_align-self-auto.htm">flexbox_align-self-auto</a></strong></td>

View file

@ -1,10 +1,11 @@
<!DOCTYPE html>
<html><head>
<title>CSS Test: writing-mode vertical-lr and vertical-rl</title>
<title>CSS Test: Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl</title>
<link href="mailto:mitsuteru.s@gmail.com" rel="author" title="Mitsuteru Sawa">
<link href="mailto:jackalmage@gmail.com" rel="reviewer" title="Tab Atkins Jr.">
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-align-items" rel="help">
<link href="http://www.w3.org/TR/css-writing-modes-3/#writing-mode" rel="help">
<link href="reference/writing-mode-stretch-001-ref.htm" rel="match">
<link href="reference/flexbox_align-items-stretch-writing-modes-ref.htm" rel="match">
<meta content="vertical-writing-mode flex items should stretch" name="assert">
<style>
.container {

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

View file

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

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
<link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
<title>Embedded HTML document for background-size-document-root-vrl-002</title>
<style>
html
{
background-image: url("swatch-green.png");
background-repeat: no-repeat;
background-size: 100% 100%;
writing-mode: vertical-rl;
width: 100px;
}
</style>
</head>
<body></body></html>

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
<link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
<title>Embedded HTML document for background-size-document-root-vrl-004</title>
<style>
html
{
background-image: url("swatch-green.png");
background-repeat: no-repeat;
background-size: 100% 100%;
writing-mode: vertical-rl;
border-right: green solid 20px;
width: 80px;
}
</style>
</head>
<body></body></html>

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
<link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
<title>Embedded HTML document for background-size-document-root-vrl-006</title>
<style>
html
{
background-image: url("swatch-green.png");
background-repeat: no-repeat;
background-size: 100% 100%;
writing-mode: vertical-rl;
margin-right: 50px;
padding-right: 50px;
width: 50px;
}
</style>
</head>
<body></body></html>

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
<link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
<title>Embedded HTML document for background-size-document-root-vrl-008</title>
<style>
html
{
background-image: url("swatch-green.png");
background-repeat: no-repeat;
background-size: 100% 100%;
writing-mode: vertical-rl;
border-left: white solid 20px;
margin-right: 50px;
padding-right: 50px;
width: 50px;
}
</style>
</head>
<body></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

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