diff options
Diffstat (limited to 'layout/reftests/box-ordinal')
11 files changed, 193 insertions, 0 deletions
diff --git a/layout/reftests/box-ordinal/box-ordinal-with-out-of-flow-1-ref.html b/layout/reftests/box-ordinal/box-ordinal-with-out-of-flow-1-ref.html new file mode 100644 index 000000000..649afb339 --- /dev/null +++ b/layout/reftests/box-ordinal/box-ordinal-with-out-of-flow-1-ref.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<html> +<head> + <style> + #container { display: -moz-box; } + #highOrdinal { + background: lime; + height: 100px; width: 100px; + } + </style> +</head> +<body> + <div id="container"> + <div id="highOrdinal"></div> + </div> +</body> +</html> diff --git a/layout/reftests/box-ordinal/box-ordinal-with-out-of-flow-1.html b/layout/reftests/box-ordinal/box-ordinal-with-out-of-flow-1.html new file mode 100644 index 000000000..f0d56be53 --- /dev/null +++ b/layout/reftests/box-ordinal/box-ordinal-with-out-of-flow-1.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<!-- + Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ +--> +<!-- Testcase for whether we honor "-moz-box-ordinal-group" on + absolutely-positioned elements within a -moz-box. Specifically, + we test whether it affects their paint-order (as it should, since + it reorders the frame tree). +--> +<html> +<head> + <style> + #container { display: -moz-box; } + #lowOrdinal { + position: absolute; + -moz-box-ordinal-group: 5; + background: red; + height: 100px; width: 100px; + } + #highOrdinal { + position: absolute; + -moz-box-ordinal-group: 10; + background: lime; + height: 100px; width: 100px; + } + #noOrdinal { + position: absolute; + background: orange; + height: 100px; width: 100px; + } + </style> +</head> +<body> + <div id="container"> + <div id="highOrdinal"></div> + <div id="lowOrdinal"></div> + <div id="noOrdinal"></div> + </div> +</body> +</html> diff --git a/layout/reftests/box-ordinal/dynamic-1-add-to-one-grouped.xul b/layout/reftests/box-ordinal/dynamic-1-add-to-one-grouped.xul new file mode 100644 index 000000000..a7f0408f3 --- /dev/null +++ b/layout/reftests/box-ordinal/dynamic-1-add-to-one-grouped.xul @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE window> +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()"> + <script type="application/javascript"><![CDATA[ + + function run() { + var c = document.getElementById("C"); + getComputedStyle(c, "").width; // flush + c.style.MozBoxOrdinalGroup = "2"; + document.documentElement.removeAttribute("class"); + } + + ]]></script> + <label id="A" value="A" /> + <label id="C" value="C" /> + <label id="B" value="B" /> +</window> diff --git a/layout/reftests/box-ordinal/dynamic-1-add-to-two-grouped-1.xul b/layout/reftests/box-ordinal/dynamic-1-add-to-two-grouped-1.xul new file mode 100644 index 000000000..6ef73bc27 --- /dev/null +++ b/layout/reftests/box-ordinal/dynamic-1-add-to-two-grouped-1.xul @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE window> +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()"> + <script type="application/javascript"><![CDATA[ + + function run() { + var c = document.getElementById("C"); + getComputedStyle(c, "").width; // flush + c.style.MozBoxOrdinalGroup = "2"; + document.documentElement.removeAttribute("class"); + } + + ]]></script> + <label id="B" value="B" style="-moz-box-ordinal-group: 2" /> + <label id="C" value="C" /> + <label id="A" value="A" /> +</window> diff --git a/layout/reftests/box-ordinal/dynamic-1-add-to-two-grouped-2.xul b/layout/reftests/box-ordinal/dynamic-1-add-to-two-grouped-2.xul new file mode 100644 index 000000000..3c04293df --- /dev/null +++ b/layout/reftests/box-ordinal/dynamic-1-add-to-two-grouped-2.xul @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE window> +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()"> + <script type="application/javascript"><![CDATA[ + + function run() { + var b = document.getElementById("B"); + getComputedStyle(b, "").width; // flush + b.style.MozBoxOrdinalGroup = "2"; + document.documentElement.removeAttribute("class"); + } + + ]]></script> + <label id="B" value="B" /> + <label id="C" value="C" style="-moz-box-ordinal-group: 2" /> + <label id="A" value="A" /> +</window> diff --git a/layout/reftests/box-ordinal/dynamic-1-ref.xul b/layout/reftests/box-ordinal/dynamic-1-ref.xul new file mode 100644 index 000000000..66052d38d --- /dev/null +++ b/layout/reftests/box-ordinal/dynamic-1-ref.xul @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<!DOCTYPE window> +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + <label id="A" value="A" /> + <label id="B" value="B" /> + <label id="C" value="C" /> +</window> diff --git a/layout/reftests/box-ordinal/dynamic-1-remove-to-none-grouped.xul b/layout/reftests/box-ordinal/dynamic-1-remove-to-none-grouped.xul new file mode 100644 index 000000000..d3c444291 --- /dev/null +++ b/layout/reftests/box-ordinal/dynamic-1-remove-to-none-grouped.xul @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE window> +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()"> + <script type="application/javascript"><![CDATA[ + + function run() { + var b = document.getElementById("B"); + getComputedStyle(b, "").width; // flush + b.style.MozBoxOrdinalGroup = ""; + document.documentElement.removeAttribute("class"); + } + + ]]></script> + <label id="A" value="A" /> + <label id="B" value="B" style="-moz-box-ordinal-group: 2" /> + <label id="C" value="C" /> +</window> diff --git a/layout/reftests/box-ordinal/dynamic-1-remove-to-one-grouped-1.xul b/layout/reftests/box-ordinal/dynamic-1-remove-to-one-grouped-1.xul new file mode 100644 index 000000000..f2f285734 --- /dev/null +++ b/layout/reftests/box-ordinal/dynamic-1-remove-to-one-grouped-1.xul @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE window> +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()"> + <script type="application/javascript"><![CDATA[ + + function run() { + var b = document.getElementById("B"); + getComputedStyle(b, "").width; // flush + b.style.MozBoxOrdinalGroup = ""; + document.documentElement.removeAttribute("class"); + } + + ]]></script> + <label id="C" value="C" style="-moz-box-ordinal-group: 2" /> + <label id="A" value="A" /> + <label id="B" value="B" style="-moz-box-ordinal-group: 2" /> +</window> diff --git a/layout/reftests/box-ordinal/dynamic-1-remove-to-one-grouped-2.xul b/layout/reftests/box-ordinal/dynamic-1-remove-to-one-grouped-2.xul new file mode 100644 index 000000000..1fb09c05b --- /dev/null +++ b/layout/reftests/box-ordinal/dynamic-1-remove-to-one-grouped-2.xul @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE window> +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="run()"> + <script type="application/javascript"><![CDATA[ + + function run() { + var a = document.getElementById("A"); + getComputedStyle(a, "").width; // flush + a.style.MozBoxOrdinalGroup = ""; + document.documentElement.removeAttribute("class"); + } + + ]]></script> + <label id="C" value="C" style="-moz-box-ordinal-group: 2" /> + <label id="A" value="A" style="-moz-box-ordinal-group: 2" /> + <label id="B" value="B" /> +</window> diff --git a/layout/reftests/box-ordinal/reftest-stylo.list b/layout/reftests/box-ordinal/reftest-stylo.list new file mode 100644 index 000000000..81276fa5a --- /dev/null +++ b/layout/reftests/box-ordinal/reftest-stylo.list @@ -0,0 +1,15 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +== box-ordinal-with-out-of-flow-1.html box-ordinal-with-out-of-flow-1.html +skip-if((B2G&&browserIsRemote)||Mulet) == dynamic-1-remove-to-none-grouped.xul dynamic-1-remove-to-none-grouped.xul +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == dynamic-1-add-to-one-grouped.xul dynamic-1-add-to-one-grouped.xul +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == dynamic-1-remove-to-one-grouped-1.xul dynamic-1-remove-to-one-grouped-1.xul +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == dynamic-1-remove-to-one-grouped-2.xul dynamic-1-remove-to-one-grouped-2.xul +# bug 575500 +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == dynamic-1-add-to-two-grouped-1.xul dynamic-1-add-to-two-grouped-1.xul +# Initial mulet triage: parity with B2G/B2G Desktop +skip-if((B2G&&browserIsRemote)||Mulet) == dynamic-1-add-to-two-grouped-2.xul dynamic-1-add-to-two-grouped-2.xul +# Initial mulet triage: parity with B2G/B2G Desktop diff --git a/layout/reftests/box-ordinal/reftest.list b/layout/reftests/box-ordinal/reftest.list new file mode 100644 index 000000000..91de0baaa --- /dev/null +++ b/layout/reftests/box-ordinal/reftest.list @@ -0,0 +1,7 @@ +== box-ordinal-with-out-of-flow-1.html box-ordinal-with-out-of-flow-1-ref.html +== dynamic-1-remove-to-none-grouped.xul dynamic-1-ref.xul +== dynamic-1-add-to-one-grouped.xul dynamic-1-ref.xul +== dynamic-1-remove-to-one-grouped-1.xul dynamic-1-ref.xul +fails == dynamic-1-remove-to-one-grouped-2.xul dynamic-1-ref.xul # bug 575500 +== dynamic-1-add-to-two-grouped-1.xul dynamic-1-ref.xul +== dynamic-1-add-to-two-grouped-2.xul dynamic-1-ref.xul |