Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin 219e330768 Bug 1259889 Part 1 - Add @supports -moz-bool-pref for internal-only style sheets. r=heycam
This is a internal-only syntax for guarding rules from a boolean
preference. Nothing causes @supports rules to be re-evaluated except
html.css registered in Part 2.

This is needed for rendering the disclosure triangle of the
summary element by using "display: list-item".

Usage example:
@supports -moz-bool-pref("dom.details_element.enabled") {
  /* css rules */
}

MozReview-Commit-ID: HDCa8zHxYTA

--HG--
extra : rebase_source : b7a72a48166edf1d486014ff37363ed8be9127d9
2016-04-01 21:11:11 +08:00
Boris Zbarsky f74dac01c5 Bug 1175192. Consistently allow identifiers to start with -- in the CSS parser. r=heycam 2015-06-24 10:17:05 -07:00
Boris Zbarsky b38f6768b1 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 3ec2ecbf58 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 f777ddac6c 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 81285a506b 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
Zack Weinberg 3b15f59e43 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 1dd144bce3 Fake pushback of invalid eCSSToken_URL results from NextURL. (Bug 541434) r=bzbarsky 2010-01-24 12:06:19 -08:00
L. David Baron af8cdfd292 Add reftest for tokenization and parsing of CSS url() function. 2010-01-22 14:51:11 -08:00