Commit Graph

9 Commits

Author SHA1 Message Date
Boris Zbarsky
bc00bad8e7 Bug 748254. When we encounter an unexpected '}' terminating a font-face descriptor's value, correctly close the font-face rule instead of eating the rest of the stylesheet. r=dbaron 2012-04-26 00:42:00 -04:00
L. David Baron
2cc1b79dee Use GatherURL in ParseNameSpaceRule and ParseImageRect, and rename GatherURL to ParseURLOrString for clarity. (Bug 604179, patch 1) r=bzbarsky
Note that this adds a missing UngetToken(), which affects the other
consumer of GatherURL, parsing of @import rules.
2011-03-11 11:29:44 -06:00
Boris Zbarsky
6cefb0ebb7 Bug 616137. Skip to the nearest ']' when parsing an attr selector fails. r=dbaron 2011-03-04 10:27:02 -05:00
L. David Baron
e464a55e5e Fix skipping of @-rules that are inside blocks to conform to new rule in CSS 2.1, which says that we must look for end-of-outer-block in addition to a semicolon or a block. (Bug 604175) r=bzbarsky
This fixes http://test.csswg.org/suites/css2.1/20110111/html4/at-rule-013.htm

Needed to help CSS 2.1 meet Proposed Recommendation entrance criteria.
2011-03-03 13:18:42 -08:00
L. David Baron
f23dbb6689 Revert changes in 0ff87d9d2d73 (Bug 541434) and adjust tests appropriately. (Bug 569646) r=zwol 2010-06-03 13:11:35 -07:00
L. David Baron
bb3c76512c Add more tests for invalid URL parsing for CSS 2.1 issue 129. 2010-05-21 13:17:58 -07:00
Zack Weinberg
0f2079363a Bug 508466 part 1: Refactor nsCSSParser::ParseSelector and nsCSSParser::ParseSelectorGroup for clarity. r=dbaron 2010-03-31 11:08:08 -07:00
L. David Baron
55ccca2fa3 Fake pushback of invalid eCSSToken_URL results from NextURL. (Bug 541434) r=bzbarsky 2010-01-24 12:06:19 -08:00
L. David Baron
578e19c42c Add reftest for tokenization and parsing of CSS url() function. 2010-01-22 14:51:11 -08:00