W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2008

[Bug 6203] New: Escape of new line inside a string with backslash

From: <bugzilla@wiggum.w3.org>
Date: Sun, 02 Nov 2008 21:22:30 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-6203-169@http.www.w3.org/Bugs/Public/>


           Summary: Escape of new line inside a string with backslash
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
               URL: http://jigsaw.w3.org/css-
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 2.1
        AssignedTo: dave.null@w3.org
        ReportedBy: info@gtalbot.org
         QAContact: www-validator-cvs@w3.org

Relevant code involved
  <style type="text/css">
  background-color: red;
  background-color: gre\
  color: white;


  <p id="test">This line should be green.</p>

Testcase URL

CSS validation report:

which reports 

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

Relevant CSS 2.1 spec involved
(...) 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).
coming from CSS 2.1, section 4.1.3 Characters and case

- I have searched for a duplicate and did not find any
- So far, only Gecko-based browsers (Firefox 3.0.3 rv: 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: build 20080919) seem to
comply/agree with my understanding of the CSS 2.1 spec involved.

Regards, Gérard

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Sunday, 2 November 2008 21:22:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:34 UTC