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