Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / pseudo-default-001.html
bloba5f919403c651d26e07702d4c5db4b12796ac5b1
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <style>
6 input:default { background: lime; }
7 button:default { background: lime; }
8 input { background: red; }
9 button { background: red; }
10 </style>
11 </head>
12 <body>
13 <p id="description"></p>
14 <form method="get">
15 <input name="victim" type="submit" value="Submit" />
16 </form>
17 <div id="console"></div>
18 <script>
19 description("This test performs a simple check for the :default CSS selector.");
21 v = document.getElementsByName("victim");
22 for (i = 0; i < v.length; i++)
23 shouldBe("document.defaultView.getComputedStyle(v[i], null).getPropertyValue('background-color')", "'rgb(0, 255, 0)'");
24 </script>
25 </body>
26 </html>