Bug 1184295 - Ensure the containing block has a constrained size during logical-properties tests, to suppress unconstrained-isize warnings. r=heycam
authorJonathan Kew <jkew@mozilla.com>
Mon, 27 Jul 2015 08:06:46 +0100
changeset 254648 3741aa98b8918c7d18116cd42f9f5c82d6e13048
parent 254647 7d43dde74d529e3e202a6e30d9cbb793c4b9579d
child 254649 8e3baacbe31ba2ec3f1b9cf65053ec16a154a8be
push id29108
push userryanvm@gmail.com
push dateMon, 27 Jul 2015 14:12:01 +0000
treeherdermozilla-central@27ae736ef960 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1184295
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1184295 - Ensure the containing block has a constrained size during logical-properties tests, to suppress unconstrained-isize warnings. r=heycam
layout/style/test/test_logical_properties.html
--- a/layout/style/test/test_logical_properties.html
+++ b/layout/style/test/test_logical_properties.html
@@ -1,16 +1,21 @@
 <!DOCTYPE html>
 <meta charset=utf-8>
 <title>Test for handling of logical and physical properties</title>
 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
 <script src="/tests/SimpleTest/SimpleTest.js"></script>
 
 <style id="sheet"></style>
-<div id="test" class="test"></div>
+
+<!-- specify size for <body> to avoid unconstrained-isize warnings
+     when writing-mode of the test <div> is vertical-* -->
+<body style="width:100px; height: 100px;">
+  <div id="test" class="test"></div>
+</body>
 
 <script>
 var gSheet = document.getElementById("sheet");
 var gTest  = document.getElementById("test");
 
 // list of groups of physical and logical box properties, such as
 //
 // { left: "margin-left", right: "margin-right",