Source code

Revision control

Other Tools

Test Info:

<!doctype html>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<div></div>
<script>
const VALUES = [
"-moz-box",
"-moz-inline-box",
"-moz-deck",
"-moz-popup",
];
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv(
{"set": [
["layout.css.xul-display-values.content.enabled", true],
["layout.css.xul-box-display-values.content.enabled", true],
]}
).then(runTest);
function runTest() {
const div = document.querySelector("div");
for (const value of VALUES) {
div.style.display = value;
is(div.style.display, value);
is(getComputedStyle(div).display, value);
ok(CSS.supports("display", value));
}
SimpleTest.finish();
}
</script>