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

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

Issue 1322543004: CSSStyleSheet::insertRule should respect the default namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2
3 <style>
4 @namespace url(banana);
5 *|div {
6 width: 100px;
7 height: 100px;
8 background-color: green;
9 }
10 </style>
11 <div id=target></div>
12
13 <script src="../../../resources/testharness.js"></script>
14 <script src="../../../resources/testharnessreport.js"></script>
15
16 <script>
17 test(function(){
18 document.styleSheets[0].insertRule('#target { background-color: red; }', 1);
19 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)');
20 }, "CSSStyleSheet::insertRule should respect default namespaces");
21 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698