mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1148294 part 2: Add one reftest for writing-mode & direction properties' influence on flex axes.
This commit is contained in:
parent
838e6f3008
commit
dc8234e42d
@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Reftest Reference</title>
|
||||
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.flexContainer {
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
border: 1px solid gray;
|
||||
margin-bottom: 5px;
|
||||
/* Testcase has direction: ltr; */
|
||||
/* Testcase has writing-mode: horizontal-tb; */
|
||||
}
|
||||
.flexContainer > * {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
float: left;
|
||||
}
|
||||
.item1 {
|
||||
/* Note: flex items are ordered as "CMYK": cyan, magenta, yellow, black */
|
||||
background: cyan;
|
||||
}
|
||||
.item2 {
|
||||
background: magenta;
|
||||
}
|
||||
.item3 {
|
||||
background: yellow;
|
||||
}
|
||||
.item4 {
|
||||
background: black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer"><!-- row wrap -->
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer"><!-- row wrap-reverse -->
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
</div>
|
||||
<div class="flexContainer"><!-- row-reverse wrap -->
|
||||
<div class="item2"></div><div class="item1"></div>
|
||||
<div class="item4"></div><div class="item3"></div>
|
||||
</div>
|
||||
<div class="flexContainer"><!-- row-reverse wrap-reverse -->
|
||||
<div class="item4"></div><div class="item3"></div>
|
||||
<div class="item2"></div><div class="item1"></div>
|
||||
</div>
|
||||
|
||||
<div class="flexContainer"><!-- column wrap -->
|
||||
<div class="item1"></div><div class="item3"></div>
|
||||
<div class="item2"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer"><!-- column wrap-reverse -->
|
||||
<div class="item3"></div><div class="item1"></div>
|
||||
<div class="item4"></div><div class="item2"></div>
|
||||
</div>
|
||||
<div class="flexContainer"><!-- column-reverse wrap -->
|
||||
<div class="item2"></div><div class="item4"></div>
|
||||
<div class="item1"></div><div class="item3"></div>
|
||||
</div>
|
||||
<div class="flexContainer"><!-- column-reverse wrap-reverse -->
|
||||
<div class="item4"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item1"></div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Test: Try various flex-flow values, with 'direction: ltr' and 'writing-mode: horizontal-tb'</title>
|
||||
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||
<link rel="help" href="http://dev.w3.org/csswg/css-flexbox-1/#propdef-flex-direction">
|
||||
<link rel="match" href="flexbox-writing-mode-001-ref.html">
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
.flexContainer {
|
||||
display: flex;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
border: 1px solid gray;
|
||||
margin-bottom: 5px;
|
||||
direction: ltr;
|
||||
writing-mode: horizontal-tb;
|
||||
}
|
||||
.flexContainer > * {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
.item1 {
|
||||
/* Note: flex items are ordered as "CMYK": cyan, magenta, yellow, black */
|
||||
background: cyan;
|
||||
}
|
||||
.item2 {
|
||||
background: magenta;
|
||||
}
|
||||
.item3 {
|
||||
background: yellow;
|
||||
}
|
||||
.item4 {
|
||||
background: black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="flexContainer" style="flex-flow: row wrap">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer" style="flex-flow: row wrap-reverse">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer" style="flex-flow: row-reverse wrap">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer" style="flex-flow: row-reverse wrap-reverse">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
|
||||
<div class="flexContainer" style="flex-flow: column wrap">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer" style="flex-flow: column wrap-reverse">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer" style="flex-flow: column-reverse wrap">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
<div class="flexContainer" style="flex-flow: column-reverse wrap-reverse">
|
||||
<div class="item1"></div><div class="item2"></div>
|
||||
<div class="item3"></div><div class="item4"></div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -182,3 +182,6 @@ skip-if(Mulet) == flexbox-overflow-vert-001.html flexbox-overflow-vert-001-ref.h
|
||||
== flexbox-with-pseudo-elements-001.html flexbox-with-pseudo-elements-001-ref.html
|
||||
== flexbox-with-pseudo-elements-002.html flexbox-with-pseudo-elements-002-ref.html
|
||||
== flexbox-with-pseudo-elements-003.html flexbox-with-pseudo-elements-003-ref.html
|
||||
|
||||
# Tests for combined influence of 'writing-mode' & 'direction' on flex axes
|
||||
test-pref(layout.css.vertical-text.enabled,true) == flexbox-writing-mode-001.html flexbox-writing-mode-001-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user