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

Unified Diff: LayoutTests/fast/css/namespaces/namespaces-invalid-prefix.xhtml

Issue 1326403002: Selectors with unknown namespace prefixes should be dropped. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated test cases 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/css/css-selector-text.html ('k') | Source/core/css/parser/CSSSelectorParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/namespaces/namespaces-invalid-prefix.xhtml
diff --git a/LayoutTests/fast/css/namespaces/namespaces-invalid-prefix.xhtml b/LayoutTests/fast/css/namespaces/namespaces-invalid-prefix.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..65246f0679a6d73a516551ff933559a62675b75d
--- /dev/null
+++ b/LayoutTests/fast/css/namespaces/namespaces-invalid-prefix.xhtml
@@ -0,0 +1,22 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<style>
+abc|div {
+ background-color: red;
+}
+
+[abc|id] {
+ background-color: green;
+}
+</style>
+<div id="target"></div>
+
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+
+<script>
+test(function(){
+ assert_equals(document.styleSheets[0].cssRules.length, 0);
+}, "Style rules with namespace prefixes not declared before, should be ignored");
+</script>
+
+</html>
« no previous file with comments | « LayoutTests/fast/css/css-selector-text.html ('k') | Source/core/css/parser/CSSSelectorParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698