2012-07-06 17:06:21 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=696253
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Test behavior of 'align-self:auto' (Bug 696253)</title>
|
|
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=696253">Mozilla Bug 696253</a>
|
|
|
|
<div id="display">
|
2012-10-03 18:44:15 -07:00
|
|
|
<iframe id="iframe"></iframe>
|
2012-07-06 17:06:21 -07:00
|
|
|
</div>
|
|
|
|
<pre id="test">
|
|
|
|
<script type="application/javascript">
|
|
|
|
"use strict";
|
|
|
|
|
2012-10-03 18:44:15 -07:00
|
|
|
/** Test behavior of 'align-self:auto' (Bug 696253) **/
|
2012-07-06 17:06:21 -07:00
|
|
|
|
|
|
|
/*
|
2012-10-03 18:44:15 -07:00
|
|
|
* This mochitest runs in an iframe so that we can selectively turn on the
|
|
|
|
* flexbox about:config pref before its document is instantiated.
|
|
|
|
*
|
|
|
|
* See the iframe's source ("file_flexbox_align_self_auto.html") for the actual
|
|
|
|
* test code and for more documentation.
|
2012-07-06 17:06:21 -07:00
|
|
|
*/
|
|
|
|
|
2012-10-03 18:44:15 -07:00
|
|
|
SimpleTest.waitForExplicitFinish();
|
2012-07-06 17:06:21 -07:00
|
|
|
|
2013-02-15 17:17:21 -08:00
|
|
|
SpecialPowers.setBoolPref("layout.css.flexbox.enabled", true);
|
2012-10-03 18:44:15 -07:00
|
|
|
document.getElementById("iframe").src = "file_flexbox_align_self_auto.html";
|
2012-07-06 17:06:21 -07:00
|
|
|
|
2012-10-03 18:44:15 -07:00
|
|
|
function finish() {
|
|
|
|
SpecialPowers.clearUserPref("layout.css.flexbox.enabled");
|
|
|
|
SimpleTest.finish();
|
2012-07-06 17:06:21 -07:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|