From 8777c4ee638406eee0d109715080dd1dc135a070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 1 Jun 2018 16:13:15 +0200 Subject: [PATCH] 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 --- components/style/properties/properties.mako.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 9ce7d3dfc38..b7bc96973b3 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -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, );