diff options
author | Ms2ger <Ms2ger@gmail.com> | 2015-11-30 10:16:54 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2015-11-30 12:21:03 +0100 |
commit | 6bb495338bc5dd2ce4e66ca5e0e69b0016319f07 (patch) | |
tree | 685503020cda0c53793faee76351755c228876e3 /tests/wpt/css-tests/css-flexbox-1_dev | |
parent | 0f7204936394fe104431f01c68ffa17829426cba (diff) | |
download | servo-6bb495338bc5dd2ce4e66ca5e0e69b0016319f07.tar.gz servo-6bb495338bc5dd2ce4e66ca5e0e69b0016319f07.zip |
Update CSS tests to revision 4e1aa4f3dcbff1abd654c63d0f677379c1e2775f
Diffstat (limited to 'tests/wpt/css-tests/css-flexbox-1_dev')
752 files changed, 16218 insertions, 9 deletions
diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/chapter-8.htm b/tests/wpt/css-tests/css-flexbox-1_dev/html/chapter-8.htm index e2e3042edd7..bd8ce97efc4 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/html/chapter-8.htm +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/chapter-8.htm @@ -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> diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_align-items-stretch-writing-modes.htm b/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_align-items-stretch-writing-modes.htm new file mode 100644 index 00000000000..6bec4cb74c3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/flexbox_align-items-stretch-writing-modes.htm @@ -0,0 +1,58 @@ +<!DOCTYPE html> +<html><head> + <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/flexbox_align-items-stretch-writing-modes-ref.htm" rel="match"> + <meta content="vertical-writing-mode flex items should stretch" name="assert"> + <style> + .container { + display: flex; + width: 250px; + } + .vertical-rl { + writing-mode: vertical-rl; + } + .vertical-lr { + writing-mode: vertical-lr; + } + .item { + background-color: green; + } + .square { + height: 50px; + width: 50px; + } + .error { + position: absolute; + background-color: red; + height: 100px; + width: 250px; + z-index: -1; + } + </style> +</head> +<body> + <p>The test passes if you see a green rectangle and no red.</p> + <div class="test"> + <div class="error"></div> + <div class="container"> + <div class="horizontal item"> + <div class="square"></div> + <div class="square"></div> + </div> + <div class="vertical-rl item"> + <div class="square"></div> + <div class="square"></div> + </div> + <div class="vertical-lr item"> + <div class="square"></div> + <div class="square"></div> + </div> + </div> + </div> + + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/flexbox_align-items-stretch-writing-modes-ref.htm b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/flexbox_align-items-stretch-writing-modes-ref.htm new file mode 100644 index 00000000000..0d30595c766 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/flexbox_align-items-stretch-writing-modes-ref.htm @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html><head> + <title>Reference file</title> + <link href="mailto:mitsuteru.s@gmail.com" rel="author" title="Mitsuteru Sawa"> + <style> + .test { + height: 100px; + width: 250px; + background-color: green; + } + </style> +</head> +<body> + <p>The test passes if you see a green rectangle and no red.</p> + <div class="test"></div> + + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/100x100-lime.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/100x100-lime.png Binary files differnew file mode 100644 index 00000000000..1b947700808 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/100x100-lime.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/100x100-red.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/100x100-red.png Binary files differnew file mode 100644 index 00000000000..57bf3ddc521 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/100x100-red.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/DejaVuSerif-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/DejaVuSerif-webfont.woff Binary files differnew file mode 100644 index 00000000000..4583cc675d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/DejaVuSerif-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/CSSHWOrientationTest.otf b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/CSSHWOrientationTest.otf Binary files differnew file mode 100644 index 00000000000..84ad57bef5a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/CSSHWOrientationTest.otf diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/LICENSE b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/LICENSE new file mode 100644 index 00000000000..ac5f0b04320 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/LICENSE @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/README.md b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/README.md new file mode 100644 index 00000000000..686cb0c4279 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/adobe-fonts/README.md @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-1col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-1col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..7ca197bc06e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-1col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-1col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-1col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..f5c13ab550d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-1col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-2col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-2col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..4f354e93527 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-2col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-2col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-2col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..6eded69a4a3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-2col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-3col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-3col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..5f4b53c46b7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-3col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-3col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-3col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..4c2f6c8e632 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-3col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-4col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-4col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..052d224df11 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-4col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-4col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-4col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..1826531268a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/bg-red-4col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/block-flow-direction-025-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/block-flow-direction-025-exp-res.png Binary files differnew file mode 100644 index 00000000000..851eeea0398 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/block-flow-direction-025-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/block-flow-direction-066-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/block-flow-direction-066-exp-res.png Binary files differnew file mode 100644 index 00000000000..d325b15a4cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/block-flow-direction-066-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-horiz-line-220x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-horiz-line-220x1.png Binary files differnew file mode 100644 index 00000000000..3898d5a2d9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-horiz-line-220x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-horiz-line-320x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-horiz-line-320x1.png Binary files differnew file mode 100644 index 00000000000..7d9151c848a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-horiz-line-320x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-vert-line-1x220.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-vert-line-1x220.png Binary files differnew file mode 100644 index 00000000000..07b0239fc52 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-vert-line-1x220.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-vert-line-1x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-vert-line-1x320.png Binary files differnew file mode 100644 index 00000000000..6049e271506 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-vert-line-1x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-yellow-206w-165h.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-yellow-206w-165h.png Binary files differnew file mode 100644 index 00000000000..47ceb84d3fb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue-yellow-206w-165h.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue1x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue1x1.png Binary files differnew file mode 100644 index 00000000000..667b6558892 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue1x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue20x20.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue20x20.png Binary files differnew file mode 100644 index 00000000000..e0af5553303 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/blue20x20.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-002.png Binary files differnew file mode 100644 index 00000000000..7fc9f14ed6e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-004.png Binary files differnew file mode 100644 index 00000000000..2d1355e3bdb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-006.png Binary files differnew file mode 100644 index 00000000000..5145c22c485 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/clearance-calculation-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html new file mode 100644 index 00000000000..5af681f14eb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html new file mode 100644 index 00000000000..d5d94382ea2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html new file mode 100644 index 00000000000..887565e66d4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html new file mode 100644 index 00000000000..c38de525145 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html new file mode 100644 index 00000000000..66be0f4eba9 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html new file mode 100644 index 00000000000..eff5f71a450 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html new file mode 100644 index 00000000000..2da3bf3dd53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html new file mode 100644 index 00000000000..572557eb339 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html new file mode 100644 index 00000000000..8537a945fbc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html new file mode 100644 index 00000000000..95047f16a92 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html new file mode 100644 index 00000000000..4f1aa674eba --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html new file mode 100644 index 00000000000..1f35ff47dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html new file mode 100644 index 00000000000..3f4f1c935ca --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html new file mode 100644 index 00000000000..1c0bb78e74d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html new file mode 100644 index 00000000000..c193112b600 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html new file mode 100644 index 00000000000..204a08ef3df --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html new file mode 100644 index 00000000000..a71927cf3a8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html new file mode 100644 index 00000000000..e1054bc2a96 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html new file mode 100644 index 00000000000..39f297f1b9c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html new file mode 100644 index 00000000000..26e0ec67fd1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html new file mode 100644 index 00000000000..a0b80d99e3a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html new file mode 100644 index 00000000000..62d74144fee --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html new file mode 100644 index 00000000000..21efbe52bc5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html new file mode 100644 index 00000000000..748f325d8d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-002.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-002.html new file mode 100644 index 00000000000..044da84cff8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-002.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-004.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-004.html new file mode 100644 index 00000000000..68fca9ad435 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-004.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-006.html new file mode 100644 index 00000000000..38a614d2346 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-008.html new file mode 100644 index 00000000000..048ad073944 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/embedded-doc-for-background-size-root-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-slr.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-slr.png Binary files differnew file mode 100644 index 00000000000..ac9b2a30725 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-slr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-srl.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-srl.png Binary files differnew file mode 100644 index 00000000000..da9d401f917 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-srl.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-vlr.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-vlr.png Binary files differnew file mode 100644 index 00000000000..5abc22e9ee7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/form-controls-vlr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..6e30eba507a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..30668751dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-center-200x300.png Binary files differnew file mode 100644 index 00000000000..6025c4e85be --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..b2645c0fe69 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..86fd7e5671d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-top-200x300.png Binary files differnew file mode 100644 index 00000000000..43e739acbc2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/left-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/margin-collapse-2em-space-wm-vert.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/margin-collapse-2em-space-wm-vert.png Binary files differnew file mode 100644 index 00000000000..8a2fa55efdf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/margin-collapse-2em-space-wm-vert.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/mplus-1p-regular.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/mplus-1p-regular.woff Binary files differnew file mode 100644 index 00000000000..42cfff628b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/mplus-1p-regular.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/opaque-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/opaque-square-40x160.png Binary files differnew file mode 100644 index 00000000000..11636f5f771 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/opaque-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p1.png Binary files differnew file mode 100644 index 00000000000..f5adb11b4b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p2.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p2.png Binary files differnew file mode 100644 index 00000000000..7ecf84bae34 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p2.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p3.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p3.png Binary files differnew file mode 100644 index 00000000000..d7c58d62243 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p3.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p4.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p4.png Binary files differnew file mode 100644 index 00000000000..04dc0fe2e9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/page-flow-direction-002p4.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-abs-pos-non-replaced.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-abs-pos-non-replaced.png Binary files differnew file mode 100644 index 00000000000..15fd6065ef6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-abs-pos-non-replaced.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-002.png Binary files differnew file mode 100644 index 00000000000..a0db6909418 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-004.png Binary files differnew file mode 100644 index 00000000000..ec130f10f46 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-006.png Binary files differnew file mode 100644 index 00000000000..981741b7e53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-008.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-008.png Binary files differnew file mode 100644 index 00000000000..9b2a0610e4e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-008.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-010.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-010.png Binary files differnew file mode 100644 index 00000000000..a2d66146186 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-010.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-012.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-012.png Binary files differnew file mode 100644 index 00000000000..23b1beb9cd4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-012.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-014.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-014.png Binary files differnew file mode 100644 index 00000000000..64e081c72f1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-014.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-016.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-016.png Binary files differnew file mode 100644 index 00000000000..952e0089b8f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-016.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-018.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-018.png Binary files differnew file mode 100644 index 00000000000..22f51030c36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-bg-pos-vrl-018.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-box-offsets-rel-pos.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-box-offsets-rel-pos.png Binary files differnew file mode 100644 index 00000000000..e81c0ae4cf5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-box-offsets-rel-pos.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-clearance-calculations.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-clearance-calculations.png Binary files differnew file mode 100644 index 00000000000..ec502d3532a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-clearance-calculations.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-first-page-vlr-003.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-first-page-vlr-003.png Binary files differnew file mode 100644 index 00000000000..f8c677b8e05 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-first-page-vlr-003.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-first-page-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-first-page-vrl-002.png Binary files differnew file mode 100644 index 00000000000..48555d3acc8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-first-page-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-float-contiguous.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-float-contiguous.png Binary files differnew file mode 100644 index 00000000000..8d35d98e9c4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-float-contiguous.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-horiz-rule.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-horiz-rule.png Binary files differnew file mode 100644 index 00000000000..f9cc0b1eeff --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pass-cdts-horiz-rule.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..b14c75ea2c0 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..80c7035f1fc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..a98636ddef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..fd1f7a7b50a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..431b99f933a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..63248d4dd1f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..6fba8358309 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-gr-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..47ee743880e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..6b19ec9a4e7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..e28bdba9dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..797e289e059 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..97aac24065c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..177743874e2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/pattern-rr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..38904b25087 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..a3c6bb63b64 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-center-200x300.png Binary files differnew file mode 100644 index 00000000000..b9987017a06 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..8f54bf5a894 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..f76b2083118 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-top-200x300.png Binary files differnew file mode 100644 index 00000000000..59467ec3f18 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-top-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-top-green-200x300.png Binary files differnew file mode 100644 index 00000000000..313c37f4dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/right-top-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/sileot-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/sileot-webfont.woff Binary files differnew file mode 100644 index 00000000000..81547578d36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/sileot-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-aqua.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-aqua.png Binary files differnew file mode 100644 index 00000000000..dd47e286650 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-aqua.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-fuchsia.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-fuchsia.png Binary files differnew file mode 100644 index 00000000000..3f8f8b4ea37 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-fuchsia.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-olive.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-olive.png Binary files differnew file mode 100644 index 00000000000..8fff8179ef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/swatch-olive.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/tcu-font.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/tcu-font.woff Binary files differnew file mode 100644 index 00000000000..c880aaab5cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/tcu-font.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-mixed-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-mixed-001.png Binary files differnew file mode 100644 index 00000000000..2bd5927f901 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-mixed-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-sideways-left-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-sideways-left-001.png Binary files differnew file mode 100644 index 00000000000..51921a7e91a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-sideways-left-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-sideways-right-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-sideways-right-001.png Binary files differnew file mode 100644 index 00000000000..f4bfd48549f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-sideways-right-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-upright-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-upright-001.png Binary files differnew file mode 100644 index 00000000000..d7df4098ed2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation-upright-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation.js b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation.js new file mode 100644 index 00000000000..6e007cea82e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/text-orientation.js @@ -0,0 +1,217 @@ +(function () { + var log = function () {}; + + function OrientationTester(container, orientation) { + this.container = container; + this.setOrientation(orientation); + } + extend(OrientationTester.prototype, { + setOrientation: function (orientation) { + this.orientation = orientation; + }, + measure: function (results) { + this.results = results; + this._measureNode(this.container); + }, + _measureNode: function (node, block) { + switch (node.nodeType) { + case Node.ELEMENT_NODE: + var blockOverride = node.dataset.block; + if (blockOverride) + block = blockOverride; + var nodes = node.childNodes; + for (var i = 0; i < nodes.length; i++) + this._measureNode(nodes[i], block); + return; + case Node.TEXT_NODE: + break; + default: + return; + } + + if (this.orientation == "R") { + var advanceExpected = 8; + var advanceFailed = 4; + } else { + advanceExpected = 4; + advanceFailed = 8; + } + + var range = document.createRange(); + var text = node.textContent; + for (var ich = 0; ich < text.length; ich++) { + var code = text.charCodeAt(ich); + if (code == 10 || code == 13) + continue; + range.setStart(node, ich); + if (code >= 0xD800 && code <= 0xDBFF) { + var next = text.charCodeAt(ich+1); + if (next >= 0xDC00 && next <= 0xDFFF) { + ich++; + code = ((code & 0x3FF) << 10) + (next & 0x3FF) + 0x10000; + } + } + range.setEnd(node, ich + 1); + rect = range.getBoundingClientRect(); + if (rect.width == 16) { + if (rect.height == advanceExpected) { + this.results.passCount++; + continue; + } + //log("U+" + stringFromUnicode(code) + " " + rect.width + "x" + rect.height); + if (rect.height == advanceFailed) { + this.results.failed(this, code, block); + continue; + } + } + this.results.inconclusive(this, code, block, rect); + } + }}); + + function Results(name) { + var block = document.createElement("details"); + this.summary = appendChildElement(block, "summary"); + this.summary.textContent = name; + var typeList = appendChildElement(block, "ul"); + this.failList = appendChildElement(appendChildElement(typeList, "li", "Failures"), "ol"); + this.inconclusiveList = appendChildElement(appendChildElement(typeList, "li", "Inconclusives"), "ol"); + details.appendChild(block); + this.passCount = 0; + this.failCount = 0; + this.inconclusiveCount = 0; + } + extend(Results.prototype, { + failed: function (test, code, block) { + this.failCount++; + this.append(this.failList, test, code, block); + }, + inconclusive: function (test, code, block, rect) { + this.inconclusiveCount++; + this.append(this.inconclusiveList, test, code, block, " but inconclusive (rendered as " + rect.width + "x" + rect.height + ")"); + }, + append: function (list, test, code, block, message) { + var text = stringFromUnicode(code) + " should be " + test.orientation; + if (block) + text = block + ": " + text; + if (message) + text += message; + appendChildElement(list, "li", text); + }, + done: function (test) { + this.summary.textContent += " (" + this.passCount + " passes, " + + this.failCount + " fails, " + + this.inconclusiveCount + " inconclusives)"; + assert_equals(this.failCount, 0, "Fail count"); + assert_greater_than(this.passCount, 0, "Pass count"); + test.done(); + }}); + + function Runner() { + var nodes = document.querySelectorAll("div[data-vo]"); + this.testers = []; + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var vo = node.dataset.vo; + var tester = new OrientationTester(node, vo); + tester.test = async_test("Default orientation for vo=" + vo); + this.testers.push(tester); + } + this.testU = async_test("Orientation=Upright"); + this.testR = async_test("Orientation=Rotated"); + } + extend(Runner.prototype, { + run: function () { + log("Started"); + var start = new Date; + + for (var i = 0; i < this.testers.length; i++) { + var tester = this.testers[i]; + var test = tester.test; + test.step(function () { + var results = new Results(test.name); + tester.measure(results); + results.done(test); + }); + } + this.runOrientation(this.testU, "U"); + this.runOrientation(this.testR, "R"); + + log("Elapsed " + (new Date() - start)); + done(); + }, + runOrientation: function (test, orientation) { + container.classList.add(orientation); + var results = new Results(test.name); + var me = this; + test.step(function () { + for (var i = 0; i < me.testers.length; i++) { + var tester = me.testers[i]; + tester.setOrientation(orientation); + tester.measure(results); + } + results.done(test); + }) + container.classList.remove(orientation); + }}); + + setup({explicit_done:true, explicit_timeout:true}); + var runner = new Runner(); + window.onload = function () { + if (window.location.search == "?wait") { + log("Sleeping 5 secs for debug purpose"); + return setTimeout(run, 5000); + } + run(); + } + + function run() { + onFontReady("16px orientation", function () { runner.run(); }); + } + + function onFontReady(font, func) { + log("Waiting test fonts to load"); + if (document.fonts) { + if ('load' in document.fonts) + return document.fonts.load(font).then(func); + if ('ready' in document.fonts) + return document.fonts.ready.then(func); + } + document.offsetTop; // last resort to load @font-face + func(); + } + + function arrayFromRangesByValue(dict) { + var array = []; + for (var value in dict) { + var ranges = dict[value]; + for (var i = 0; i < ranges.length; i += 2) { + var to = ranges[i+1]; + for (var code = ranges[i]; code <= to; code++) + array[code] = value; + } + } + return array; + }; + + function stringFromUnicode(code) { + var hex = code.toString(16).toUpperCase(); + if (hex.length < 4) { + hex = "0000" + hex; + hex = hex.substr(hex.length - 4); + } + return hex + ' "' + String.fromCharCode(code) + '"'; + } + + function appendChildElement(parent, tag, text) { + var node = document.createElement(tag); + if (text) + node.textContent = text; + parent.appendChild(node); + return node; + } + + function extend(target, dict) { + for (var key in dict) + target[key] = dict[key]; + } +})(); diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/vertical-form.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/vertical-form.png Binary files differnew file mode 100644 index 00000000000..53a3af92cd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/vertical-form.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-59x59.png Binary files differnew file mode 100644 index 00000000000..50816d38f6b --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-horiz-redline-bottom-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-horiz-redline-bottom-59x59.png Binary files differnew file mode 100644 index 00000000000..d6139238de3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-horiz-redline-bottom-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-center-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-center-59x59.png Binary files differnew file mode 100644 index 00000000000..c352b109548 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-center-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-left-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-left-59x59.png Binary files differnew file mode 100644 index 00000000000..8baf6f60404 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-left-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-right-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-right-59x59.png Binary files differnew file mode 100644 index 00000000000..7e881312b35 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reference/support/yellow-square-vert-redline-right-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest-toc.htm b/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest-toc.htm index 6228591259e..9cd9b81e880 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest-toc.htm +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest-toc.htm @@ -2392,6 +2392,14 @@ <td rowspan="1"></td> </tr> </tbody> + <tbody id="flexbox_align-items-stretch-writing-modes" class=""> + <tr> + <td rowspan="1" title="Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl"> + <a href="flexbox_align-items-stretch-writing-modes.htm">flexbox_align-items-stretch-writing-modes</a></td> + <td><a href="reference/flexbox_align-items-stretch-writing-modes-ref.htm">=</a> </td> + <td rowspan="1"></td> + </tr> + </tbody> <tbody id="flexbox_align-self-auto" class=""> <tr> <td rowspan="1" title="flexbox | align-self: auto"> diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest.list b/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest.list index 44ad3dbbc67..4dc0e5bf55f 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest.list +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/reftest.list @@ -295,6 +295,7 @@ flexbox_align-items-flexstart.htm == reference/flexbox_align-items-flexstart-ref flexbox_align-items-flexstart-2.htm == reference/flexbox_align-items-flexstart-2-ref.htm flexbox_align-items-stretch.htm == reference/flexbox_align-items-stretch-ref.htm flexbox_align-items-stretch-2.htm == reference/flexbox_align-items-stretch-2-ref.htm +flexbox_align-items-stretch-writing-modes.htm == reference/flexbox_align-items-stretch-writing-modes-ref.htm flexbox_align-self-auto.htm == reference/flexbox_align-self-auto-ref.htm flexbox_align-self-baseline.htm == reference/flexbox_align-self-baseline-ref.htm flexbox_align-self-center.htm == reference/flexbox_align-self-center-ref.htm diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/100x100-lime.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/100x100-lime.png Binary files differnew file mode 100644 index 00000000000..1b947700808 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/100x100-lime.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/100x100-red.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/100x100-red.png Binary files differnew file mode 100644 index 00000000000..57bf3ddc521 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/100x100-red.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/DejaVuSerif-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/DejaVuSerif-webfont.woff Binary files differnew file mode 100644 index 00000000000..4583cc675d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/DejaVuSerif-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/CSSHWOrientationTest.otf b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/CSSHWOrientationTest.otf Binary files differnew file mode 100644 index 00000000000..84ad57bef5a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/CSSHWOrientationTest.otf diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/LICENSE b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/LICENSE new file mode 100644 index 00000000000..ac5f0b04320 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/LICENSE @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/README.md b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/README.md new file mode 100644 index 00000000000..686cb0c4279 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/adobe-fonts/README.md @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-1col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-1col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..7ca197bc06e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-1col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-1col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-1col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..f5c13ab550d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-1col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-2col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-2col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..4f354e93527 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-2col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-2col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-2col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..6eded69a4a3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-2col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-3col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-3col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..5f4b53c46b7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-3col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-3col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-3col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..4c2f6c8e632 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-3col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-4col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-4col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..052d224df11 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-4col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-4col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-4col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..1826531268a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/bg-red-4col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/block-flow-direction-025-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/block-flow-direction-025-exp-res.png Binary files differnew file mode 100644 index 00000000000..851eeea0398 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/block-flow-direction-025-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/block-flow-direction-066-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/block-flow-direction-066-exp-res.png Binary files differnew file mode 100644 index 00000000000..d325b15a4cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/block-flow-direction-066-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-horiz-line-220x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-horiz-line-220x1.png Binary files differnew file mode 100644 index 00000000000..3898d5a2d9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-horiz-line-220x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-horiz-line-320x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-horiz-line-320x1.png Binary files differnew file mode 100644 index 00000000000..7d9151c848a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-horiz-line-320x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-vert-line-1x220.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-vert-line-1x220.png Binary files differnew file mode 100644 index 00000000000..07b0239fc52 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-vert-line-1x220.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-vert-line-1x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-vert-line-1x320.png Binary files differnew file mode 100644 index 00000000000..6049e271506 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-vert-line-1x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-yellow-206w-165h.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-yellow-206w-165h.png Binary files differnew file mode 100644 index 00000000000..47ceb84d3fb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue-yellow-206w-165h.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue1x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue1x1.png Binary files differnew file mode 100644 index 00000000000..667b6558892 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue1x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue20x20.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue20x20.png Binary files differnew file mode 100644 index 00000000000..e0af5553303 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/blue20x20.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-002.png Binary files differnew file mode 100644 index 00000000000..7fc9f14ed6e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-004.png Binary files differnew file mode 100644 index 00000000000..2d1355e3bdb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-006.png Binary files differnew file mode 100644 index 00000000000..5145c22c485 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/clearance-calculation-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html new file mode 100644 index 00000000000..5af681f14eb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html new file mode 100644 index 00000000000..d5d94382ea2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html new file mode 100644 index 00000000000..887565e66d4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html new file mode 100644 index 00000000000..c38de525145 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html new file mode 100644 index 00000000000..66be0f4eba9 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html new file mode 100644 index 00000000000..eff5f71a450 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html new file mode 100644 index 00000000000..2da3bf3dd53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html new file mode 100644 index 00000000000..572557eb339 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html new file mode 100644 index 00000000000..8537a945fbc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html new file mode 100644 index 00000000000..95047f16a92 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html new file mode 100644 index 00000000000..4f1aa674eba --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html new file mode 100644 index 00000000000..1f35ff47dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html new file mode 100644 index 00000000000..3f4f1c935ca --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html new file mode 100644 index 00000000000..1c0bb78e74d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html new file mode 100644 index 00000000000..c193112b600 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html new file mode 100644 index 00000000000..204a08ef3df --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html new file mode 100644 index 00000000000..a71927cf3a8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html new file mode 100644 index 00000000000..e1054bc2a96 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html new file mode 100644 index 00000000000..39f297f1b9c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html new file mode 100644 index 00000000000..26e0ec67fd1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html new file mode 100644 index 00000000000..a0b80d99e3a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html new file mode 100644 index 00000000000..62d74144fee --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html new file mode 100644 index 00000000000..21efbe52bc5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html new file mode 100644 index 00000000000..748f325d8d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-002.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-002.html new file mode 100644 index 00000000000..044da84cff8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-002.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-004.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-004.html new file mode 100644 index 00000000000..68fca9ad435 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-004.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-006.html new file mode 100644 index 00000000000..38a614d2346 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-008.html new file mode 100644 index 00000000000..048ad073944 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/embedded-doc-for-background-size-root-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-slr.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-slr.png Binary files differnew file mode 100644 index 00000000000..ac9b2a30725 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-slr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-srl.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-srl.png Binary files differnew file mode 100644 index 00000000000..da9d401f917 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-srl.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-vlr.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-vlr.png Binary files differnew file mode 100644 index 00000000000..5abc22e9ee7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/form-controls-vlr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..6e30eba507a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..30668751dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-center-200x300.png Binary files differnew file mode 100644 index 00000000000..6025c4e85be --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..b2645c0fe69 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..86fd7e5671d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-top-200x300.png Binary files differnew file mode 100644 index 00000000000..43e739acbc2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/left-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/margin-collapse-2em-space-wm-vert.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/margin-collapse-2em-space-wm-vert.png Binary files differnew file mode 100644 index 00000000000..8a2fa55efdf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/margin-collapse-2em-space-wm-vert.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/mplus-1p-regular.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/mplus-1p-regular.woff Binary files differnew file mode 100644 index 00000000000..42cfff628b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/mplus-1p-regular.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/opaque-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/opaque-square-40x160.png Binary files differnew file mode 100644 index 00000000000..11636f5f771 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/opaque-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p1.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p1.png Binary files differnew file mode 100644 index 00000000000..f5adb11b4b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p2.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p2.png Binary files differnew file mode 100644 index 00000000000..7ecf84bae34 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p2.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p3.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p3.png Binary files differnew file mode 100644 index 00000000000..d7c58d62243 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p3.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p4.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p4.png Binary files differnew file mode 100644 index 00000000000..04dc0fe2e9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/page-flow-direction-002p4.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-abs-pos-non-replaced.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-abs-pos-non-replaced.png Binary files differnew file mode 100644 index 00000000000..15fd6065ef6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-abs-pos-non-replaced.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-002.png Binary files differnew file mode 100644 index 00000000000..a0db6909418 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-004.png Binary files differnew file mode 100644 index 00000000000..ec130f10f46 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-006.png Binary files differnew file mode 100644 index 00000000000..981741b7e53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-008.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-008.png Binary files differnew file mode 100644 index 00000000000..9b2a0610e4e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-008.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-010.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-010.png Binary files differnew file mode 100644 index 00000000000..a2d66146186 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-010.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-012.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-012.png Binary files differnew file mode 100644 index 00000000000..23b1beb9cd4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-012.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-014.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-014.png Binary files differnew file mode 100644 index 00000000000..64e081c72f1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-014.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-016.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-016.png Binary files differnew file mode 100644 index 00000000000..952e0089b8f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-016.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-018.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-018.png Binary files differnew file mode 100644 index 00000000000..22f51030c36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-bg-pos-vrl-018.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-box-offsets-rel-pos.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-box-offsets-rel-pos.png Binary files differnew file mode 100644 index 00000000000..e81c0ae4cf5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-box-offsets-rel-pos.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-clearance-calculations.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-clearance-calculations.png Binary files differnew file mode 100644 index 00000000000..ec502d3532a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-clearance-calculations.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-first-page-vlr-003.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-first-page-vlr-003.png Binary files differnew file mode 100644 index 00000000000..f8c677b8e05 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-first-page-vlr-003.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-first-page-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-first-page-vrl-002.png Binary files differnew file mode 100644 index 00000000000..48555d3acc8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-first-page-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-float-contiguous.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-float-contiguous.png Binary files differnew file mode 100644 index 00000000000..8d35d98e9c4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-float-contiguous.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-horiz-rule.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-horiz-rule.png Binary files differnew file mode 100644 index 00000000000..f9cc0b1eeff --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pass-cdts-horiz-rule.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..b14c75ea2c0 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..80c7035f1fc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..a98636ddef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..fd1f7a7b50a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..431b99f933a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..63248d4dd1f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..6fba8358309 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-gr-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..47ee743880e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..6b19ec9a4e7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..e28bdba9dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..797e289e059 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..97aac24065c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..177743874e2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/pattern-rr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..38904b25087 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..a3c6bb63b64 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-center-200x300.png Binary files differnew file mode 100644 index 00000000000..b9987017a06 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..8f54bf5a894 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..f76b2083118 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-top-200x300.png Binary files differnew file mode 100644 index 00000000000..59467ec3f18 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-top-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-top-green-200x300.png Binary files differnew file mode 100644 index 00000000000..313c37f4dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/right-top-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/sileot-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/sileot-webfont.woff Binary files differnew file mode 100644 index 00000000000..81547578d36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/sileot-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-aqua.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-aqua.png Binary files differnew file mode 100644 index 00000000000..dd47e286650 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-aqua.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-fuchsia.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-fuchsia.png Binary files differnew file mode 100644 index 00000000000..3f8f8b4ea37 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-fuchsia.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-olive.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-olive.png Binary files differnew file mode 100644 index 00000000000..8fff8179ef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/swatch-olive.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/tcu-font.woff b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/tcu-font.woff Binary files differnew file mode 100644 index 00000000000..c880aaab5cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/tcu-font.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-mixed-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-mixed-001.png Binary files differnew file mode 100644 index 00000000000..2bd5927f901 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-mixed-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-sideways-left-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-sideways-left-001.png Binary files differnew file mode 100644 index 00000000000..51921a7e91a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-sideways-left-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-sideways-right-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-sideways-right-001.png Binary files differnew file mode 100644 index 00000000000..f4bfd48549f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-sideways-right-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-upright-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-upright-001.png Binary files differnew file mode 100644 index 00000000000..d7df4098ed2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation-upright-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation.js b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation.js new file mode 100644 index 00000000000..6e007cea82e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/text-orientation.js @@ -0,0 +1,217 @@ +(function () { + var log = function () {}; + + function OrientationTester(container, orientation) { + this.container = container; + this.setOrientation(orientation); + } + extend(OrientationTester.prototype, { + setOrientation: function (orientation) { + this.orientation = orientation; + }, + measure: function (results) { + this.results = results; + this._measureNode(this.container); + }, + _measureNode: function (node, block) { + switch (node.nodeType) { + case Node.ELEMENT_NODE: + var blockOverride = node.dataset.block; + if (blockOverride) + block = blockOverride; + var nodes = node.childNodes; + for (var i = 0; i < nodes.length; i++) + this._measureNode(nodes[i], block); + return; + case Node.TEXT_NODE: + break; + default: + return; + } + + if (this.orientation == "R") { + var advanceExpected = 8; + var advanceFailed = 4; + } else { + advanceExpected = 4; + advanceFailed = 8; + } + + var range = document.createRange(); + var text = node.textContent; + for (var ich = 0; ich < text.length; ich++) { + var code = text.charCodeAt(ich); + if (code == 10 || code == 13) + continue; + range.setStart(node, ich); + if (code >= 0xD800 && code <= 0xDBFF) { + var next = text.charCodeAt(ich+1); + if (next >= 0xDC00 && next <= 0xDFFF) { + ich++; + code = ((code & 0x3FF) << 10) + (next & 0x3FF) + 0x10000; + } + } + range.setEnd(node, ich + 1); + rect = range.getBoundingClientRect(); + if (rect.width == 16) { + if (rect.height == advanceExpected) { + this.results.passCount++; + continue; + } + //log("U+" + stringFromUnicode(code) + " " + rect.width + "x" + rect.height); + if (rect.height == advanceFailed) { + this.results.failed(this, code, block); + continue; + } + } + this.results.inconclusive(this, code, block, rect); + } + }}); + + function Results(name) { + var block = document.createElement("details"); + this.summary = appendChildElement(block, "summary"); + this.summary.textContent = name; + var typeList = appendChildElement(block, "ul"); + this.failList = appendChildElement(appendChildElement(typeList, "li", "Failures"), "ol"); + this.inconclusiveList = appendChildElement(appendChildElement(typeList, "li", "Inconclusives"), "ol"); + details.appendChild(block); + this.passCount = 0; + this.failCount = 0; + this.inconclusiveCount = 0; + } + extend(Results.prototype, { + failed: function (test, code, block) { + this.failCount++; + this.append(this.failList, test, code, block); + }, + inconclusive: function (test, code, block, rect) { + this.inconclusiveCount++; + this.append(this.inconclusiveList, test, code, block, " but inconclusive (rendered as " + rect.width + "x" + rect.height + ")"); + }, + append: function (list, test, code, block, message) { + var text = stringFromUnicode(code) + " should be " + test.orientation; + if (block) + text = block + ": " + text; + if (message) + text += message; + appendChildElement(list, "li", text); + }, + done: function (test) { + this.summary.textContent += " (" + this.passCount + " passes, " + + this.failCount + " fails, " + + this.inconclusiveCount + " inconclusives)"; + assert_equals(this.failCount, 0, "Fail count"); + assert_greater_than(this.passCount, 0, "Pass count"); + test.done(); + }}); + + function Runner() { + var nodes = document.querySelectorAll("div[data-vo]"); + this.testers = []; + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var vo = node.dataset.vo; + var tester = new OrientationTester(node, vo); + tester.test = async_test("Default orientation for vo=" + vo); + this.testers.push(tester); + } + this.testU = async_test("Orientation=Upright"); + this.testR = async_test("Orientation=Rotated"); + } + extend(Runner.prototype, { + run: function () { + log("Started"); + var start = new Date; + + for (var i = 0; i < this.testers.length; i++) { + var tester = this.testers[i]; + var test = tester.test; + test.step(function () { + var results = new Results(test.name); + tester.measure(results); + results.done(test); + }); + } + this.runOrientation(this.testU, "U"); + this.runOrientation(this.testR, "R"); + + log("Elapsed " + (new Date() - start)); + done(); + }, + runOrientation: function (test, orientation) { + container.classList.add(orientation); + var results = new Results(test.name); + var me = this; + test.step(function () { + for (var i = 0; i < me.testers.length; i++) { + var tester = me.testers[i]; + tester.setOrientation(orientation); + tester.measure(results); + } + results.done(test); + }) + container.classList.remove(orientation); + }}); + + setup({explicit_done:true, explicit_timeout:true}); + var runner = new Runner(); + window.onload = function () { + if (window.location.search == "?wait") { + log("Sleeping 5 secs for debug purpose"); + return setTimeout(run, 5000); + } + run(); + } + + function run() { + onFontReady("16px orientation", function () { runner.run(); }); + } + + function onFontReady(font, func) { + log("Waiting test fonts to load"); + if (document.fonts) { + if ('load' in document.fonts) + return document.fonts.load(font).then(func); + if ('ready' in document.fonts) + return document.fonts.ready.then(func); + } + document.offsetTop; // last resort to load @font-face + func(); + } + + function arrayFromRangesByValue(dict) { + var array = []; + for (var value in dict) { + var ranges = dict[value]; + for (var i = 0; i < ranges.length; i += 2) { + var to = ranges[i+1]; + for (var code = ranges[i]; code <= to; code++) + array[code] = value; + } + } + return array; + }; + + function stringFromUnicode(code) { + var hex = code.toString(16).toUpperCase(); + if (hex.length < 4) { + hex = "0000" + hex; + hex = hex.substr(hex.length - 4); + } + return hex + ' "' + String.fromCharCode(code) + '"'; + } + + function appendChildElement(parent, tag, text) { + var node = document.createElement(tag); + if (text) + node.textContent = text; + parent.appendChild(node); + return node; + } + + function extend(target, dict) { + for (var key in dict) + target[key] = dict[key]; + } +})(); diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/vertical-form.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/vertical-form.png Binary files differnew file mode 100644 index 00000000000..53a3af92cd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/vertical-form.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-59x59.png Binary files differnew file mode 100644 index 00000000000..50816d38f6b --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-horiz-redline-bottom-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-horiz-redline-bottom-59x59.png Binary files differnew file mode 100644 index 00000000000..d6139238de3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-horiz-redline-bottom-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-center-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-center-59x59.png Binary files differnew file mode 100644 index 00000000000..c352b109548 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-center-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-left-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-left-59x59.png Binary files differnew file mode 100644 index 00000000000..8baf6f60404 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-left-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-right-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-right-59x59.png Binary files differnew file mode 100644 index 00000000000..7e881312b35 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/support/yellow-square-vert-redline-right-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/html/toc.htm b/tests/wpt/css-tests/css-flexbox-1_dev/html/toc.htm index 0debe956bfd..2f80d1a85d5 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/html/toc.htm +++ b/tests/wpt/css-tests/css-flexbox-1_dev/html/toc.htm @@ -57,7 +57,7 @@ <tbody id="s8"> <tr><th><a href="chapter-8.htm">Chapter 8 - Alignment</a></th> - <td>(161 Tests)</td></tr> + <td>(162 Tests)</td></tr> </tbody> <tbody id="s9"> <tr><th><a href="chapter-9.htm">Chapter 9 - diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/implementation-report-TEMPLATE.data b/tests/wpt/css-tests/css-flexbox-1_dev/implementation-report-TEMPLATE.data index a630533a242..8690767f987 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/implementation-report-TEMPLATE.data +++ b/tests/wpt/css-tests/css-flexbox-1_dev/implementation-report-TEMPLATE.data @@ -641,6 +641,8 @@ html/flexbox_align-items-flexstart.htm 52d6da57f7ff9816636b9a891751d9d56ea4c7a3 xhtml1/flexbox_align-items-flexstart.xht 52d6da57f7ff9816636b9a891751d9d56ea4c7a3 ? html/flexbox_align-items-stretch-2.htm 4f1bb3f618f016061fa5b5c060e41f8227aa4023 ? xhtml1/flexbox_align-items-stretch-2.xht 4f1bb3f618f016061fa5b5c060e41f8227aa4023 ? +html/flexbox_align-items-stretch-writing-modes.htm d1bb1a411a86d0232f96b7776b01c086456c3617 ? +xhtml1/flexbox_align-items-stretch-writing-modes.xht d1bb1a411a86d0232f96b7776b01c086456c3617 ? html/flexbox_align-items-stretch.htm 40c44ec47c70bcf3a27a7db3007ce3a9871232ec ? xhtml1/flexbox_align-items-stretch.xht 40c44ec47c70bcf3a27a7db3007ce3a9871232ec ? html/flexbox_align-self-auto.htm 83c1338cd3a0715339d2e75a08967fdfd5785ea6 ? diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/testinfo.data b/tests/wpt/css-tests/css-flexbox-1_dev/testinfo.data index cf9ad9976a8..21081e17777 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/testinfo.data +++ b/tests/wpt/css-tests/css-flexbox-1_dev/testinfo.data @@ -319,6 +319,7 @@ flexbox_align-items-flexstart reference/flexbox_align-items-flexstart-ref flexbo flexbox_align-items-flexstart-2 reference/flexbox_align-items-flexstart-2-ref flexbox | align-items: flex-start http://www.w3.org/TR/css-flexbox-1/#propdef-align-items da39ecea0abe5bdfce04a4e73cf208edc6264738 `Opera Software`<http://opera.com> flexbox_align-items-stretch reference/flexbox_align-items-stretch-ref flexbox | align-items: stretch http://www.w3.org/TR/css-flexbox-1/#propdef-align-items 40c44ec47c70bcf3a27a7db3007ce3a9871232ec `Opera Software`<http://opera.com> flexbox_align-items-stretch-2 reference/flexbox_align-items-stretch-2-ref flexbox | align-items: stretch http://www.w3.org/TR/css-flexbox-1/#propdef-align-items 4f1bb3f618f016061fa5b5c060e41f8227aa4023 `Opera Software`<http://opera.com> +flexbox_align-items-stretch-writing-modes reference/flexbox_align-items-stretch-writing-modes-ref Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl http://www.w3.org/TR/css-flexbox-1/#propdef-align-items,http://www.w3.org/TR/css-writing-modes-3/#writing-mode d1bb1a411a86d0232f96b7776b01c086456c3617 `Mitsuteru Sawa`<mailto:mitsuteru.s@gmail.com> vertical-writing-mode flex items should stretch flexbox_align-self-auto reference/flexbox_align-self-auto-ref flexbox | align-self: auto http://www.w3.org/TR/css-flexbox-1/#propdef-align-items 83c1338cd3a0715339d2e75a08967fdfd5785ea6 `Opera Software`<http://opera.com> flexbox_align-self-baseline reference/flexbox_align-self-baseline-ref flexbox | align-self: baseline http://www.w3.org/TR/css-flexbox-1/#propdef-align-items dc48eed4574fa0a579f208c78cbd6c4bbefc7008 `Opera Software`<http://opera.com> flexbox_align-self-center reference/flexbox_align-self-center-ref flexbox | align-self: center http://www.w3.org/TR/css-flexbox-1/#propdef-align-items b47b024f769c5277b9212039815369ce07e544e4 `Opera Software`<http://opera.com> diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-8.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-8.xht index a7401025b1d..00e165463d7 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-8.xht +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/chapter-8.xht @@ -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> <col id="refs-column"></col> @@ -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.xht">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.xht">flexbox_align-items-stretch-writing-modes</a></strong></td> + <td><a href="reference/flexbox_align-items-stretch-writing-modes-ref.xht">=</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.xht">flexbox_align-self-auto</a></strong></td> diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flexbox_align-items-stretch-writing-modes.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flexbox_align-items-stretch-writing-modes.xht new file mode 100644 index 00000000000..9ceed4f9b51 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/flexbox_align-items-stretch-writing-modes.xht @@ -0,0 +1,58 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS 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/flexbox_align-items-stretch-writing-modes-ref.xht" rel="match" /> + <meta content="vertical-writing-mode flex items should stretch" name="assert" /> + <style> + .container { + display: flex; + width: 250px; + } + .vertical-rl { + writing-mode: vertical-rl; + } + .vertical-lr { + writing-mode: vertical-lr; + } + .item { + background-color: green; + } + .square { + height: 50px; + width: 50px; + } + .error { + position: absolute; + background-color: red; + height: 100px; + width: 250px; + z-index: -1; + } + </style> +</head> +<body> + <p>The test passes if you see a green rectangle and no red.</p> + <div class="test"> + <div class="error"></div> + <div class="container"> + <div class="horizontal item"> + <div class="square"></div> + <div class="square"></div> + </div> + <div class="vertical-rl item"> + <div class="square"></div> + <div class="square"></div> + </div> + <div class="vertical-lr item"> + <div class="square"></div> + <div class="square"></div> + </div> + </div> + </div> + + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/flexbox_align-items-stretch-writing-modes-ref.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/flexbox_align-items-stretch-writing-modes-ref.xht new file mode 100644 index 00000000000..25f3929942a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/flexbox_align-items-stretch-writing-modes-ref.xht @@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>Reference file</title> + <link href="mailto:mitsuteru.s@gmail.com" rel="author" title="Mitsuteru Sawa" /> + <style> + .test { + height: 100px; + width: 250px; + background-color: green; + } + </style> +</head> +<body> + <p>The test passes if you see a green rectangle and no red.</p> + <div class="test"></div> + + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/100x100-lime.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/100x100-lime.png Binary files differnew file mode 100644 index 00000000000..1b947700808 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/100x100-lime.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/100x100-red.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/100x100-red.png Binary files differnew file mode 100644 index 00000000000..57bf3ddc521 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/100x100-red.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/DejaVuSerif-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/DejaVuSerif-webfont.woff Binary files differnew file mode 100644 index 00000000000..4583cc675d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/DejaVuSerif-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/CSSHWOrientationTest.otf b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/CSSHWOrientationTest.otf Binary files differnew file mode 100644 index 00000000000..84ad57bef5a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/CSSHWOrientationTest.otf diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/LICENSE b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/LICENSE new file mode 100644 index 00000000000..ac5f0b04320 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/LICENSE @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/README.md b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/README.md new file mode 100644 index 00000000000..686cb0c4279 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/adobe-fonts/README.md @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-1col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-1col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..7ca197bc06e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-1col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-1col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-1col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..f5c13ab550d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-1col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-2col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-2col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..4f354e93527 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-2col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-2col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-2col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..6eded69a4a3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-2col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-3col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-3col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..5f4b53c46b7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-3col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-3col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-3col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..4c2f6c8e632 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-3col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-4col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-4col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..052d224df11 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-4col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-4col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-4col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..1826531268a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/bg-red-4col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/block-flow-direction-025-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/block-flow-direction-025-exp-res.png Binary files differnew file mode 100644 index 00000000000..851eeea0398 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/block-flow-direction-025-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/block-flow-direction-066-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/block-flow-direction-066-exp-res.png Binary files differnew file mode 100644 index 00000000000..d325b15a4cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/block-flow-direction-066-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-horiz-line-220x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-horiz-line-220x1.png Binary files differnew file mode 100644 index 00000000000..3898d5a2d9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-horiz-line-220x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-horiz-line-320x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-horiz-line-320x1.png Binary files differnew file mode 100644 index 00000000000..7d9151c848a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-horiz-line-320x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-vert-line-1x220.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-vert-line-1x220.png Binary files differnew file mode 100644 index 00000000000..07b0239fc52 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-vert-line-1x220.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-vert-line-1x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-vert-line-1x320.png Binary files differnew file mode 100644 index 00000000000..6049e271506 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-vert-line-1x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-yellow-206w-165h.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-yellow-206w-165h.png Binary files differnew file mode 100644 index 00000000000..47ceb84d3fb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue-yellow-206w-165h.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue1x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue1x1.png Binary files differnew file mode 100644 index 00000000000..667b6558892 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue1x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue20x20.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue20x20.png Binary files differnew file mode 100644 index 00000000000..e0af5553303 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/blue20x20.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-002.png Binary files differnew file mode 100644 index 00000000000..7fc9f14ed6e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-004.png Binary files differnew file mode 100644 index 00000000000..2d1355e3bdb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-006.png Binary files differnew file mode 100644 index 00000000000..5145c22c485 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/clearance-calculation-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html new file mode 100644 index 00000000000..5af681f14eb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html new file mode 100644 index 00000000000..d5d94382ea2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html new file mode 100644 index 00000000000..887565e66d4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html new file mode 100644 index 00000000000..c38de525145 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html new file mode 100644 index 00000000000..66be0f4eba9 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html new file mode 100644 index 00000000000..eff5f71a450 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html new file mode 100644 index 00000000000..2da3bf3dd53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html new file mode 100644 index 00000000000..572557eb339 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html new file mode 100644 index 00000000000..8537a945fbc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html new file mode 100644 index 00000000000..95047f16a92 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html new file mode 100644 index 00000000000..4f1aa674eba --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html new file mode 100644 index 00000000000..1f35ff47dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html new file mode 100644 index 00000000000..3f4f1c935ca --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html new file mode 100644 index 00000000000..1c0bb78e74d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html new file mode 100644 index 00000000000..c193112b600 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html new file mode 100644 index 00000000000..204a08ef3df --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html new file mode 100644 index 00000000000..a71927cf3a8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html new file mode 100644 index 00000000000..e1054bc2a96 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html new file mode 100644 index 00000000000..39f297f1b9c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html new file mode 100644 index 00000000000..26e0ec67fd1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html new file mode 100644 index 00000000000..a0b80d99e3a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html new file mode 100644 index 00000000000..62d74144fee --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html new file mode 100644 index 00000000000..21efbe52bc5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html new file mode 100644 index 00000000000..748f325d8d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-002.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-002.html new file mode 100644 index 00000000000..044da84cff8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-002.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-004.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-004.html new file mode 100644 index 00000000000..68fca9ad435 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-004.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-006.html new file mode 100644 index 00000000000..38a614d2346 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-008.html new file mode 100644 index 00000000000..048ad073944 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-slr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-slr.png Binary files differnew file mode 100644 index 00000000000..ac9b2a30725 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-slr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-srl.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-srl.png Binary files differnew file mode 100644 index 00000000000..da9d401f917 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-srl.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-vlr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-vlr.png Binary files differnew file mode 100644 index 00000000000..5abc22e9ee7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/form-controls-vlr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..6e30eba507a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..30668751dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-center-200x300.png Binary files differnew file mode 100644 index 00000000000..6025c4e85be --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..b2645c0fe69 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..86fd7e5671d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-top-200x300.png Binary files differnew file mode 100644 index 00000000000..43e739acbc2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/left-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/margin-collapse-2em-space-wm-vert.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/margin-collapse-2em-space-wm-vert.png Binary files differnew file mode 100644 index 00000000000..8a2fa55efdf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/margin-collapse-2em-space-wm-vert.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/mplus-1p-regular.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/mplus-1p-regular.woff Binary files differnew file mode 100644 index 00000000000..42cfff628b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/mplus-1p-regular.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/opaque-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/opaque-square-40x160.png Binary files differnew file mode 100644 index 00000000000..11636f5f771 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/opaque-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p1.png Binary files differnew file mode 100644 index 00000000000..f5adb11b4b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p2.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p2.png Binary files differnew file mode 100644 index 00000000000..7ecf84bae34 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p2.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p3.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p3.png Binary files differnew file mode 100644 index 00000000000..d7c58d62243 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p3.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p4.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p4.png Binary files differnew file mode 100644 index 00000000000..04dc0fe2e9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/page-flow-direction-002p4.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-abs-pos-non-replaced.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-abs-pos-non-replaced.png Binary files differnew file mode 100644 index 00000000000..15fd6065ef6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-abs-pos-non-replaced.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-002.png Binary files differnew file mode 100644 index 00000000000..a0db6909418 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-004.png Binary files differnew file mode 100644 index 00000000000..ec130f10f46 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-006.png Binary files differnew file mode 100644 index 00000000000..981741b7e53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-008.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-008.png Binary files differnew file mode 100644 index 00000000000..9b2a0610e4e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-008.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-010.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-010.png Binary files differnew file mode 100644 index 00000000000..a2d66146186 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-010.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-012.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-012.png Binary files differnew file mode 100644 index 00000000000..23b1beb9cd4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-012.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-014.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-014.png Binary files differnew file mode 100644 index 00000000000..64e081c72f1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-014.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-016.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-016.png Binary files differnew file mode 100644 index 00000000000..952e0089b8f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-016.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-018.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-018.png Binary files differnew file mode 100644 index 00000000000..22f51030c36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-018.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-box-offsets-rel-pos.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-box-offsets-rel-pos.png Binary files differnew file mode 100644 index 00000000000..e81c0ae4cf5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-box-offsets-rel-pos.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-clearance-calculations.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-clearance-calculations.png Binary files differnew file mode 100644 index 00000000000..ec502d3532a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-clearance-calculations.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-first-page-vlr-003.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-first-page-vlr-003.png Binary files differnew file mode 100644 index 00000000000..f8c677b8e05 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-first-page-vlr-003.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-first-page-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-first-page-vrl-002.png Binary files differnew file mode 100644 index 00000000000..48555d3acc8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-first-page-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-float-contiguous.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-float-contiguous.png Binary files differnew file mode 100644 index 00000000000..8d35d98e9c4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-float-contiguous.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-horiz-rule.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-horiz-rule.png Binary files differnew file mode 100644 index 00000000000..f9cc0b1eeff --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pass-cdts-horiz-rule.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..b14c75ea2c0 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..80c7035f1fc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..a98636ddef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..fd1f7a7b50a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..431b99f933a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..63248d4dd1f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..6fba8358309 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-gr-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..47ee743880e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..6b19ec9a4e7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..e28bdba9dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..797e289e059 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..97aac24065c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..177743874e2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/pattern-rr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..38904b25087 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..a3c6bb63b64 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-center-200x300.png Binary files differnew file mode 100644 index 00000000000..b9987017a06 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..8f54bf5a894 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..f76b2083118 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-top-200x300.png Binary files differnew file mode 100644 index 00000000000..59467ec3f18 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-top-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-top-green-200x300.png Binary files differnew file mode 100644 index 00000000000..313c37f4dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/right-top-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/sileot-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/sileot-webfont.woff Binary files differnew file mode 100644 index 00000000000..81547578d36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/sileot-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-aqua.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-aqua.png Binary files differnew file mode 100644 index 00000000000..dd47e286650 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-aqua.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-fuchsia.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-fuchsia.png Binary files differnew file mode 100644 index 00000000000..3f8f8b4ea37 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-fuchsia.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-olive.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-olive.png Binary files differnew file mode 100644 index 00000000000..8fff8179ef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/swatch-olive.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/tcu-font.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/tcu-font.woff Binary files differnew file mode 100644 index 00000000000..c880aaab5cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/tcu-font.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-mixed-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-mixed-001.png Binary files differnew file mode 100644 index 00000000000..2bd5927f901 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-mixed-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-sideways-left-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-sideways-left-001.png Binary files differnew file mode 100644 index 00000000000..51921a7e91a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-sideways-left-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-sideways-right-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-sideways-right-001.png Binary files differnew file mode 100644 index 00000000000..f4bfd48549f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-sideways-right-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-upright-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-upright-001.png Binary files differnew file mode 100644 index 00000000000..d7df4098ed2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation-upright-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation.js b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation.js new file mode 100644 index 00000000000..6e007cea82e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/text-orientation.js @@ -0,0 +1,217 @@ +(function () { + var log = function () {}; + + function OrientationTester(container, orientation) { + this.container = container; + this.setOrientation(orientation); + } + extend(OrientationTester.prototype, { + setOrientation: function (orientation) { + this.orientation = orientation; + }, + measure: function (results) { + this.results = results; + this._measureNode(this.container); + }, + _measureNode: function (node, block) { + switch (node.nodeType) { + case Node.ELEMENT_NODE: + var blockOverride = node.dataset.block; + if (blockOverride) + block = blockOverride; + var nodes = node.childNodes; + for (var i = 0; i < nodes.length; i++) + this._measureNode(nodes[i], block); + return; + case Node.TEXT_NODE: + break; + default: + return; + } + + if (this.orientation == "R") { + var advanceExpected = 8; + var advanceFailed = 4; + } else { + advanceExpected = 4; + advanceFailed = 8; + } + + var range = document.createRange(); + var text = node.textContent; + for (var ich = 0; ich < text.length; ich++) { + var code = text.charCodeAt(ich); + if (code == 10 || code == 13) + continue; + range.setStart(node, ich); + if (code >= 0xD800 && code <= 0xDBFF) { + var next = text.charCodeAt(ich+1); + if (next >= 0xDC00 && next <= 0xDFFF) { + ich++; + code = ((code & 0x3FF) << 10) + (next & 0x3FF) + 0x10000; + } + } + range.setEnd(node, ich + 1); + rect = range.getBoundingClientRect(); + if (rect.width == 16) { + if (rect.height == advanceExpected) { + this.results.passCount++; + continue; + } + //log("U+" + stringFromUnicode(code) + " " + rect.width + "x" + rect.height); + if (rect.height == advanceFailed) { + this.results.failed(this, code, block); + continue; + } + } + this.results.inconclusive(this, code, block, rect); + } + }}); + + function Results(name) { + var block = document.createElement("details"); + this.summary = appendChildElement(block, "summary"); + this.summary.textContent = name; + var typeList = appendChildElement(block, "ul"); + this.failList = appendChildElement(appendChildElement(typeList, "li", "Failures"), "ol"); + this.inconclusiveList = appendChildElement(appendChildElement(typeList, "li", "Inconclusives"), "ol"); + details.appendChild(block); + this.passCount = 0; + this.failCount = 0; + this.inconclusiveCount = 0; + } + extend(Results.prototype, { + failed: function (test, code, block) { + this.failCount++; + this.append(this.failList, test, code, block); + }, + inconclusive: function (test, code, block, rect) { + this.inconclusiveCount++; + this.append(this.inconclusiveList, test, code, block, " but inconclusive (rendered as " + rect.width + "x" + rect.height + ")"); + }, + append: function (list, test, code, block, message) { + var text = stringFromUnicode(code) + " should be " + test.orientation; + if (block) + text = block + ": " + text; + if (message) + text += message; + appendChildElement(list, "li", text); + }, + done: function (test) { + this.summary.textContent += " (" + this.passCount + " passes, " + + this.failCount + " fails, " + + this.inconclusiveCount + " inconclusives)"; + assert_equals(this.failCount, 0, "Fail count"); + assert_greater_than(this.passCount, 0, "Pass count"); + test.done(); + }}); + + function Runner() { + var nodes = document.querySelectorAll("div[data-vo]"); + this.testers = []; + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var vo = node.dataset.vo; + var tester = new OrientationTester(node, vo); + tester.test = async_test("Default orientation for vo=" + vo); + this.testers.push(tester); + } + this.testU = async_test("Orientation=Upright"); + this.testR = async_test("Orientation=Rotated"); + } + extend(Runner.prototype, { + run: function () { + log("Started"); + var start = new Date; + + for (var i = 0; i < this.testers.length; i++) { + var tester = this.testers[i]; + var test = tester.test; + test.step(function () { + var results = new Results(test.name); + tester.measure(results); + results.done(test); + }); + } + this.runOrientation(this.testU, "U"); + this.runOrientation(this.testR, "R"); + + log("Elapsed " + (new Date() - start)); + done(); + }, + runOrientation: function (test, orientation) { + container.classList.add(orientation); + var results = new Results(test.name); + var me = this; + test.step(function () { + for (var i = 0; i < me.testers.length; i++) { + var tester = me.testers[i]; + tester.setOrientation(orientation); + tester.measure(results); + } + results.done(test); + }) + container.classList.remove(orientation); + }}); + + setup({explicit_done:true, explicit_timeout:true}); + var runner = new Runner(); + window.onload = function () { + if (window.location.search == "?wait") { + log("Sleeping 5 secs for debug purpose"); + return setTimeout(run, 5000); + } + run(); + } + + function run() { + onFontReady("16px orientation", function () { runner.run(); }); + } + + function onFontReady(font, func) { + log("Waiting test fonts to load"); + if (document.fonts) { + if ('load' in document.fonts) + return document.fonts.load(font).then(func); + if ('ready' in document.fonts) + return document.fonts.ready.then(func); + } + document.offsetTop; // last resort to load @font-face + func(); + } + + function arrayFromRangesByValue(dict) { + var array = []; + for (var value in dict) { + var ranges = dict[value]; + for (var i = 0; i < ranges.length; i += 2) { + var to = ranges[i+1]; + for (var code = ranges[i]; code <= to; code++) + array[code] = value; + } + } + return array; + }; + + function stringFromUnicode(code) { + var hex = code.toString(16).toUpperCase(); + if (hex.length < 4) { + hex = "0000" + hex; + hex = hex.substr(hex.length - 4); + } + return hex + ' "' + String.fromCharCode(code) + '"'; + } + + function appendChildElement(parent, tag, text) { + var node = document.createElement(tag); + if (text) + node.textContent = text; + parent.appendChild(node); + return node; + } + + function extend(target, dict) { + for (var key in dict) + target[key] = dict[key]; + } +})(); diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/vertical-form.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/vertical-form.png Binary files differnew file mode 100644 index 00000000000..53a3af92cd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/vertical-form.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-59x59.png Binary files differnew file mode 100644 index 00000000000..50816d38f6b --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-horiz-redline-bottom-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-horiz-redline-bottom-59x59.png Binary files differnew file mode 100644 index 00000000000..d6139238de3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-horiz-redline-bottom-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-center-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-center-59x59.png Binary files differnew file mode 100644 index 00000000000..c352b109548 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-center-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-left-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-left-59x59.png Binary files differnew file mode 100644 index 00000000000..8baf6f60404 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-left-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-right-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-right-59x59.png Binary files differnew file mode 100644 index 00000000000..7e881312b35 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reference/support/yellow-square-vert-redline-right-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest-toc.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest-toc.xht index 94f1203a293..165a4ca7950 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest-toc.xht +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest-toc.xht @@ -2392,6 +2392,14 @@ <td rowspan="1"></td> </tr> </tbody> + <tbody id="flexbox_align-items-stretch-writing-modes" class=""> + <tr> + <td rowspan="1" title="Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl"> + <a href="flexbox_align-items-stretch-writing-modes.xht">flexbox_align-items-stretch-writing-modes</a></td> + <td><a href="reference/flexbox_align-items-stretch-writing-modes-ref.xht">=</a> </td> + <td rowspan="1"></td> + </tr> + </tbody> <tbody id="flexbox_align-self-auto" class=""> <tr> <td rowspan="1" title="flexbox | align-self: auto"> diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest.list b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest.list index 1996e450700..a598849ed18 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest.list +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/reftest.list @@ -295,6 +295,7 @@ flexbox_align-items-flexstart.xht == reference/flexbox_align-items-flexstart-ref flexbox_align-items-flexstart-2.xht == reference/flexbox_align-items-flexstart-2-ref.xht flexbox_align-items-stretch.xht == reference/flexbox_align-items-stretch-ref.xht flexbox_align-items-stretch-2.xht == reference/flexbox_align-items-stretch-2-ref.xht +flexbox_align-items-stretch-writing-modes.xht == reference/flexbox_align-items-stretch-writing-modes-ref.xht flexbox_align-self-auto.xht == reference/flexbox_align-self-auto-ref.xht flexbox_align-self-baseline.xht == reference/flexbox_align-self-baseline-ref.xht flexbox_align-self-center.xht == reference/flexbox_align-self-center-ref.xht diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/100x100-lime.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/100x100-lime.png Binary files differnew file mode 100644 index 00000000000..1b947700808 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/100x100-lime.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/100x100-red.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/100x100-red.png Binary files differnew file mode 100644 index 00000000000..57bf3ddc521 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/100x100-red.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/DejaVuSerif-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/DejaVuSerif-webfont.woff Binary files differnew file mode 100644 index 00000000000..4583cc675d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/DejaVuSerif-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/CSSHWOrientationTest.otf b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/CSSHWOrientationTest.otf Binary files differnew file mode 100644 index 00000000000..84ad57bef5a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/CSSHWOrientationTest.otf diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/LICENSE b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/LICENSE new file mode 100644 index 00000000000..ac5f0b04320 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/LICENSE @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/README.md b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/README.md new file mode 100644 index 00000000000..686cb0c4279 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/adobe-fonts/README.md @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-1col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-1col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..7ca197bc06e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-1col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-1col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-1col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..f5c13ab550d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-1col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-2col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-2col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..4f354e93527 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-2col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-2col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-2col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..6eded69a4a3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-2col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-3col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-3col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..5f4b53c46b7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-3col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-3col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-3col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..4c2f6c8e632 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-3col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-4col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-4col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..052d224df11 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-4col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-4col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-4col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..1826531268a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/bg-red-4col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/block-flow-direction-025-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/block-flow-direction-025-exp-res.png Binary files differnew file mode 100644 index 00000000000..851eeea0398 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/block-flow-direction-025-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/block-flow-direction-066-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/block-flow-direction-066-exp-res.png Binary files differnew file mode 100644 index 00000000000..d325b15a4cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/block-flow-direction-066-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-horiz-line-220x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-horiz-line-220x1.png Binary files differnew file mode 100644 index 00000000000..3898d5a2d9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-horiz-line-220x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-horiz-line-320x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-horiz-line-320x1.png Binary files differnew file mode 100644 index 00000000000..7d9151c848a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-horiz-line-320x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-vert-line-1x220.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-vert-line-1x220.png Binary files differnew file mode 100644 index 00000000000..07b0239fc52 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-vert-line-1x220.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-vert-line-1x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-vert-line-1x320.png Binary files differnew file mode 100644 index 00000000000..6049e271506 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-vert-line-1x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-yellow-206w-165h.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-yellow-206w-165h.png Binary files differnew file mode 100644 index 00000000000..47ceb84d3fb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue-yellow-206w-165h.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue1x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue1x1.png Binary files differnew file mode 100644 index 00000000000..667b6558892 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue1x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue20x20.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue20x20.png Binary files differnew file mode 100644 index 00000000000..e0af5553303 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/blue20x20.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-002.png Binary files differnew file mode 100644 index 00000000000..7fc9f14ed6e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-004.png Binary files differnew file mode 100644 index 00000000000..2d1355e3bdb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-006.png Binary files differnew file mode 100644 index 00000000000..5145c22c485 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/clearance-calculation-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html new file mode 100644 index 00000000000..5af681f14eb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html new file mode 100644 index 00000000000..d5d94382ea2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html new file mode 100644 index 00000000000..887565e66d4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html new file mode 100644 index 00000000000..c38de525145 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html new file mode 100644 index 00000000000..66be0f4eba9 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html new file mode 100644 index 00000000000..eff5f71a450 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html new file mode 100644 index 00000000000..2da3bf3dd53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html new file mode 100644 index 00000000000..572557eb339 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html new file mode 100644 index 00000000000..8537a945fbc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html new file mode 100644 index 00000000000..95047f16a92 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html new file mode 100644 index 00000000000..4f1aa674eba --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html new file mode 100644 index 00000000000..1f35ff47dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html new file mode 100644 index 00000000000..3f4f1c935ca --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html new file mode 100644 index 00000000000..1c0bb78e74d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html new file mode 100644 index 00000000000..c193112b600 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html new file mode 100644 index 00000000000..204a08ef3df --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html new file mode 100644 index 00000000000..a71927cf3a8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html new file mode 100644 index 00000000000..e1054bc2a96 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html new file mode 100644 index 00000000000..39f297f1b9c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html new file mode 100644 index 00000000000..26e0ec67fd1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html new file mode 100644 index 00000000000..a0b80d99e3a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html new file mode 100644 index 00000000000..62d74144fee --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html new file mode 100644 index 00000000000..21efbe52bc5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html new file mode 100644 index 00000000000..748f325d8d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-002.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-002.html new file mode 100644 index 00000000000..044da84cff8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-002.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-004.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-004.html new file mode 100644 index 00000000000..68fca9ad435 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-004.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-006.html new file mode 100644 index 00000000000..38a614d2346 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-008.html new file mode 100644 index 00000000000..048ad073944 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/embedded-doc-for-background-size-root-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-slr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-slr.png Binary files differnew file mode 100644 index 00000000000..ac9b2a30725 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-slr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-srl.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-srl.png Binary files differnew file mode 100644 index 00000000000..da9d401f917 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-srl.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-vlr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-vlr.png Binary files differnew file mode 100644 index 00000000000..5abc22e9ee7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/form-controls-vlr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..6e30eba507a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..30668751dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-center-200x300.png Binary files differnew file mode 100644 index 00000000000..6025c4e85be --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..b2645c0fe69 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..86fd7e5671d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-top-200x300.png Binary files differnew file mode 100644 index 00000000000..43e739acbc2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/left-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/margin-collapse-2em-space-wm-vert.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/margin-collapse-2em-space-wm-vert.png Binary files differnew file mode 100644 index 00000000000..8a2fa55efdf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/margin-collapse-2em-space-wm-vert.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/mplus-1p-regular.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/mplus-1p-regular.woff Binary files differnew file mode 100644 index 00000000000..42cfff628b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/mplus-1p-regular.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/opaque-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/opaque-square-40x160.png Binary files differnew file mode 100644 index 00000000000..11636f5f771 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/opaque-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p1.png Binary files differnew file mode 100644 index 00000000000..f5adb11b4b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p2.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p2.png Binary files differnew file mode 100644 index 00000000000..7ecf84bae34 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p2.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p3.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p3.png Binary files differnew file mode 100644 index 00000000000..d7c58d62243 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p3.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p4.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p4.png Binary files differnew file mode 100644 index 00000000000..04dc0fe2e9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/page-flow-direction-002p4.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-abs-pos-non-replaced.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-abs-pos-non-replaced.png Binary files differnew file mode 100644 index 00000000000..15fd6065ef6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-abs-pos-non-replaced.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-002.png Binary files differnew file mode 100644 index 00000000000..a0db6909418 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-004.png Binary files differnew file mode 100644 index 00000000000..ec130f10f46 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-006.png Binary files differnew file mode 100644 index 00000000000..981741b7e53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-008.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-008.png Binary files differnew file mode 100644 index 00000000000..9b2a0610e4e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-008.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-010.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-010.png Binary files differnew file mode 100644 index 00000000000..a2d66146186 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-010.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-012.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-012.png Binary files differnew file mode 100644 index 00000000000..23b1beb9cd4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-012.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-014.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-014.png Binary files differnew file mode 100644 index 00000000000..64e081c72f1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-014.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-016.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-016.png Binary files differnew file mode 100644 index 00000000000..952e0089b8f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-016.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-018.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-018.png Binary files differnew file mode 100644 index 00000000000..22f51030c36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-bg-pos-vrl-018.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-box-offsets-rel-pos.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-box-offsets-rel-pos.png Binary files differnew file mode 100644 index 00000000000..e81c0ae4cf5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-box-offsets-rel-pos.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-clearance-calculations.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-clearance-calculations.png Binary files differnew file mode 100644 index 00000000000..ec502d3532a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-clearance-calculations.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-first-page-vlr-003.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-first-page-vlr-003.png Binary files differnew file mode 100644 index 00000000000..f8c677b8e05 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-first-page-vlr-003.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-first-page-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-first-page-vrl-002.png Binary files differnew file mode 100644 index 00000000000..48555d3acc8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-first-page-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-float-contiguous.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-float-contiguous.png Binary files differnew file mode 100644 index 00000000000..8d35d98e9c4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-float-contiguous.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-horiz-rule.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-horiz-rule.png Binary files differnew file mode 100644 index 00000000000..f9cc0b1eeff --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pass-cdts-horiz-rule.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..b14c75ea2c0 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..80c7035f1fc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..a98636ddef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..fd1f7a7b50a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..431b99f933a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..63248d4dd1f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..6fba8358309 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-gr-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..47ee743880e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..6b19ec9a4e7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..e28bdba9dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..797e289e059 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..97aac24065c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..177743874e2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/pattern-rr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..38904b25087 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..a3c6bb63b64 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-center-200x300.png Binary files differnew file mode 100644 index 00000000000..b9987017a06 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..8f54bf5a894 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..f76b2083118 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-top-200x300.png Binary files differnew file mode 100644 index 00000000000..59467ec3f18 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-top-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-top-green-200x300.png Binary files differnew file mode 100644 index 00000000000..313c37f4dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/right-top-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/sileot-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/sileot-webfont.woff Binary files differnew file mode 100644 index 00000000000..81547578d36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/sileot-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-aqua.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-aqua.png Binary files differnew file mode 100644 index 00000000000..dd47e286650 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-aqua.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-fuchsia.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-fuchsia.png Binary files differnew file mode 100644 index 00000000000..3f8f8b4ea37 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-fuchsia.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-olive.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-olive.png Binary files differnew file mode 100644 index 00000000000..8fff8179ef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/swatch-olive.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/tcu-font.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/tcu-font.woff Binary files differnew file mode 100644 index 00000000000..c880aaab5cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/tcu-font.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-mixed-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-mixed-001.png Binary files differnew file mode 100644 index 00000000000..2bd5927f901 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-mixed-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-sideways-left-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-sideways-left-001.png Binary files differnew file mode 100644 index 00000000000..51921a7e91a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-sideways-left-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-sideways-right-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-sideways-right-001.png Binary files differnew file mode 100644 index 00000000000..f4bfd48549f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-sideways-right-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-upright-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-upright-001.png Binary files differnew file mode 100644 index 00000000000..d7df4098ed2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation-upright-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation.js b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation.js new file mode 100644 index 00000000000..6e007cea82e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/text-orientation.js @@ -0,0 +1,217 @@ +(function () { + var log = function () {}; + + function OrientationTester(container, orientation) { + this.container = container; + this.setOrientation(orientation); + } + extend(OrientationTester.prototype, { + setOrientation: function (orientation) { + this.orientation = orientation; + }, + measure: function (results) { + this.results = results; + this._measureNode(this.container); + }, + _measureNode: function (node, block) { + switch (node.nodeType) { + case Node.ELEMENT_NODE: + var blockOverride = node.dataset.block; + if (blockOverride) + block = blockOverride; + var nodes = node.childNodes; + for (var i = 0; i < nodes.length; i++) + this._measureNode(nodes[i], block); + return; + case Node.TEXT_NODE: + break; + default: + return; + } + + if (this.orientation == "R") { + var advanceExpected = 8; + var advanceFailed = 4; + } else { + advanceExpected = 4; + advanceFailed = 8; + } + + var range = document.createRange(); + var text = node.textContent; + for (var ich = 0; ich < text.length; ich++) { + var code = text.charCodeAt(ich); + if (code == 10 || code == 13) + continue; + range.setStart(node, ich); + if (code >= 0xD800 && code <= 0xDBFF) { + var next = text.charCodeAt(ich+1); + if (next >= 0xDC00 && next <= 0xDFFF) { + ich++; + code = ((code & 0x3FF) << 10) + (next & 0x3FF) + 0x10000; + } + } + range.setEnd(node, ich + 1); + rect = range.getBoundingClientRect(); + if (rect.width == 16) { + if (rect.height == advanceExpected) { + this.results.passCount++; + continue; + } + //log("U+" + stringFromUnicode(code) + " " + rect.width + "x" + rect.height); + if (rect.height == advanceFailed) { + this.results.failed(this, code, block); + continue; + } + } + this.results.inconclusive(this, code, block, rect); + } + }}); + + function Results(name) { + var block = document.createElement("details"); + this.summary = appendChildElement(block, "summary"); + this.summary.textContent = name; + var typeList = appendChildElement(block, "ul"); + this.failList = appendChildElement(appendChildElement(typeList, "li", "Failures"), "ol"); + this.inconclusiveList = appendChildElement(appendChildElement(typeList, "li", "Inconclusives"), "ol"); + details.appendChild(block); + this.passCount = 0; + this.failCount = 0; + this.inconclusiveCount = 0; + } + extend(Results.prototype, { + failed: function (test, code, block) { + this.failCount++; + this.append(this.failList, test, code, block); + }, + inconclusive: function (test, code, block, rect) { + this.inconclusiveCount++; + this.append(this.inconclusiveList, test, code, block, " but inconclusive (rendered as " + rect.width + "x" + rect.height + ")"); + }, + append: function (list, test, code, block, message) { + var text = stringFromUnicode(code) + " should be " + test.orientation; + if (block) + text = block + ": " + text; + if (message) + text += message; + appendChildElement(list, "li", text); + }, + done: function (test) { + this.summary.textContent += " (" + this.passCount + " passes, " + + this.failCount + " fails, " + + this.inconclusiveCount + " inconclusives)"; + assert_equals(this.failCount, 0, "Fail count"); + assert_greater_than(this.passCount, 0, "Pass count"); + test.done(); + }}); + + function Runner() { + var nodes = document.querySelectorAll("div[data-vo]"); + this.testers = []; + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var vo = node.dataset.vo; + var tester = new OrientationTester(node, vo); + tester.test = async_test("Default orientation for vo=" + vo); + this.testers.push(tester); + } + this.testU = async_test("Orientation=Upright"); + this.testR = async_test("Orientation=Rotated"); + } + extend(Runner.prototype, { + run: function () { + log("Started"); + var start = new Date; + + for (var i = 0; i < this.testers.length; i++) { + var tester = this.testers[i]; + var test = tester.test; + test.step(function () { + var results = new Results(test.name); + tester.measure(results); + results.done(test); + }); + } + this.runOrientation(this.testU, "U"); + this.runOrientation(this.testR, "R"); + + log("Elapsed " + (new Date() - start)); + done(); + }, + runOrientation: function (test, orientation) { + container.classList.add(orientation); + var results = new Results(test.name); + var me = this; + test.step(function () { + for (var i = 0; i < me.testers.length; i++) { + var tester = me.testers[i]; + tester.setOrientation(orientation); + tester.measure(results); + } + results.done(test); + }) + container.classList.remove(orientation); + }}); + + setup({explicit_done:true, explicit_timeout:true}); + var runner = new Runner(); + window.onload = function () { + if (window.location.search == "?wait") { + log("Sleeping 5 secs for debug purpose"); + return setTimeout(run, 5000); + } + run(); + } + + function run() { + onFontReady("16px orientation", function () { runner.run(); }); + } + + function onFontReady(font, func) { + log("Waiting test fonts to load"); + if (document.fonts) { + if ('load' in document.fonts) + return document.fonts.load(font).then(func); + if ('ready' in document.fonts) + return document.fonts.ready.then(func); + } + document.offsetTop; // last resort to load @font-face + func(); + } + + function arrayFromRangesByValue(dict) { + var array = []; + for (var value in dict) { + var ranges = dict[value]; + for (var i = 0; i < ranges.length; i += 2) { + var to = ranges[i+1]; + for (var code = ranges[i]; code <= to; code++) + array[code] = value; + } + } + return array; + }; + + function stringFromUnicode(code) { + var hex = code.toString(16).toUpperCase(); + if (hex.length < 4) { + hex = "0000" + hex; + hex = hex.substr(hex.length - 4); + } + return hex + ' "' + String.fromCharCode(code) + '"'; + } + + function appendChildElement(parent, tag, text) { + var node = document.createElement(tag); + if (text) + node.textContent = text; + parent.appendChild(node); + return node; + } + + function extend(target, dict) { + for (var key in dict) + target[key] = dict[key]; + } +})(); diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/vertical-form.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/vertical-form.png Binary files differnew file mode 100644 index 00000000000..53a3af92cd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/vertical-form.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-59x59.png Binary files differnew file mode 100644 index 00000000000..50816d38f6b --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-horiz-redline-bottom-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-horiz-redline-bottom-59x59.png Binary files differnew file mode 100644 index 00000000000..d6139238de3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-horiz-redline-bottom-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-center-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-center-59x59.png Binary files differnew file mode 100644 index 00000000000..c352b109548 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-center-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-left-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-left-59x59.png Binary files differnew file mode 100644 index 00000000000..8baf6f60404 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-left-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-right-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-right-59x59.png Binary files differnew file mode 100644 index 00000000000..7e881312b35 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/support/yellow-square-vert-redline-right-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/toc.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/toc.xht index d96e60ebbe9..08e2d2e5fa4 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/toc.xht +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1/toc.xht @@ -57,7 +57,7 @@ <tbody id="s8"> <tr><th><a href="chapter-8.xht">Chapter 8 - Alignment</a></th> - <td>(161 Tests)</td></tr> + <td>(162 Tests)</td></tr> </tbody> <tbody id="s9"> <tr><th><a href="chapter-9.xht">Chapter 9 - diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/chapter-8.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/chapter-8.xht index a7401025b1d..00e165463d7 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/chapter-8.xht +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/chapter-8.xht @@ -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> <col id="refs-column"></col> @@ -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.xht">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.xht">flexbox_align-items-stretch-writing-modes</a></strong></td> + <td><a href="reference/flexbox_align-items-stretch-writing-modes-ref.xht">=</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.xht">flexbox_align-self-auto</a></strong></td> diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/flexbox_align-items-stretch-writing-modes.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/flexbox_align-items-stretch-writing-modes.xht new file mode 100644 index 00000000000..9ceed4f9b51 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/flexbox_align-items-stretch-writing-modes.xht @@ -0,0 +1,58 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>CSS 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/flexbox_align-items-stretch-writing-modes-ref.xht" rel="match" /> + <meta content="vertical-writing-mode flex items should stretch" name="assert" /> + <style> + .container { + display: flex; + width: 250px; + } + .vertical-rl { + writing-mode: vertical-rl; + } + .vertical-lr { + writing-mode: vertical-lr; + } + .item { + background-color: green; + } + .square { + height: 50px; + width: 50px; + } + .error { + position: absolute; + background-color: red; + height: 100px; + width: 250px; + z-index: -1; + } + </style> +</head> +<body> + <p>The test passes if you see a green rectangle and no red.</p> + <div class="test"> + <div class="error"></div> + <div class="container"> + <div class="horizontal item"> + <div class="square"></div> + <div class="square"></div> + </div> + <div class="vertical-rl item"> + <div class="square"></div> + <div class="square"></div> + </div> + <div class="vertical-lr item"> + <div class="square"></div> + <div class="square"></div> + </div> + </div> + </div> + + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/flexbox_align-items-stretch-writing-modes-ref.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/flexbox_align-items-stretch-writing-modes-ref.xht new file mode 100644 index 00000000000..25f3929942a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/flexbox_align-items-stretch-writing-modes-ref.xht @@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"><head> + <title>Reference file</title> + <link href="mailto:mitsuteru.s@gmail.com" rel="author" title="Mitsuteru Sawa" /> + <style> + .test { + height: 100px; + width: 250px; + background-color: green; + } + </style> +</head> +<body> + <p>The test passes if you see a green rectangle and no red.</p> + <div class="test"></div> + + +</body></html>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/100x100-lime.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/100x100-lime.png Binary files differnew file mode 100644 index 00000000000..1b947700808 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/100x100-lime.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/100x100-red.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/100x100-red.png Binary files differnew file mode 100644 index 00000000000..57bf3ddc521 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/100x100-red.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/DejaVuSerif-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/DejaVuSerif-webfont.woff Binary files differnew file mode 100644 index 00000000000..4583cc675d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/DejaVuSerif-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/CSSHWOrientationTest.otf b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/CSSHWOrientationTest.otf Binary files differnew file mode 100644 index 00000000000..84ad57bef5a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/CSSHWOrientationTest.otf diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/LICENSE b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/LICENSE new file mode 100644 index 00000000000..ac5f0b04320 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/LICENSE @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/README.md b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/README.md new file mode 100644 index 00000000000..686cb0c4279 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/adobe-fonts/README.md @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-1col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-1col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..7ca197bc06e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-1col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-1col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-1col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..f5c13ab550d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-1col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-2col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-2col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..4f354e93527 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-2col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-2col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-2col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..6eded69a4a3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-2col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-3col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-3col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..5f4b53c46b7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-3col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-3col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-3col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..4c2f6c8e632 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-3col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-4col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-4col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..052d224df11 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-4col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-4col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-4col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..1826531268a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/bg-red-4col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/block-flow-direction-025-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/block-flow-direction-025-exp-res.png Binary files differnew file mode 100644 index 00000000000..851eeea0398 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/block-flow-direction-025-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/block-flow-direction-066-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/block-flow-direction-066-exp-res.png Binary files differnew file mode 100644 index 00000000000..d325b15a4cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/block-flow-direction-066-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-horiz-line-220x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-horiz-line-220x1.png Binary files differnew file mode 100644 index 00000000000..3898d5a2d9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-horiz-line-220x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-horiz-line-320x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-horiz-line-320x1.png Binary files differnew file mode 100644 index 00000000000..7d9151c848a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-horiz-line-320x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-vert-line-1x220.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-vert-line-1x220.png Binary files differnew file mode 100644 index 00000000000..07b0239fc52 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-vert-line-1x220.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-vert-line-1x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-vert-line-1x320.png Binary files differnew file mode 100644 index 00000000000..6049e271506 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-vert-line-1x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-yellow-206w-165h.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-yellow-206w-165h.png Binary files differnew file mode 100644 index 00000000000..47ceb84d3fb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue-yellow-206w-165h.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue1x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue1x1.png Binary files differnew file mode 100644 index 00000000000..667b6558892 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue1x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue20x20.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue20x20.png Binary files differnew file mode 100644 index 00000000000..e0af5553303 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/blue20x20.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-002.png Binary files differnew file mode 100644 index 00000000000..7fc9f14ed6e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-004.png Binary files differnew file mode 100644 index 00000000000..2d1355e3bdb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-006.png Binary files differnew file mode 100644 index 00000000000..5145c22c485 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/clearance-calculation-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html new file mode 100644 index 00000000000..5af681f14eb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html new file mode 100644 index 00000000000..d5d94382ea2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html new file mode 100644 index 00000000000..887565e66d4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html new file mode 100644 index 00000000000..c38de525145 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html new file mode 100644 index 00000000000..66be0f4eba9 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html new file mode 100644 index 00000000000..eff5f71a450 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html new file mode 100644 index 00000000000..2da3bf3dd53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html new file mode 100644 index 00000000000..572557eb339 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html new file mode 100644 index 00000000000..8537a945fbc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html new file mode 100644 index 00000000000..95047f16a92 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html new file mode 100644 index 00000000000..4f1aa674eba --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html new file mode 100644 index 00000000000..1f35ff47dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html new file mode 100644 index 00000000000..3f4f1c935ca --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html new file mode 100644 index 00000000000..1c0bb78e74d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html new file mode 100644 index 00000000000..c193112b600 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html new file mode 100644 index 00000000000..204a08ef3df --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html new file mode 100644 index 00000000000..a71927cf3a8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html new file mode 100644 index 00000000000..e1054bc2a96 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html new file mode 100644 index 00000000000..39f297f1b9c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html new file mode 100644 index 00000000000..26e0ec67fd1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html new file mode 100644 index 00000000000..a0b80d99e3a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html new file mode 100644 index 00000000000..62d74144fee --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html new file mode 100644 index 00000000000..21efbe52bc5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html new file mode 100644 index 00000000000..748f325d8d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-002.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-002.html new file mode 100644 index 00000000000..044da84cff8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-002.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-004.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-004.html new file mode 100644 index 00000000000..68fca9ad435 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-004.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-006.html new file mode 100644 index 00000000000..38a614d2346 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-008.html new file mode 100644 index 00000000000..048ad073944 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/embedded-doc-for-background-size-root-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-slr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-slr.png Binary files differnew file mode 100644 index 00000000000..ac9b2a30725 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-slr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-srl.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-srl.png Binary files differnew file mode 100644 index 00000000000..da9d401f917 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-srl.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-vlr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-vlr.png Binary files differnew file mode 100644 index 00000000000..5abc22e9ee7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/form-controls-vlr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..6e30eba507a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..30668751dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-center-200x300.png Binary files differnew file mode 100644 index 00000000000..6025c4e85be --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..b2645c0fe69 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..86fd7e5671d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-top-200x300.png Binary files differnew file mode 100644 index 00000000000..43e739acbc2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/left-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/margin-collapse-2em-space-wm-vert.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/margin-collapse-2em-space-wm-vert.png Binary files differnew file mode 100644 index 00000000000..8a2fa55efdf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/margin-collapse-2em-space-wm-vert.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/mplus-1p-regular.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/mplus-1p-regular.woff Binary files differnew file mode 100644 index 00000000000..42cfff628b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/mplus-1p-regular.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/opaque-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/opaque-square-40x160.png Binary files differnew file mode 100644 index 00000000000..11636f5f771 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/opaque-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p1.png Binary files differnew file mode 100644 index 00000000000..f5adb11b4b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p2.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p2.png Binary files differnew file mode 100644 index 00000000000..7ecf84bae34 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p2.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p3.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p3.png Binary files differnew file mode 100644 index 00000000000..d7c58d62243 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p3.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p4.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p4.png Binary files differnew file mode 100644 index 00000000000..04dc0fe2e9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/page-flow-direction-002p4.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-abs-pos-non-replaced.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-abs-pos-non-replaced.png Binary files differnew file mode 100644 index 00000000000..15fd6065ef6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-abs-pos-non-replaced.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-002.png Binary files differnew file mode 100644 index 00000000000..a0db6909418 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-004.png Binary files differnew file mode 100644 index 00000000000..ec130f10f46 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-006.png Binary files differnew file mode 100644 index 00000000000..981741b7e53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-008.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-008.png Binary files differnew file mode 100644 index 00000000000..9b2a0610e4e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-008.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-010.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-010.png Binary files differnew file mode 100644 index 00000000000..a2d66146186 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-010.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-012.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-012.png Binary files differnew file mode 100644 index 00000000000..23b1beb9cd4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-012.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-014.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-014.png Binary files differnew file mode 100644 index 00000000000..64e081c72f1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-014.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-016.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-016.png Binary files differnew file mode 100644 index 00000000000..952e0089b8f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-016.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-018.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-018.png Binary files differnew file mode 100644 index 00000000000..22f51030c36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-bg-pos-vrl-018.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-box-offsets-rel-pos.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-box-offsets-rel-pos.png Binary files differnew file mode 100644 index 00000000000..e81c0ae4cf5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-box-offsets-rel-pos.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-clearance-calculations.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-clearance-calculations.png Binary files differnew file mode 100644 index 00000000000..ec502d3532a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-clearance-calculations.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-first-page-vlr-003.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-first-page-vlr-003.png Binary files differnew file mode 100644 index 00000000000..f8c677b8e05 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-first-page-vlr-003.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-first-page-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-first-page-vrl-002.png Binary files differnew file mode 100644 index 00000000000..48555d3acc8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-first-page-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-float-contiguous.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-float-contiguous.png Binary files differnew file mode 100644 index 00000000000..8d35d98e9c4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-float-contiguous.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-horiz-rule.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-horiz-rule.png Binary files differnew file mode 100644 index 00000000000..f9cc0b1eeff --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pass-cdts-horiz-rule.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..b14c75ea2c0 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..80c7035f1fc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..a98636ddef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..fd1f7a7b50a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..431b99f933a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..63248d4dd1f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..6fba8358309 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-gr-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..47ee743880e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..6b19ec9a4e7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..e28bdba9dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..797e289e059 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..97aac24065c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..177743874e2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/pattern-rr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..38904b25087 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..a3c6bb63b64 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-center-200x300.png Binary files differnew file mode 100644 index 00000000000..b9987017a06 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..8f54bf5a894 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..f76b2083118 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-top-200x300.png Binary files differnew file mode 100644 index 00000000000..59467ec3f18 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-top-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-top-green-200x300.png Binary files differnew file mode 100644 index 00000000000..313c37f4dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/right-top-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/sileot-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/sileot-webfont.woff Binary files differnew file mode 100644 index 00000000000..81547578d36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/sileot-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-aqua.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-aqua.png Binary files differnew file mode 100644 index 00000000000..dd47e286650 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-aqua.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-fuchsia.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-fuchsia.png Binary files differnew file mode 100644 index 00000000000..3f8f8b4ea37 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-fuchsia.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-olive.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-olive.png Binary files differnew file mode 100644 index 00000000000..8fff8179ef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/swatch-olive.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/tcu-font.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/tcu-font.woff Binary files differnew file mode 100644 index 00000000000..c880aaab5cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/tcu-font.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-mixed-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-mixed-001.png Binary files differnew file mode 100644 index 00000000000..2bd5927f901 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-mixed-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-sideways-left-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-sideways-left-001.png Binary files differnew file mode 100644 index 00000000000..51921a7e91a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-sideways-left-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-sideways-right-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-sideways-right-001.png Binary files differnew file mode 100644 index 00000000000..f4bfd48549f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-sideways-right-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-upright-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-upright-001.png Binary files differnew file mode 100644 index 00000000000..d7df4098ed2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation-upright-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation.js b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation.js new file mode 100644 index 00000000000..6e007cea82e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/text-orientation.js @@ -0,0 +1,217 @@ +(function () { + var log = function () {}; + + function OrientationTester(container, orientation) { + this.container = container; + this.setOrientation(orientation); + } + extend(OrientationTester.prototype, { + setOrientation: function (orientation) { + this.orientation = orientation; + }, + measure: function (results) { + this.results = results; + this._measureNode(this.container); + }, + _measureNode: function (node, block) { + switch (node.nodeType) { + case Node.ELEMENT_NODE: + var blockOverride = node.dataset.block; + if (blockOverride) + block = blockOverride; + var nodes = node.childNodes; + for (var i = 0; i < nodes.length; i++) + this._measureNode(nodes[i], block); + return; + case Node.TEXT_NODE: + break; + default: + return; + } + + if (this.orientation == "R") { + var advanceExpected = 8; + var advanceFailed = 4; + } else { + advanceExpected = 4; + advanceFailed = 8; + } + + var range = document.createRange(); + var text = node.textContent; + for (var ich = 0; ich < text.length; ich++) { + var code = text.charCodeAt(ich); + if (code == 10 || code == 13) + continue; + range.setStart(node, ich); + if (code >= 0xD800 && code <= 0xDBFF) { + var next = text.charCodeAt(ich+1); + if (next >= 0xDC00 && next <= 0xDFFF) { + ich++; + code = ((code & 0x3FF) << 10) + (next & 0x3FF) + 0x10000; + } + } + range.setEnd(node, ich + 1); + rect = range.getBoundingClientRect(); + if (rect.width == 16) { + if (rect.height == advanceExpected) { + this.results.passCount++; + continue; + } + //log("U+" + stringFromUnicode(code) + " " + rect.width + "x" + rect.height); + if (rect.height == advanceFailed) { + this.results.failed(this, code, block); + continue; + } + } + this.results.inconclusive(this, code, block, rect); + } + }}); + + function Results(name) { + var block = document.createElement("details"); + this.summary = appendChildElement(block, "summary"); + this.summary.textContent = name; + var typeList = appendChildElement(block, "ul"); + this.failList = appendChildElement(appendChildElement(typeList, "li", "Failures"), "ol"); + this.inconclusiveList = appendChildElement(appendChildElement(typeList, "li", "Inconclusives"), "ol"); + details.appendChild(block); + this.passCount = 0; + this.failCount = 0; + this.inconclusiveCount = 0; + } + extend(Results.prototype, { + failed: function (test, code, block) { + this.failCount++; + this.append(this.failList, test, code, block); + }, + inconclusive: function (test, code, block, rect) { + this.inconclusiveCount++; + this.append(this.inconclusiveList, test, code, block, " but inconclusive (rendered as " + rect.width + "x" + rect.height + ")"); + }, + append: function (list, test, code, block, message) { + var text = stringFromUnicode(code) + " should be " + test.orientation; + if (block) + text = block + ": " + text; + if (message) + text += message; + appendChildElement(list, "li", text); + }, + done: function (test) { + this.summary.textContent += " (" + this.passCount + " passes, " + + this.failCount + " fails, " + + this.inconclusiveCount + " inconclusives)"; + assert_equals(this.failCount, 0, "Fail count"); + assert_greater_than(this.passCount, 0, "Pass count"); + test.done(); + }}); + + function Runner() { + var nodes = document.querySelectorAll("div[data-vo]"); + this.testers = []; + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var vo = node.dataset.vo; + var tester = new OrientationTester(node, vo); + tester.test = async_test("Default orientation for vo=" + vo); + this.testers.push(tester); + } + this.testU = async_test("Orientation=Upright"); + this.testR = async_test("Orientation=Rotated"); + } + extend(Runner.prototype, { + run: function () { + log("Started"); + var start = new Date; + + for (var i = 0; i < this.testers.length; i++) { + var tester = this.testers[i]; + var test = tester.test; + test.step(function () { + var results = new Results(test.name); + tester.measure(results); + results.done(test); + }); + } + this.runOrientation(this.testU, "U"); + this.runOrientation(this.testR, "R"); + + log("Elapsed " + (new Date() - start)); + done(); + }, + runOrientation: function (test, orientation) { + container.classList.add(orientation); + var results = new Results(test.name); + var me = this; + test.step(function () { + for (var i = 0; i < me.testers.length; i++) { + var tester = me.testers[i]; + tester.setOrientation(orientation); + tester.measure(results); + } + results.done(test); + }) + container.classList.remove(orientation); + }}); + + setup({explicit_done:true, explicit_timeout:true}); + var runner = new Runner(); + window.onload = function () { + if (window.location.search == "?wait") { + log("Sleeping 5 secs for debug purpose"); + return setTimeout(run, 5000); + } + run(); + } + + function run() { + onFontReady("16px orientation", function () { runner.run(); }); + } + + function onFontReady(font, func) { + log("Waiting test fonts to load"); + if (document.fonts) { + if ('load' in document.fonts) + return document.fonts.load(font).then(func); + if ('ready' in document.fonts) + return document.fonts.ready.then(func); + } + document.offsetTop; // last resort to load @font-face + func(); + } + + function arrayFromRangesByValue(dict) { + var array = []; + for (var value in dict) { + var ranges = dict[value]; + for (var i = 0; i < ranges.length; i += 2) { + var to = ranges[i+1]; + for (var code = ranges[i]; code <= to; code++) + array[code] = value; + } + } + return array; + }; + + function stringFromUnicode(code) { + var hex = code.toString(16).toUpperCase(); + if (hex.length < 4) { + hex = "0000" + hex; + hex = hex.substr(hex.length - 4); + } + return hex + ' "' + String.fromCharCode(code) + '"'; + } + + function appendChildElement(parent, tag, text) { + var node = document.createElement(tag); + if (text) + node.textContent = text; + parent.appendChild(node); + return node; + } + + function extend(target, dict) { + for (var key in dict) + target[key] = dict[key]; + } +})(); diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/vertical-form.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/vertical-form.png Binary files differnew file mode 100644 index 00000000000..53a3af92cd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/vertical-form.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-59x59.png Binary files differnew file mode 100644 index 00000000000..50816d38f6b --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-horiz-redline-bottom-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-horiz-redline-bottom-59x59.png Binary files differnew file mode 100644 index 00000000000..d6139238de3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-horiz-redline-bottom-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-center-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-center-59x59.png Binary files differnew file mode 100644 index 00000000000..c352b109548 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-center-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-left-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-left-59x59.png Binary files differnew file mode 100644 index 00000000000..8baf6f60404 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-left-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-right-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-right-59x59.png Binary files differnew file mode 100644 index 00000000000..7e881312b35 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reference/support/yellow-square-vert-redline-right-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest-toc.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest-toc.xht index 94f1203a293..165a4ca7950 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest-toc.xht +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest-toc.xht @@ -2392,6 +2392,14 @@ <td rowspan="1"></td> </tr> </tbody> + <tbody id="flexbox_align-items-stretch-writing-modes" class=""> + <tr> + <td rowspan="1" title="Flexbox align-items: stretch with writing-mode vertical-lr and vertical-rl"> + <a href="flexbox_align-items-stretch-writing-modes.xht">flexbox_align-items-stretch-writing-modes</a></td> + <td><a href="reference/flexbox_align-items-stretch-writing-modes-ref.xht">=</a> </td> + <td rowspan="1"></td> + </tr> + </tbody> <tbody id="flexbox_align-self-auto" class=""> <tr> <td rowspan="1" title="flexbox | align-self: auto"> diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest.list b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest.list index 1996e450700..a598849ed18 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest.list +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/reftest.list @@ -295,6 +295,7 @@ flexbox_align-items-flexstart.xht == reference/flexbox_align-items-flexstart-ref flexbox_align-items-flexstart-2.xht == reference/flexbox_align-items-flexstart-2-ref.xht flexbox_align-items-stretch.xht == reference/flexbox_align-items-stretch-ref.xht flexbox_align-items-stretch-2.xht == reference/flexbox_align-items-stretch-2-ref.xht +flexbox_align-items-stretch-writing-modes.xht == reference/flexbox_align-items-stretch-writing-modes-ref.xht flexbox_align-self-auto.xht == reference/flexbox_align-self-auto-ref.xht flexbox_align-self-baseline.xht == reference/flexbox_align-self-baseline-ref.xht flexbox_align-self-center.xht == reference/flexbox_align-self-center-ref.xht diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/100x100-lime.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/100x100-lime.png Binary files differnew file mode 100644 index 00000000000..1b947700808 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/100x100-lime.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/100x100-red.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/100x100-red.png Binary files differnew file mode 100644 index 00000000000..57bf3ddc521 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/100x100-red.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/DejaVuSerif-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/DejaVuSerif-webfont.woff Binary files differnew file mode 100644 index 00000000000..4583cc675d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/DejaVuSerif-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/CSSHWOrientationTest.otf b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/CSSHWOrientationTest.otf Binary files differnew file mode 100644 index 00000000000..84ad57bef5a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/CSSHWOrientationTest.otf diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/LICENSE b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/LICENSE new file mode 100644 index 00000000000..ac5f0b04320 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/LICENSE @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/README.md b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/README.md new file mode 100644 index 00000000000..686cb0c4279 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/adobe-fonts/README.md @@ -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. diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-1col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-1col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..7ca197bc06e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-1col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-1col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-1col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..f5c13ab550d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-1col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-2col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-2col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..4f354e93527 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-2col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-2col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-2col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..6eded69a4a3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-2col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-3col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-3col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..5f4b53c46b7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-3col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-3col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-3col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..4c2f6c8e632 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-3col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-4col-2row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-4col-2row-320x320.png Binary files differnew file mode 100644 index 00000000000..052d224df11 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-4col-2row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-4col-3row-320x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-4col-3row-320x320.png Binary files differnew file mode 100644 index 00000000000..1826531268a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/bg-red-4col-3row-320x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/block-flow-direction-025-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/block-flow-direction-025-exp-res.png Binary files differnew file mode 100644 index 00000000000..851eeea0398 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/block-flow-direction-025-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/block-flow-direction-066-exp-res.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/block-flow-direction-066-exp-res.png Binary files differnew file mode 100644 index 00000000000..d325b15a4cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/block-flow-direction-066-exp-res.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-horiz-line-220x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-horiz-line-220x1.png Binary files differnew file mode 100644 index 00000000000..3898d5a2d9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-horiz-line-220x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-horiz-line-320x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-horiz-line-320x1.png Binary files differnew file mode 100644 index 00000000000..7d9151c848a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-horiz-line-320x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-vert-line-1x220.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-vert-line-1x220.png Binary files differnew file mode 100644 index 00000000000..07b0239fc52 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-vert-line-1x220.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-vert-line-1x320.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-vert-line-1x320.png Binary files differnew file mode 100644 index 00000000000..6049e271506 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-vert-line-1x320.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-yellow-206w-165h.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-yellow-206w-165h.png Binary files differnew file mode 100644 index 00000000000..47ceb84d3fb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue-yellow-206w-165h.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue1x1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue1x1.png Binary files differnew file mode 100644 index 00000000000..667b6558892 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue1x1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue20x20.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue20x20.png Binary files differnew file mode 100644 index 00000000000..e0af5553303 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/blue20x20.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-002.png Binary files differnew file mode 100644 index 00000000000..7fc9f14ed6e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-004.png Binary files differnew file mode 100644 index 00000000000..2d1355e3bdb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-006.png Binary files differnew file mode 100644 index 00000000000..5145c22c485 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/clearance-calculation-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html new file mode 100644 index 00000000000..5af681f14eb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html new file mode 100644 index 00000000000..d5d94382ea2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html new file mode 100644 index 00000000000..887565e66d4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html new file mode 100644 index 00000000000..c38de525145 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html new file mode 100644 index 00000000000..66be0f4eba9 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html new file mode 100644 index 00000000000..eff5f71a450 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html new file mode 100644 index 00000000000..2da3bf3dd53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html new file mode 100644 index 00000000000..572557eb339 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html new file mode 100644 index 00000000000..8537a945fbc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html new file mode 100644 index 00000000000..95047f16a92 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html new file mode 100644 index 00000000000..4f1aa674eba --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html new file mode 100644 index 00000000000..1f35ff47dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html new file mode 100644 index 00000000000..3f4f1c935ca --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html new file mode 100644 index 00000000000..1c0bb78e74d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html new file mode 100644 index 00000000000..c193112b600 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html new file mode 100644 index 00000000000..204a08ef3df --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html new file mode 100644 index 00000000000..a71927cf3a8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html new file mode 100644 index 00000000000..e1054bc2a96 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html new file mode 100644 index 00000000000..39f297f1b9c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html new file mode 100644 index 00000000000..26e0ec67fd1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html new file mode 100644 index 00000000000..a0b80d99e3a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html new file mode 100644 index 00000000000..62d74144fee --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html new file mode 100644 index 00000000000..21efbe52bc5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html new file mode 100644 index 00000000000..748f325d8d7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-002.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-002.html new file mode 100644 index 00000000000..044da84cff8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-002.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-004.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-004.html new file mode 100644 index 00000000000..68fca9ad435 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-004.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-006.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-006.html new file mode 100644 index 00000000000..38a614d2346 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-006.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-008.html b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-008.html new file mode 100644 index 00000000000..048ad073944 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/embedded-doc-for-background-size-root-vrl-008.html @@ -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>
\ No newline at end of file diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-slr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-slr.png Binary files differnew file mode 100644 index 00000000000..ac9b2a30725 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-slr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-srl.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-srl.png Binary files differnew file mode 100644 index 00000000000..da9d401f917 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-srl.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-vlr.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-vlr.png Binary files differnew file mode 100644 index 00000000000..5abc22e9ee7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/form-controls-vlr.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..6e30eba507a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..30668751dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-center-200x300.png Binary files differnew file mode 100644 index 00000000000..6025c4e85be --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..b2645c0fe69 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..86fd7e5671d --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-top-200x300.png Binary files differnew file mode 100644 index 00000000000..43e739acbc2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/left-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/margin-collapse-2em-space-wm-vert.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/margin-collapse-2em-space-wm-vert.png Binary files differnew file mode 100644 index 00000000000..8a2fa55efdf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/margin-collapse-2em-space-wm-vert.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/mplus-1p-regular.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/mplus-1p-regular.woff Binary files differnew file mode 100644 index 00000000000..42cfff628b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/mplus-1p-regular.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/opaque-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/opaque-square-40x160.png Binary files differnew file mode 100644 index 00000000000..11636f5f771 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/opaque-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p1.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p1.png Binary files differnew file mode 100644 index 00000000000..f5adb11b4b4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p1.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p2.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p2.png Binary files differnew file mode 100644 index 00000000000..7ecf84bae34 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p2.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p3.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p3.png Binary files differnew file mode 100644 index 00000000000..d7c58d62243 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p3.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p4.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p4.png Binary files differnew file mode 100644 index 00000000000..04dc0fe2e9e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/page-flow-direction-002p4.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-abs-pos-non-replaced.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-abs-pos-non-replaced.png Binary files differnew file mode 100644 index 00000000000..15fd6065ef6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-abs-pos-non-replaced.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-002.png Binary files differnew file mode 100644 index 00000000000..a0db6909418 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-004.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-004.png Binary files differnew file mode 100644 index 00000000000..ec130f10f46 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-004.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-006.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-006.png Binary files differnew file mode 100644 index 00000000000..981741b7e53 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-006.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-008.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-008.png Binary files differnew file mode 100644 index 00000000000..9b2a0610e4e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-008.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-010.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-010.png Binary files differnew file mode 100644 index 00000000000..a2d66146186 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-010.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-012.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-012.png Binary files differnew file mode 100644 index 00000000000..23b1beb9cd4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-012.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-014.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-014.png Binary files differnew file mode 100644 index 00000000000..64e081c72f1 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-014.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-016.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-016.png Binary files differnew file mode 100644 index 00000000000..952e0089b8f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-016.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-018.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-018.png Binary files differnew file mode 100644 index 00000000000..22f51030c36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-bg-pos-vrl-018.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-box-offsets-rel-pos.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-box-offsets-rel-pos.png Binary files differnew file mode 100644 index 00000000000..e81c0ae4cf5 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-box-offsets-rel-pos.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-clearance-calculations.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-clearance-calculations.png Binary files differnew file mode 100644 index 00000000000..ec502d3532a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-clearance-calculations.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-first-page-vlr-003.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-first-page-vlr-003.png Binary files differnew file mode 100644 index 00000000000..f8c677b8e05 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-first-page-vlr-003.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-first-page-vrl-002.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-first-page-vrl-002.png Binary files differnew file mode 100644 index 00000000000..48555d3acc8 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-first-page-vrl-002.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-float-contiguous.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-float-contiguous.png Binary files differnew file mode 100644 index 00000000000..8d35d98e9c4 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-float-contiguous.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-horiz-rule.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-horiz-rule.png Binary files differnew file mode 100644 index 00000000000..f9cc0b1eeff --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pass-cdts-horiz-rule.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..b14c75ea2c0 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..80c7035f1fc --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..a98636ddef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..fd1f7a7b50a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..431b99f933a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..63248d4dd1f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..6fba8358309 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-gr-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-gg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-gg-100x100.png Binary files differnew file mode 100644 index 00000000000..47ee743880e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-gg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..6b19ec9a4e7 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..e28bdba9dd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-rr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-rr-100x100.png Binary files differnew file mode 100644 index 00000000000..797e289e059 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rg-rr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rr-gr-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rr-gr-100x100.png Binary files differnew file mode 100644 index 00000000000..97aac24065c --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rr-gr-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rr-rg-100x100.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rr-rg-100x100.png Binary files differnew file mode 100644 index 00000000000..177743874e2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/pattern-rr-rg-100x100.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-bottom-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-bottom-200x300.png Binary files differnew file mode 100644 index 00000000000..38904b25087 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-bottom-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-bottom-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-bottom-green-200x300.png Binary files differnew file mode 100644 index 00000000000..a3c6bb63b64 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-bottom-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-center-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-center-200x300.png Binary files differnew file mode 100644 index 00000000000..b9987017a06 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-center-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-center-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-center-green-200x300.png Binary files differnew file mode 100644 index 00000000000..8f54bf5a894 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-center-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-side-filled-square-40x160.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-side-filled-square-40x160.png Binary files differnew file mode 100644 index 00000000000..f76b2083118 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-side-filled-square-40x160.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-top-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-top-200x300.png Binary files differnew file mode 100644 index 00000000000..59467ec3f18 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-top-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-top-green-200x300.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-top-green-200x300.png Binary files differnew file mode 100644 index 00000000000..313c37f4dfb --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/right-top-green-200x300.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/sileot-webfont.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/sileot-webfont.woff Binary files differnew file mode 100644 index 00000000000..81547578d36 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/sileot-webfont.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-aqua.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-aqua.png Binary files differnew file mode 100644 index 00000000000..dd47e286650 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-aqua.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-fuchsia.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-fuchsia.png Binary files differnew file mode 100644 index 00000000000..3f8f8b4ea37 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-fuchsia.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-olive.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-olive.png Binary files differnew file mode 100644 index 00000000000..8fff8179ef3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/swatch-olive.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/tcu-font.woff b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/tcu-font.woff Binary files differnew file mode 100644 index 00000000000..c880aaab5cf --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/tcu-font.woff diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-mixed-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-mixed-001.png Binary files differnew file mode 100644 index 00000000000..2bd5927f901 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-mixed-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-sideways-left-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-sideways-left-001.png Binary files differnew file mode 100644 index 00000000000..51921a7e91a --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-sideways-left-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-sideways-right-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-sideways-right-001.png Binary files differnew file mode 100644 index 00000000000..f4bfd48549f --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-sideways-right-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-upright-001.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-upright-001.png Binary files differnew file mode 100644 index 00000000000..d7df4098ed2 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation-upright-001.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation.js b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation.js new file mode 100644 index 00000000000..6e007cea82e --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/text-orientation.js @@ -0,0 +1,217 @@ +(function () { + var log = function () {}; + + function OrientationTester(container, orientation) { + this.container = container; + this.setOrientation(orientation); + } + extend(OrientationTester.prototype, { + setOrientation: function (orientation) { + this.orientation = orientation; + }, + measure: function (results) { + this.results = results; + this._measureNode(this.container); + }, + _measureNode: function (node, block) { + switch (node.nodeType) { + case Node.ELEMENT_NODE: + var blockOverride = node.dataset.block; + if (blockOverride) + block = blockOverride; + var nodes = node.childNodes; + for (var i = 0; i < nodes.length; i++) + this._measureNode(nodes[i], block); + return; + case Node.TEXT_NODE: + break; + default: + return; + } + + if (this.orientation == "R") { + var advanceExpected = 8; + var advanceFailed = 4; + } else { + advanceExpected = 4; + advanceFailed = 8; + } + + var range = document.createRange(); + var text = node.textContent; + for (var ich = 0; ich < text.length; ich++) { + var code = text.charCodeAt(ich); + if (code == 10 || code == 13) + continue; + range.setStart(node, ich); + if (code >= 0xD800 && code <= 0xDBFF) { + var next = text.charCodeAt(ich+1); + if (next >= 0xDC00 && next <= 0xDFFF) { + ich++; + code = ((code & 0x3FF) << 10) + (next & 0x3FF) + 0x10000; + } + } + range.setEnd(node, ich + 1); + rect = range.getBoundingClientRect(); + if (rect.width == 16) { + if (rect.height == advanceExpected) { + this.results.passCount++; + continue; + } + //log("U+" + stringFromUnicode(code) + " " + rect.width + "x" + rect.height); + if (rect.height == advanceFailed) { + this.results.failed(this, code, block); + continue; + } + } + this.results.inconclusive(this, code, block, rect); + } + }}); + + function Results(name) { + var block = document.createElement("details"); + this.summary = appendChildElement(block, "summary"); + this.summary.textContent = name; + var typeList = appendChildElement(block, "ul"); + this.failList = appendChildElement(appendChildElement(typeList, "li", "Failures"), "ol"); + this.inconclusiveList = appendChildElement(appendChildElement(typeList, "li", "Inconclusives"), "ol"); + details.appendChild(block); + this.passCount = 0; + this.failCount = 0; + this.inconclusiveCount = 0; + } + extend(Results.prototype, { + failed: function (test, code, block) { + this.failCount++; + this.append(this.failList, test, code, block); + }, + inconclusive: function (test, code, block, rect) { + this.inconclusiveCount++; + this.append(this.inconclusiveList, test, code, block, " but inconclusive (rendered as " + rect.width + "x" + rect.height + ")"); + }, + append: function (list, test, code, block, message) { + var text = stringFromUnicode(code) + " should be " + test.orientation; + if (block) + text = block + ": " + text; + if (message) + text += message; + appendChildElement(list, "li", text); + }, + done: function (test) { + this.summary.textContent += " (" + this.passCount + " passes, " + + this.failCount + " fails, " + + this.inconclusiveCount + " inconclusives)"; + assert_equals(this.failCount, 0, "Fail count"); + assert_greater_than(this.passCount, 0, "Pass count"); + test.done(); + }}); + + function Runner() { + var nodes = document.querySelectorAll("div[data-vo]"); + this.testers = []; + for (var i = 0; i < nodes.length; i++) { + var node = nodes[i]; + var vo = node.dataset.vo; + var tester = new OrientationTester(node, vo); + tester.test = async_test("Default orientation for vo=" + vo); + this.testers.push(tester); + } + this.testU = async_test("Orientation=Upright"); + this.testR = async_test("Orientation=Rotated"); + } + extend(Runner.prototype, { + run: function () { + log("Started"); + var start = new Date; + + for (var i = 0; i < this.testers.length; i++) { + var tester = this.testers[i]; + var test = tester.test; + test.step(function () { + var results = new Results(test.name); + tester.measure(results); + results.done(test); + }); + } + this.runOrientation(this.testU, "U"); + this.runOrientation(this.testR, "R"); + + log("Elapsed " + (new Date() - start)); + done(); + }, + runOrientation: function (test, orientation) { + container.classList.add(orientation); + var results = new Results(test.name); + var me = this; + test.step(function () { + for (var i = 0; i < me.testers.length; i++) { + var tester = me.testers[i]; + tester.setOrientation(orientation); + tester.measure(results); + } + results.done(test); + }) + container.classList.remove(orientation); + }}); + + setup({explicit_done:true, explicit_timeout:true}); + var runner = new Runner(); + window.onload = function () { + if (window.location.search == "?wait") { + log("Sleeping 5 secs for debug purpose"); + return setTimeout(run, 5000); + } + run(); + } + + function run() { + onFontReady("16px orientation", function () { runner.run(); }); + } + + function onFontReady(font, func) { + log("Waiting test fonts to load"); + if (document.fonts) { + if ('load' in document.fonts) + return document.fonts.load(font).then(func); + if ('ready' in document.fonts) + return document.fonts.ready.then(func); + } + document.offsetTop; // last resort to load @font-face + func(); + } + + function arrayFromRangesByValue(dict) { + var array = []; + for (var value in dict) { + var ranges = dict[value]; + for (var i = 0; i < ranges.length; i += 2) { + var to = ranges[i+1]; + for (var code = ranges[i]; code <= to; code++) + array[code] = value; + } + } + return array; + }; + + function stringFromUnicode(code) { + var hex = code.toString(16).toUpperCase(); + if (hex.length < 4) { + hex = "0000" + hex; + hex = hex.substr(hex.length - 4); + } + return hex + ' "' + String.fromCharCode(code) + '"'; + } + + function appendChildElement(parent, tag, text) { + var node = document.createElement(tag); + if (text) + node.textContent = text; + parent.appendChild(node); + return node; + } + + function extend(target, dict) { + for (var key in dict) + target[key] = dict[key]; + } +})(); diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/vertical-form.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/vertical-form.png Binary files differnew file mode 100644 index 00000000000..53a3af92cd6 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/vertical-form.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-59x59.png Binary files differnew file mode 100644 index 00000000000..50816d38f6b --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-horiz-redline-bottom-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-horiz-redline-bottom-59x59.png Binary files differnew file mode 100644 index 00000000000..d6139238de3 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-horiz-redline-bottom-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-center-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-center-59x59.png Binary files differnew file mode 100644 index 00000000000..c352b109548 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-center-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-left-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-left-59x59.png Binary files differnew file mode 100644 index 00000000000..8baf6f60404 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-left-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-right-59x59.png b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-right-59x59.png Binary files differnew file mode 100644 index 00000000000..7e881312b35 --- /dev/null +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/support/yellow-square-vert-redline-right-59x59.png diff --git a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/toc.xht b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/toc.xht index d96e60ebbe9..08e2d2e5fa4 100644 --- a/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/toc.xht +++ b/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/toc.xht @@ -57,7 +57,7 @@ <tbody id="s8"> <tr><th><a href="chapter-8.xht">Chapter 8 - Alignment</a></th> - <td>(161 Tests)</td></tr> + <td>(162 Tests)</td></tr> </tbody> <tbody id="s9"> <tr><th><a href="chapter-9.xht">Chapter 9 - |