uri-016

Error handling of broken url() with open /*

WeasyPrint

This browser

Assertion
Comments are just regular tokens inside unquoted URLs.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: Error handling of broken url() with open /*</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/parsing/uri/007.html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#uri">
 9   <meta name="flags" content="">
10   <meta name="assert" content="Comments are just regular tokens inside      unquoted URLs.">
11   <style type="text/css">
12    * { color: red; }
13    .one { background: red url(test/* test); color: green; }
14    .two { background: red; background: white url( test/*test ); color: white; }
15    .three { background: xtest url( test/*test ); color: white; }
16 
17    .four { background: red url(/* test); color: green; }
18    .five { background: red; background: white url( /*test ); color: white; }
19    .six { background: xtest url( /*test ); color: white; }
20   </style>
21  </head>
22  <body>
23   <p class="one">This sentence must be green and there must be no red.</p>
24   <p class="two">There must be no red on this page.</p>
25   <p class="three">There must be no red on this page.</p>
26   <p class="four">This sentence must be green and there must be no red.</p>
27   <p class="five">There must be no red on this page.</p>
28   <p class="six">There must be no red on this page.</p>
29  </body>
30 </html>