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

Side by Side 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, 5 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5
6 <style>
7 @namespace html url(http://www.w3.org/1999/xhtml);
8 @namespace html url("bad-string-token
9 );
10 div {
11 background-color: red;
12 width: 100px;
13 height: 100px;
14 }
15 html|div {
16 background-color: green;
17 }
18 </style>
19
20 <div id=div></div>
21
22 <script>
23 test(() => {
24 assert_equals(getComputedStyle(div).backgroundColor, "rgb(0, 128, 0)");
25 });
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698