Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: LayoutTests/fast/css/css-namespace-rule.html

Issue 1321943002: Support for CSSOM CSSNamespaceRule interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updating testcases Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style id="style1">
4 @namespace my-namespace url(http://www.w3.org/1999/xhtml);
5 body {
6 color:black;
7 }
8 my-namespace|body {
9 color:red;
10 }
11 </style>
12 Here is some text!
13 <script>
14 description('Check the basic attribute support of CSSOM CSSNamespaceRule');
15
16 shouldBe('CSSRule.NAMESPACE_RULE','10');
17 var namespacerule = document.getElementById("style1").sheet.cssRules[0];
18 shouldBe('namespacerule.type','10');
19 shouldBeEqualToString('namespacerule.namespaceURI','http://www.w3.org/1999/xhtml ');
20 shouldBeEqualToString('namespacerule.prefix','my-namespace');
21 shouldBeEqualToString('namespacerule.cssText','@namespace my-namespace url("http ://www.w3.org/1999/xhtml");');
22 shouldBeEqualToString('getComputedStyle(document.body).color', 'rgb(255, 0, 0)') ;
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698