1 Various tests for the figure element.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 <figure> default styling:
7 PASS getStyleValue("figure0","display") is "block"
8 PASS getStyleValue("figure0","margin-top") is emSize
9 PASS getStyleValue("figure0","margin-right") is "40px"
10 PASS getStyleValue("figure0","margin-bottom") is emSize
11 PASS getStyleValue("figure0","margin-left") is "40px"
13 PASS figure1.parentNode.nodeName == "p" is false
14 <p> does not close <figure>:
15 PASS p1.parentNode.nodeName is "FIGURE"
16 <figure> can be nested inside <figure> or <footer>:
17 PASS figure3.parentNode.id is "figure2"
18 PASS figure5.parentNode.id is "footer1"
20 PASS getStyleValue("figure4","font-weight") is "bold"
21 PASS getStyleValue("span1","font-weight") is "bold"
22 PASS successfullyParsed is true