Bug 19567

Summary: Parsing malformed rules: Valid rule after malformed rule
Product: WebKit Reporter: Joe W <wilwayco>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://samples.msdn.microsoft.com/csstestpages/Chapter_4/malformed-decl-006.htm

Description Joe W 2008-06-16 00:47:16 PDT
Couldn't find if this was reported already... Just looking at what IE8 guys are up to...  But current nightly build (as of 6/16/08 2am CST) isn't handling the malformed CSS correctly...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS 2.1 Test Suite: Parsing malformed rules: Valid rule after malformed rule</title>
        <link rel="author" title="Microsoft" href="http://www.microsoft.com" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#parsing-errors" />
        <meta name="flags" content="invalid" />
        <meta name="assert" content="Malformed rules should be ignored while valid rules are applied." />
        <style type="text/css">
            p
            {
                color: red;
                color{;color: red}; <!-- malformed rule --/>
                color: green;
            }
        </style>
    </head>
    <body>
        <p>This text should be green.</p>
    </body>
</html>
Comment 1 Joe W 2008-06-16 00:49:11 PDT
Related to: http://samples.msdn.microsoft.com/csstestpages/Chapter_4/malformed-decl-005.htm (Parsing malformed rules: Semi-colon before property) 
Comment 2 Robert Blaut 2008-07-18 01:33:17 PDT

*** This bug has been marked as a duplicate of 14346 ***