4 Test for bug
1376352: We don't reframe all the time a replaced element that
5 matches generated content rules.
7 <link rel=
"author" href=
"mailto:emilio@crisal.io" title=
"Emilio Cobos Álvarez">
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
18 SimpleTest
.waitForExplicitFinish();
19 const utils
= SpecialPowers
.getDOMWindowUtils(window
);
21 function testNoReframe(callback
) {
22 document
.documentElement
.offsetTop
;
23 const previousConstructCount
= utils
.framesConstructed
;
24 const previousRestyleGeneration
= utils
.restyleGeneration
;
28 document
.documentElement
.offsetTop
;
29 isnot(previousRestyleGeneration
, utils
.restyleGeneration
,
30 "We should have restyled");
31 is(previousConstructCount
, utils
.framesConstructed
,
32 "We shouldn't have reframed");
35 testNoReframe(function() {
36 const input
= document
.querySelector('input');
37 input
.style
.color
= "blue";
40 testNoReframe(function() {
41 const flex
= document
.getElementById('flex');
42 flex
.style
.color
= "blue";