3 <script src=
"../../resources/js-test.js"></script>
6 details.before:before {
17 <summary>Should allow generated content inside details
</summary>
21 if (window
.testRunner
)
22 testRunner
.dumpAsText();
24 var details
= document
.querySelector('details');
26 function assertHeightChangedWithClassName(className
)
28 oldHeight
= details
.offsetHeight
;
29 details
.className
= className
;
30 newHeight
= details
.offsetHeight
;
31 debug('::' + className
);
32 shouldBeTrue("newHeight > oldHeight");
33 details
.className
= '';
36 description("Should allow generated content inside details");
37 assertHeightChangedWithClassName('before');
38 assertHeightChangedWithClassName('after');