From 4227a698d0c65a6ede8e909a99446cee69255b26 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 27 Apr 2016 13:29:07 -0700 Subject: [PATCH] tests: Add a reftest to check that floats with percentage widths properly push text down. --- tests/wpt/mozilla/meta/MANIFEST.json | 24 +++++++++++++++++++ .../tests/css/floats_percentage_width_a.html | 18 ++++++++++++++ .../css/floats_percentage_width_ref.html | 16 +++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 tests/wpt/mozilla/tests/css/floats_percentage_width_a.html create mode 100644 tests/wpt/mozilla/tests/css/floats_percentage_width_ref.html diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index 4d17eef015a..0273ec6b642 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -1644,6 +1644,18 @@ "url": "/_mozilla/css/floats_margin_collapse_with_clearance_a.html" } ], + "css/floats_percentage_width_a.html": [ + { + "path": "css/floats_percentage_width_a.html", + "references": [ + [ + "/_mozilla/css/floats_percentage_width_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/floats_percentage_width_a.html" + } + ], "css/focus_selector.html": [ { "path": "css/focus_selector.html", @@ -8420,6 +8432,18 @@ "url": "/_mozilla/css/floats_margin_collapse_with_clearance_a.html" } ], + "css/floats_percentage_width_a.html": [ + { + "path": "css/floats_percentage_width_a.html", + "references": [ + [ + "/_mozilla/css/floats_percentage_width_ref.html", + "==" + ] + ], + "url": "/_mozilla/css/floats_percentage_width_a.html" + } + ], "css/focus_selector.html": [ { "path": "css/focus_selector.html", diff --git a/tests/wpt/mozilla/tests/css/floats_percentage_width_a.html b/tests/wpt/mozilla/tests/css/floats_percentage_width_a.html new file mode 100644 index 00000000000..051b86f7061 --- /dev/null +++ b/tests/wpt/mozilla/tests/css/floats_percentage_width_a.html @@ -0,0 +1,18 @@ + + + + + +
X + diff --git a/tests/wpt/mozilla/tests/css/floats_percentage_width_ref.html b/tests/wpt/mozilla/tests/css/floats_percentage_width_ref.html new file mode 100644 index 00000000000..b8110a8d1af --- /dev/null +++ b/tests/wpt/mozilla/tests/css/floats_percentage_width_ref.html @@ -0,0 +1,16 @@ + + + + +
X +