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

Unified Diff: LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml

Issue 1305973007: Clean up empty namespace handling and fix empty namespaces in compound selectors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@defaultns
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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml
diff --git a/LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml b/LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml
new file mode 100644
index 0000000000000000000000000000000000000000..b40e8d63adcd7684c52b5405518a65f60b355905
--- /dev/null
+++ b/LayoutTests/fast/css/namespaces/empty-namespace-compound-selector-1.xhtml
@@ -0,0 +1,27 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<style>
+@namespace url(foo);
+
+*|div {
+ display: block;
+ width: 100px;
+ height: 100px;
+ background-color: red;
+}
+
+|div#target {
+ background-color: green;
+}
+</style>
+<div id="target" xmlns=""></div>
+
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+
+<script>
+test(function(){
+ assert_equals(getComputedStyle(document.getElementById('target')).backgroundColor, 'rgb(0, 128, 0)');
+}, "Empty namespaces should work correctly on compound selectors");
+</script>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698