diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-flexbox/interactive | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-flexbox/interactive')
20 files changed, 952 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-column-item.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-column-item.html new file mode 100644 index 0000000000..f015d29f7c --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-column-item.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<title>flexbox | break-after, column, item</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + border: 1px solid white; + width: 20em; + + display: flex; + flex-direction: column; +} +p { + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + p:first-child { + break-after: always; + } +} +</style> + +<h4>Enter fullscreen or print preview. You should not see the word fail + on the first page after doing that.</h4> + +<div> + <p></p> + <p>fail</p> + <p>fail</p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-column-lastitem.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-column-lastitem.html new file mode 100644 index 0000000000..55514a05b5 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-column-lastitem.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<title>flexbox | break-after, column, item</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + background: red; + border: 1px solid white; + width: 20em; + + display: flex; + flex-direction: column; +} +p { + background: white; + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + p { + break-after: always; + } +} +</style> + +<h4>There should not be any red anytime. Enter fullscreen or print + preview. You should not see the word fail on the first page + after doing that.</h4> + +<div> + <p></p> +</div> +<h1>fail</h1> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-container.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-container.html new file mode 100644 index 0000000000..69698bf670 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-container.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<title>flexbox | break-after, singleline, container</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + background: red; + border: 1px solid white; + width: 20em; + + display: flex; +} +p { + background: white; + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + div { + break-after: always; + } +} +</style> + +<h4>There should not be any red anytime. Enter fullscreen or print + preview. You should not see the word fail on the first page + after doing that.</h4> + +<div> + <p></p> +</div> +<h1>fail</h1> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-item.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-item.html new file mode 100644 index 0000000000..659967853e --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-item.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<title>flexbox | break-after, singleline, item</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + background: red; + border: 1px solid white; + width: 20em; + + display: flex; +} +p { + background: white; + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + p { + break-after: always; + } +} +</style> + +<h4>There should not be any red on the first page either onload, in + print preview, or fullscreen. Enter fullscreen or print preview. + You should not see the word fail after that.</h4> + +<div> + <p></p> +</div> +<h1>fail</h1> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-line-order.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-line-order.html new file mode 100644 index 0000000000..3f2da0775f --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-line-order.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<title>flexbox | order, break-after, multiline</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + background: red; + border: 1px solid black; + width: 20em; + + display: flex; + flex-wrap: wrap; +} +p { + background: white; + margin: 0; + width: 100%; + height: 2em; + + flex: 1 0 auto; +} +p+p {background: red;} +@media projection, print { + p:first-child { + break-after: always; + background: red; + order: 0; + } + p+p { + background: yellow; + order: -1; + } +} +</style> + +<h4>Enter fullscreen or print preview. There should be no red.</h4> + +<div> + <p></p> + <p></p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-line.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-line.html new file mode 100644 index 0000000000..74b7033603 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-line.html @@ -0,0 +1,37 @@ +<!DOCTYPE html> +<title>flexbox | break-after, line</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + width: 20em; + + display: flex; + flex-wrap: wrap; +} +p { + background: white; + margin: 0; + width: 100%; + height: 2em; + + flex: 1 0 auto; +} +p+p {background: red;} +@media projection, print { + p:first-child { + break-after: always; + background: yellow; + } +} +</style> + +<h4>Enter fullscreen or print preview. There should be no red on the + first page.</h4> + +<div> + <p></p> + <p></p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-multiline.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-multiline.html new file mode 100644 index 0000000000..6cd0357528 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-after-multiline.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<title>flexbox | break-after, multiline</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + border: 1px solid white; + width: 20em; + + display: flex; + flex-wrap: wrap; +} +p { + background: yellow; + margin: 0; + height: 2em; + + flex: 1 0 10em; +} +@media projection, print { + #test {break-after: always;} + #test~p {background: red;} +} +</style> + +<h4>There should not be any red in fullscreen or print preview</h4> + +<div> + <p></p> + <p id="test"></p> + <p></p> + <p></p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-column-firstitem.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-column-firstitem.html new file mode 100644 index 0000000000..58d897e44a --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-column-firstitem.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<title>flexbox | break-before, column, item</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + background: red; + border: 1px solid white; + width: 20em; + + display: flex; + flex-direction: column; +} +p { + background: white; + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + p { + break-before: always; + } +} +</style> + +<h4>There should not be any red anytime. Enter fullscreen or print + preview. You should not see the word fail on the first page + after doing that.</h4> + +<div> + <p>fail</p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-column-item.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-column-item.html new file mode 100644 index 0000000000..dac2b12bef --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-column-item.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<title>flexbox | break-before, column, item</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + border: 1px solid white; + width: 20em; + + display: flex; + flex-direction: column; +} +p { + background: white; + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + p:last-child { + break-before: always; + } +} +</style> + +<h4>Enter fullscreen or print preview. You should not see the word fail + on the first page after doing that.</h4> + +<div> + <p></p> + <p></p> + <p>fail</p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-container.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-container.html new file mode 100644 index 0000000000..235ae30d24 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-container.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<title>flexbox | break-before, singleline, container</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + background: red; + border: 1px solid white; + width: 20em; + + display: flex; +} +p { + background: white; + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + div { + break-before: always; + } +} +</style> + +<h4>There should not be any red anytime. Enter fullscreen or print + preview. You should not see the word fail on the first page + after doing that.</h4> + +<div> + <p>fail</p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-item.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-item.html new file mode 100644 index 0000000000..5f2e8969b3 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-item.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<title>flexbox | break-before, singleline, item</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + background: red; + border: 1px solid white; + width: 20em; + + display: flex; +} +p { + background: white; + margin: 0; + height: 2em; + + flex: 1; +} +@media projection, print { + p { + break-before: always; + } +} +</style> + +<h4>There should not be any red anytime. Enter fullscreen or print + preview. You should not see the word fail after that.</h4> + +<div> + <p>fail</p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-multiline.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-multiline.html new file mode 100644 index 0000000000..a19b0e048e --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-before-multiline.html @@ -0,0 +1,35 @@ +<!DOCTYPE html> +<title>flexbox | break-before, multiline</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* {widows: 1; orphans: 1;} +div { + border: 1px solid white; + width: 20em; + + display: flex; + flex-wrap: wrap; +} +p { + background: yellow; + margin: 0; + height: 2em; + + flex: 1 0 10em; +} +@media projection, print { + #test {break-before: always;} + #test, #test+p {background: red;} +} +</style> + +<h4>There should not be any red in fullscreen or print preview</h4> + +<div> + <p></p> + <p></p> + <p id="test"></p> + <p></p> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-natural.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-natural.html new file mode 100644 index 0000000000..4f69d1582a --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_break-natural.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<title>flexbox | natural breaks</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#pagination"> +<meta name="flags" content="interact paged"> +<style> +* { + widows: 1; + orphans: 1; + margin: 0; + height: 100%; +} +body { + display: flex; + flex-direction: column; +} +div { + height: 75%; + flex: 0 0 auto; +} +@media print { + div { + break-inside: avoid; + } + div+div { + border-top: 1em solid red; + } +} +</style> + +<div>Enter print preview. You should not see red or the word fail on the + first page.</div> + +<div>FAIL</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-basis-transitions.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-basis-transitions.html new file mode 100644 index 0000000000..387147aae9 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-basis-transitions.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<title>flexbox | transitioned flex-basis</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-basis-property"> +<meta name="flags" content="interact"> +<style> +div { + width: 20em; + height: 8em; + + display: flex; +} +span { + background: yellow; + width: 8em; + flex: 1 1 0%; +} +#test, p+div { + background: #3366cc; +} +div:hover #test { + transition: flex-basis 4s; + flex-basis: 100%; +} +p~div { + margin-right: 1em; + float: left; + display: block; +} +p~div span { + width: auto; + height: 8em; + float: left; +} +p~div~div span { + width: 5em; +} +</style> + +<div> + <span>one</span> + <span>two</span> + <span>three</span> + <span id="test">four</span> +</div> + +<p>Verify that the box above looks exactly like the second of the boxes +below. Then hover the box above and leave the mouse there for 4 seconds. +After the specified time, the box above should look exactly like the +first of the boxes below.</p> + +<div> + <span>one</span> + <span>two</span> + <span>three</span> + four +</div> + +<div> + <span>one</span> + <span>two</span> + <span>three</span> + <span id="test">four</span> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-grow-transitions.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-grow-transitions.html new file mode 100644 index 0000000000..d78088d47e --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-grow-transitions.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<title>flexbox | transitioned flex-grow</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-grow-property"> +<meta name="flags" content="interact"> +<style> +div { + width: 20em; + height: 8em; + + display: flex; +} +span { + background: yellow; + width: 8em; + flex: 1 0 0%; +} +#test, .ref { + background: #3366cc; +} +div:hover #test { + transition: flex-grow 4s; + flex-grow: 2; +} +p~div { + margin-right: 1em; + float: left; + display: block; +} +p~div span { + width: 5em; + height: 8em; + float: left; +} +p~div~div span { + width: 4em; +} +p~div~div span.ref { + width: 8em; +} +</style> + +<div> + <span>one</span> + <span id="test">two</span> + <span>three</span> + <span>four</span> +</div> + +<p>Verify that the box above looks exactly like the first of the boxes +below. Then hover the box above and leave the mouse there for 4 seconds. +After the specified time, the box above should look exactly like the +second of the boxes below.</p> + +<div> + <span>one</span> + <span class="ref">two</span> + <span>three</span> + <span>four</span> +</div> + +<div> + <span>one</span> + <span class="ref">two</span> + <span>three</span> + <span>four</span> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-shrink-transitions-invalid.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-shrink-transitions-invalid.html new file mode 100644 index 0000000000..855bd19038 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-shrink-transitions-invalid.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<title>flexbox | invalid flex-shrink transition</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-shrink-property"> +<meta name="flags" content="interact"> +<style> +div { + width: 20em; + height: 8em; + + display: flex; +} +span { + background: yellow; + width: 8em; + flex: 0 1 auto; +} +#test, .ref { + background: #3366cc; +} +div:hover #test { + transition: flex-shrink 4s; + flex-shrink: 0; +} +p~div { + margin-right: 1em; + float: left; + display: block; +} +p~div span { + width: 5em; + height: 8em; + float: left; +} +p~div~div span { + width: 4em; +} +p~div~div span.ref { + width: 8em; +} +</style> + +<div> + <span>x</span> + <span id="test"></span> + <span>x</span> + <span>x</span> +</div> + +<p>Verify that the box above looks exactly like the first of the boxes +below. Then hover the box above. On hover, <em>instantaneously</em>, the +box above should look like the second of the boxes below. Any delay +constitutes a fail.</p> + +<div> + <span>x</span> + <span class="ref"></span> + <span>x</span> + <span>x</span> +</div> + +<div> + <span>x</span> + <span class="ref"></span> + <span>x</span> + <span>x</span> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-shrink-transitions.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-shrink-transitions.html new file mode 100644 index 0000000000..ba94e7717e --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-shrink-transitions.html @@ -0,0 +1,63 @@ +<!DOCTYPE html> +<title>flexbox | transitioned flex-shrink</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-shrink-property"> +<meta name="flags" content="interact"> +<style> +div { + width: 12em; + height: 8em; + + display: flex; +} +span { + background: yellow; + width: 8em; + flex: 0 1 auto; +} +#test, #ref { + background: #3366cc; +} +div:hover #test { + transition: flex-shrink 4s; + flex-shrink: 2; +} +p~div { + margin-right: 1em; + float: left; + display: block; +} +p~div span { + width: 3em; + height: 8em; + float: left; +} +p~div~div span { + width: 4em; +} +</style> + +<div> + <span>x</span> + <span id="test"></span> + <span>x</span> + <span>x</span> +</div> + +<p>Verify that the box above looks exactly like the first of the boxes +below. Then hover the box above and leave the mouse there for 4 +seconds. After the specified time, the blue color should disappear, and +the box above should look like the second of the boxes below.</p> + +<div> + <span>x</span> + <span id="ref"></span> + <span>x</span> + <span>x</span> +</div> + +<div> + <span>x</span> + <span>x</span> + <span>x</span> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-transitions.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-transitions.html new file mode 100644 index 0000000000..265976dea3 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_flex-transitions.html @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<title>flexbox | transitioned flex</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-property"> +<meta name="flags" content="interact"> +<style> +div { + width: 20em; + height: 8em; + + display: flex; +} +span { + background: yellow; + width: 8em; + flex: 1 1 0%; +} +#test, .ref, p+div { + background: #3366cc; +} +div:hover #test { + transition: flex 4s; + flex: 0 1 100%; +} +p~div { + margin-right: 1em; + float: left; + display: block; +} +p~div span { + width: auto; + height: 8em; + float: left; +} +p~div~div span { + width: 5em; +} +</style> + +<div> + <span>one</span> + <span>two</span> + <span>three</span> + <span id="test">four</span> +</div> + +<p>Verify that the box above looks exactly like the second of the boxes +below. Then hover the box above and leave the mouse there for 1+ +seconds. The box above should <em>instantaneously</em> look exactly +like the first of the boxes below.</p> + +<div> + <span>one</span> + <span>two</span> + <span>three</span> + four +</div> + +<div> + <span>one</span> + <span>two</span> + <span>three</span> + <span id="test">four</span> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_order-transitions-2.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_order-transitions-2.html new file mode 100644 index 0000000000..192eb4aad5 --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_order-transitions-2.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<title>flexbox | transitioned order</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-property"> +<meta name="flags" content="interact"> +<style> +div { + display: flex; +} +span { + background: yellow; + width: 1em; + height: 2em; +} +.test { + background: #3366cc; + order: 0; +} +div:hover .test { + transition: order 10s; + order: -1; +} +p~div { + margin: 1em; + float: left; + display: block; +} +p~div span { + float: left; +} +</style> + +<div> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span class="test">x</span> + <span>x</span> +</div> + +<p>Verify that the box above looks exactly like the first of the boxes +below. Then hover the box above and leave the mouse there for 1+ +seconds. After the specified time, the box above should look exactly +like the second of the boxes below.</p> + +<div> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span class="test">x</span> + <span>x</span> +</div> + +<div> + <span class="test">x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> + <span>x</span> +</div> diff --git a/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_order-transitions.html b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_order-transitions.html new file mode 100644 index 0000000000..684233223b --- /dev/null +++ b/testing/web-platform/tests/css/css-flexbox/interactive/flexbox_interactive_order-transitions.html @@ -0,0 +1,83 @@ +<!DOCTYPE html> +<title>flexbox | flex-flow and transitioned order</title> +<link rel="author" href="http://opera.com" title="Opera Software"> +<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-property"> +<meta name="flags" content="interact"> +<style> +div { + background: blue; + padding: 0; + margin: 1em 0; + border: 1px solid black; + width: 20em; + height: 8em; + + display: flex; + flex-flow: column-reverse wrap-reverse; +} +span { + background: white; + margin: 1em; + width: 8em; + height: 1.5em; + display: inline-block; +} +.one { + background: pink; + order: -1; +} +div:hover .one { + transition: order 4s; + order: 4; +} +.two { + background: yellow; + order: 3; +} +.three { + background: black; + color: white; + order: 2; +} +.four { + background: fuchsia; + color: white; + order: 1; +} +p~div { + padding: 1em 0 0; + margin-right: 1em; + height: 7em; + float: left; + display: block; +} +p~div span { + float: left; +} +</style> + +<div> + <span class="one">one</span> + <span class="two">two</span> + <span class="three">three</span> + <span class="four">four</span> +</div> + +<p>Verify that the box above looks exactly like the first of the boxes +below. Then hover the blue area above and leave the mouse there for 4 +seconds. After the specified time, the box above should look exactly +like the second of the boxes below.</p> + +<div> + <span class="two">two</span> + <span class="four">four</span> + <span class="three">three</span> + <span class="one">one</span> +</div> + +<div> + <span class="one">one</span> + <span class="three">three</span> + <span class="two">two</span> + <span class="four">four</span> +</div> |