From bbfaacb59872c1de1a84d5ec0eb89573ef4ce055 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 15 Jan 2021 18:42:20 -0500 Subject: Add a reftest for box flipping Test that a horizontal box changes the order of its children in RTL, and that widget margins flip start and end. This tests the fix in d89ff7181941d202d2. --- testsuite/reftests/box-flip.css | 23 +++++++++++++++++++++++ testsuite/reftests/box-flip.ref.ui | 28 ++++++++++++++++++++++++++++ testsuite/reftests/box-flip.ui | 30 ++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 testsuite/reftests/box-flip.css create mode 100644 testsuite/reftests/box-flip.ref.ui create mode 100644 testsuite/reftests/box-flip.ui diff --git a/testsuite/reftests/box-flip.css b/testsuite/reftests/box-flip.css new file mode 100644 index 0000000000..ffda8b0003 --- /dev/null +++ b/testsuite/reftests/box-flip.css @@ -0,0 +1,23 @@ +@import "reset-to-defaults.css"; + +window { + background-color: purple; +} + +#red { + background-color: red; + min-width: 100px; + min-height: 100px; +} + +#yellow { + background-color: yellow; + min-width: 100px; + min-height: 100px; +} + +#green { + background-color: green; + min-width: 100px; + min-height: 100px; +} diff --git a/testsuite/reftests/box-flip.ref.ui b/testsuite/reftests/box-flip.ref.ui new file mode 100644 index 0000000000..d962c80327 --- /dev/null +++ b/testsuite/reftests/box-flip.ref.ui @@ -0,0 +1,28 @@ + + + + 0 + 0 + + + + + green + 50 + + + + + yellow + 10 + + + + + red + + + + + + diff --git a/testsuite/reftests/box-flip.ui b/testsuite/reftests/box-flip.ui new file mode 100644 index 0000000000..8de1030f31 --- /dev/null +++ b/testsuite/reftests/box-flip.ui @@ -0,0 +1,30 @@ + + + + 0 + 0 + + + + + + + red + + + + + yellow + 10 + + + + + 50 + green + + + + + + -- cgit v1.2.1