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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/namespaces/invalid-url-in-namespace.html

Issue 1930823002: Fix assertion when parsing @namespace/@import with url(<bad-string-token>) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blablabla Created 4 years, 6 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: third_party/WebKit/LayoutTests/fast/css/namespaces/invalid-url-in-namespace.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/namespaces/invalid-url-in-namespace.html b/third_party/WebKit/LayoutTests/fast/css/namespaces/invalid-url-in-namespace.html
new file mode 100644
index 0000000000000000000000000000000000000000..0956f2c1b1aaa1bf98309bd1616844fcb0c32a5d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/namespaces/invalid-url-in-namespace.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+
+<style>
+ @namespace html url(http://www.w3.org/1999/xhtml);
+ @namespace html url("bad-string-token
+ );
+ div {
+ background-color: red;
+ width: 100px;
+ height: 100px;
+ }
+ html|div {
+ background-color: green;
+ }
+</style>
+
+<div id=div></div>
+
+<script>
+test(() => {
+ assert_equals(getComputedStyle(div).backgroundColor, "rgb(0, 128, 0)");
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698