mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
30e8481488
--HG-- rename : layout/style/test/test_flexbox_align_self_auto.html => layout/style/test/file_flexbox_align_self_auto.html rename : layout/style/test/test_flexbox_flex_grow_and_shrink.html => layout/style/test/file_flexbox_flex_grow_and_shrink.html rename : layout/style/test/test_flexbox_flex_shorthand.html => layout/style/test/file_flexbox_flex_shorthand.html rename : layout/style/test/test_flexbox_layout.html => layout/style/test/file_flexbox_layout.html
47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=666041
|
|
-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test for Bug 666041</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=666041">Mozilla Bug 666041</a>
|
|
<div id="display">
|
|
<iframe id="iframe"></iframe>
|
|
</div>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
"use strict";
|
|
|
|
/** Test for Bug 666041 **/
|
|
|
|
/*
|
|
* 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_layout.html") for the actual
|
|
* test code and for more documentation.
|
|
*/
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
ok(!SpecialPowers.getBoolPref("layout.css.flexbox.enabled"),
|
|
"expecting flexbox pref to be disabled by default");
|
|
|
|
SpecialPowers.setBoolPref("layout.css.flexbox.enabled", true);
|
|
document.getElementById("iframe").src = "file_flexbox_layout.html";
|
|
|
|
function finish() {
|
|
SpecialPowers.clearUserPref("layout.css.flexbox.enabled");
|
|
SimpleTest.finish();
|
|
}
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|