CSS 2.1 failure: eof-003.htm fails
authorrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 18 Mar 2012 11:33:04 +0000 (11:33 +0000)
committerrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 18 Mar 2012 11:33:04 +0000 (11:33 +0000)
commitb3559a703471f88e169220de565bcc97ea791c8d
tree47de01ff570cb4994d96b033572c6a80e33816ec
parentd3656da7f369297c2ab52543dc169147ecb31da1
CSS 2.1 failure: eof-003.htm fails
https://bugs.webkit.org/show_bug.cgi?id=78538

Reviewed by Antti Koivisto.

Source/WebCore:

Tests: css2.1/20110323/eof-001.htm
       css2.1/20110323/eof-003.htm
       css2.1/20110323/eof-004.htm
       css2.1/20110323/eof-005.htm
       css2.1/20110323/eof-006.htm
       css2.1/20110323/eof-007.htm

This patch fixes eof-003.htm, eof-005.htm and eof-006.htm. The other eof-* tests already pass.

* css/CSSGrammar.y: Allow EOF as well as ';' to terminate import rules.
                    This should probably be done for other rules in a separate patch.
* css/CSSParser.cpp:
(WebCore::CSSParser::checkAndSkipString): Allow strings to end with EOF.
(WebCore::CSSParser::parseString): ditto

LayoutTests:

* css2.1/20110323/eof-001-expected.html: Added.
* css2.1/20110323/eof-001.htm: Added.
* css2.1/20110323/eof-003-expected.html: Added.
* css2.1/20110323/eof-003.htm: Added.
* css2.1/20110323/eof-004-expected.html: Added.
* css2.1/20110323/eof-004.htm: Added.
* css2.1/20110323/eof-005-expected.html: Added.
* css2.1/20110323/eof-005.htm: Added.
* css2.1/20110323/eof-006-expected.html: Added.
* css2.1/20110323/eof-006.htm: Added.
* css2.1/20110323/eof-007-expected.html: Added.
* css2.1/20110323/eof-007.htm: Added.
* css2.1/20110323/support/eof-green.css: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/css2.1/20110323/eof-001-expected.html [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-001.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-003-expected.html [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-003.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-004-expected.html [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-004.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-005-expected.html [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-005.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-006-expected.html [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-006.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-007-expected.html [new file with mode: 0644]
LayoutTests/css2.1/20110323/eof-007.htm [new file with mode: 0644]
LayoutTests/css2.1/20110323/support/eof-green.css [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSGrammar.y
Source/WebCore/css/CSSParser.cpp