4 https://bugzilla.mozilla.org/show_bug.cgi?id=1274096
7 <title>Test for Bug
1274096</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1274096">Mozilla Bug
1274096</a>
13 <div id=
"content" style=
"display: none">
14 <div id=
"testElem"></div>
16 <script type=
"text/javascript">
19 <script class=
"testbody" type=
"application/javascript">
21 /** Test for Bug
1274096 **/
23 SimpleTest.waitForExplicitFinish();
27 testValue(
"display",
"-webkit-flex",
"flex");
28 testValue(
"display",
"-webkit-inline-flex",
"inline-flex");
33 function testValue(propName, specifiedVal, serializedVal) {
34 var testElem = document.getElementById(
"testElem");
35 testElem.style[propName] = specifiedVal;
37 is(testElem.style[propName], serializedVal,
38 `CSS '${propName}:${specifiedVal} should serialize as '${serializedVal}'`);
39 is(window.getComputedStyle(testElem)[propName], serializedVal,
40 `CSS 'display:${specifiedVal} should compute to '${serializedVal}'`);