f6dd7a5d037cb866e6c5c0b882305b32bc1f5e8a
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / Window / getMatchedCSSRules-with-invalid-pseudo-elements-expected.txt
1 getMatchedCSSRules with invalid Pseudo Elements
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS getMatchedCSSRules(document.querySelector('p'), '')[0].cssText is "p { color: green; }"
7 PASS getMatchedCSSRules(document.querySelector('p'), undefined)[0].cssText is "p { color: green; }"
8 PASS getMatchedCSSRules(document.querySelector('p'), null)[0].cssText is "p { color: green; }"
9 PASS getMatchedCSSRules(document.querySelector('p'))[0].cssText is "p { color: green; }"
10 PASS getMatchedCSSRules(document.querySelector('p'), 'before') is null
11 PASS getMatchedCSSRules(document.querySelector('p'), 'foo') is null
12 PASS getMatchedCSSRules(document.querySelector('div'), 'first-letter')[0].cssText is "div::first-letter { color: red; }"
13 PASS getMatchedCSSRules(document.querySelector('div'), ':first-letter')[0].cssText is "div::first-letter { color: red; }"
14 PASS getMatchedCSSRules(document.querySelector('div'), '::first-letter')[0].cssText is "div::first-letter { color: red; }"
15 PASS successfullyParsed is true
16
17 TEST COMPLETE
18 Test for https://bugs.webkit.org/show_bug.cgi?id=83298
19
20 First letter of this sentence should be red.