Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / submit-form-with-dirname-attribute-with-ancestor-dir-attribute.html
blobd213830b723693067e2c54db0c56457128034d26
1 <html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
4 </head>
5 <script src="../../resources/js-test.js"> </script>
6 <script>
7 window.jsTestIsAsync = true;
9 function test() {
10 document.forms.f.submit();
12 </script>
13 <body onload="test()">
14 <p>Test that when dirname attribute is specified then it is added in submission body.</p>
16 <div dir="auto">
17 <form action="#action" method="GET" name="f">
18 <div dir="rtl">
19 <input type=text name="comment" dirname="rtlAncestor.dir" required>
20 </div>
21 <input type=text name="autoAncestor" dirname="autoAncestor.dir" value="שלום">
22 <p><button name="mode" type=submit value="add">Post Comment</button></p>
23 </form>
24 Hello
25 </div>
27 <div id="console"></div>
28 <div id="action">
29 <script>
30 if (document.location.href.match('\\?')) {
31 shouldBeTrue('document.location.search.indexOf("rtlAncestor.dir=rtl") != -1');
32 shouldBeTrue('document.location.search.indexOf("autoAncestor.dir=ltr") != -1');
33 finishJSTest();
36 successfullyParsed = true;
37 </script>
38 </div>
39 </body>
40 </html>