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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/namespaces/namespaces-invalid-prefix.xhtml

Issue 1583713003: Reject compound selectors with unknown namespace prefixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <style> 2 <style>
3 abc|div { 3 abc|div {
4 background-color: red; 4 background-color: red;
5 } 5 }
6 6
7 abc|div#target {
8 background-color: red;
9 }
10
7 [abc|id] { 11 [abc|id] {
8 background-color: green; 12 background-color: green;
9 } 13 }
10 </style> 14 </style>
11 <div id="target"></div> 15 <div id="target"></div>
12 16
13 <script src="../../../resources/testharness.js"></script> 17 <script src="../../../resources/testharness.js"></script>
14 <script src="../../../resources/testharnessreport.js"></script> 18 <script src="../../../resources/testharnessreport.js"></script>
15 19
16 <script> 20 <script>
17 test(function(){ 21 test(function(){
18 assert_equals(document.styleSheets[0].cssRules.length, 0); 22 assert_equals(document.styleSheets[0].cssRules.length, 0);
19 }, "Style rules with namespace prefixes not declared before, should be ignored") ; 23 }, "Style rules with namespace prefixes not declared before, should be ignored") ;
20 </script> 24 </script>
21 25
22 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSSelectorParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698