Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / html / nav-element.html
blob21a3ac1fda9b360c8dec8d6dc4050f3bdbca02e2
1 <!doctype HTML>
2 <html>
3 <head>
4 <title>Test of HTML5 nav element</title>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9 </script>
11 <style>
12 nav { border: 1px solid green; padding: 2px; }
13 p > nav { border: 3px solid red; }
14 nav > p { border: 1px solid green; }
15 p { margin: 0px; }
16 </style>
18 </head>
19 <body>
21 <h4>Test content</h4>
23 <div id=testArea>
24 <p><nav>Test that <code>nav</code> closes <code>p</code>. This paragraph should be surrounded by a thin green border, instead of a thick red one. Also tests that nav lays out as a block. There should be only a single border box with width of the content area (minus margins).</nav>
25 <br>
26 <nav><p>Test that <code>p</code> does not close <code>nav</code>. This paragraph should have a double green border.</nav>
27 <br>
28 <nav><nav>Test that <code>nav</code> can nest inside itself. This paragraph should have a double green border.</nav></nav>
29 <br>
30 <b><nav>Test of residual style. This text should be bold.</nav>This should be bold too.</b>
32 <p><br></p>
34 <div contentEditable=true id=editable>
35 Test of FormatBlock behavior. This text should have a green border.
36 </div>
37 </div>
39 <br>
41 <hr>
43 <h4>DOM for the above (so this test can dump as text)</h4>
44 <pre id=markupArea>
45 </pre>
48 <script>
49 var ed = document.getElementById("editable");
50 var selection = window.getSelection();
51 selection.selectAllChildren(ed);
52 document.execCommand("FormatBlock", false, "nav");
53 selection.removeAllRanges();
54 ed.blur();
56 var tests = document.getElementById("testArea");
57 var markup = document.getElementById("markupArea");
58 var textNode = document.createTextNode(testArea.innerHTML);
59 markup.appendChild(textNode);
61 </script>
63 </body>
64 </html>