<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6203</bug_id>
          
          <creation_ts>2008-11-02 21:22:29 +0000</creation_ts>
          <short_desc>Escape of new line inside a string with backslash</short_desc>
          <delta_ts>2008-11-05 22:31:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>CSS 2.1</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?uri=http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/escape-newline-with-backslash-inside-string.html&amp;warning=2&amp;profile=css21&amp;usermedium=all</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gérard Talbot">info</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22332</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2008-11-02 21:22:29 +0000</bug_when>
    <thetext>Relevant code involved
----------------------
  &lt;style type=&quot;text/css&quot;&gt;
  #test
  {
  background-color: red;
  background-color: gre\
en;
  color: white;
  }
  &lt;/style&gt;

(...)

  &lt;p id=&quot;test&quot;&gt;This line should be green.&lt;/p&gt;



Testcase URL
------------
http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/escape-newline-with-backslash-inside-string.html



CSS validation report:
---------------------
http://jigsaw.w3.org/css-validator/validator?uri=http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/escape-newline-with-backslash-inside-string.html&amp;warning=2&amp;profile=css21&amp;usermedium=all

which reports 

Line 44	 #test 
Value Error : background-color  
Lexical error at line 5, column 25. 
Encountered: &quot;\n&quot; (10), after : &quot;\\&quot;  gre en; 


Relevant CSS 2.1 spec involved
------------------------------
&quot;
(...) inside a string, a backslash followed by a newline is ignored (i.e., the string is deemed not to contain either the backslash or the newline).
&quot;
coming from CSS 2.1, section 4.1.3 Characters and case
http://www.w3.org/TR/CSS21/syndata.html#characters

Notes
-----
- I have searched for a duplicate and did not find any
- So far, only Gecko-based browsers (Firefox 3.0.3 rv: 1.9.0.3 build 2008092417, Netscape 7.2 rv:1.7.2 build 20040804, Seamonkey 2.0a2pre rv: 1.9.1b2pre build 20081031, K-meleon 1.51 rv:1.8.1.17 build 20080919) seem to comply/agree with my understanding of the CSS 2.1 spec involved.

Regards, Gérard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22363</commentid>
    <comment_count>1</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2008-11-05 22:31:47 +0000</bug_when>
    <thetext>After a discussion in the W3C Emailing list for WWW Style &lt;www-style@w3.org&gt; with the subject line 
&quot;[CSS2.1] Clarification on section 4.1.3 and the application of escaped newlines to identifiers.&quot;
started on November 5th 2008
http://lists.w3.org/Archives/Public/www-style/2008Nov/0035.html
it was established that my testcase was based on a misunderstanding of the issue involved: the backslash (\) character is to be used for visible character (inside a string; above code position 32). My mistake. So, 

resolving this bug as INVALID</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>