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

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 @namespace html url(http://www.w3.org/1999/xhtml);
6 html|div {
7 width: 100px;
8 height: 100px;
9 background-color: green;
10 }
11 </style>
12 <div id=div></div>
alancutter (OOO until 2018) 2015/09/03 07:40:12 HTML element tagnames as ids. D:
13
14 <script src="../../../resources/testharness.js"></script>
15 <script src="../../../resources/testharnessreport.js"></script>
16
17 <script>
18 test(function(){
19 document.styleSheets[0].insertRule('#div { background-color: red; }', 1);
20 assert_equals(getComputedStyle(div).backgroundColor, 'rgb(0, 128, 0)');
21 }, "CSSStyleSheet::insertRule should respect default namespaces");
22 </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