зеркало из https://github.com/mozilla/gecko-dev.git
45 строки
1.3 KiB
HTML
45 строки
1.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=783415
|
|
-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test "display" values of content in a flex container (Bug 783415)</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=783415">Mozilla Bug 783415</a>
|
|
<div id="display">
|
|
<iframe id="iframe"></iframe>
|
|
</div>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
"use strict";
|
|
|
|
/** Test "display" values of content in a flex container (Bug 783415) **/
|
|
|
|
/*
|
|
* 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_child_display_values.xhtml") for the
|
|
* actual test code and for more documentation.
|
|
*/
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
SpecialPowers.setBoolPref("layout.css.flexbox.enabled", true);
|
|
document.getElementById("iframe").src =
|
|
"file_flexbox_child_display_values.xhtml";
|
|
|
|
function finish() {
|
|
SpecialPowers.clearUserPref("layout.css.flexbox.enabled");
|
|
SimpleTest.finish();
|
|
}
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|