| <!doctype html> |
| <html> |
| <!-- |
| Test for https://bugs.webkit.org/show_bug.cgi?id=66642 ([CSSRegions][CSSOM] Implement NamedFlow interface). |
| Test that asking for the same webkit named flow twice returns the same object. |
| On success, you should see a PASS below. |
| --> |
| <head> |
| <script src="resources/helper.js"></script> |
| <style> |
| .pass { |
| font-weight: bold; |
| color: green; |
| } |
| |
| .fail { |
| font-weight: bold; |
| color: red; |
| } |
| |
| .flow { |
| -webkit-flow-into: flow; |
| } |
| </style> |
| </head> |
| <body> |
| <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=66642">66642: [CSSRegions]Implement NamedFlow interface</a></p> |
| <p>Asking for the same webkit named flow twice should return the same non-null object.</p> |
| <p>On success, you should see PASS below.</p> |
| <div id="article" class="flow"></div> |
| <div id="result" class="fail">FAIL</div> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| var namedFlow = getFlowByName("flow"); |
| var namedFlow2 = getFlowByName("flow"); |
| if (namedFlow === namedFlow2) { |
| document.getElementById("result").innerText = "PASS"; |
| document.getElementById("result").className = "pass"; |
| } |
| </script> |
| </body> |
| </html> |