style: followup: set the rule type in the custom properties code, since we use it.

Though I think it may be slightly fishy if used in, e.g., a @keyframes block.

For our purposes right now it doesn't make a difference, I think.

Bug: 1466008
MozReview-Commit-ID: A7VCTOqaIuB
This commit is contained in:
Emilio Cobos Álvarez 2018-06-01 16:13:15 +02:00
parent 600f19540e
commit 8777c4ee63
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -1422,10 +1422,12 @@ impl UnparsedValue {
.and_then(|css| {
// As of this writing, only the base URL is used for property
// values.
//
// FIXME(emilio): These bits are slightly fishy.
let context = ParserContext::new(
Origin::Author,
&self.url_data,
None,
Some(CssRuleType::Style),
ParsingMode::DEFAULT,
quirks_mode,
);