Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css-generated-content / details-before-after-content.html
blobccd35a6b0bc221f11cae3f6f4503ef056daf416b
1 <!DOCTYPE html>
3 <script src="../../resources/js-test.js"></script>
5 <style>
6 details.before:before {
7 content: "+";
8 display: block;
10 details.after:after {
11 content: "+";
12 display: block;
14 </style>
16 <details>
17 <summary>Should allow generated content inside details</summary>
18 </details>
20 <script>
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');
39 details.remove();
40 </script>