mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Allow @-moz-document url-prefix() on content.
MozReview-Commit-ID: zaT41fpsDT Bug: 1446470 Reviewed-by: xidorn
This commit is contained in:
parent
652633aee2
commit
9bb4033ec3
2 changed files with 44 additions and 16 deletions
|
@ -422,19 +422,6 @@ impl<'a, 'b, 'i, R: ParseErrorReporter> AtRuleParser<'i> for NestedRuleParser<'a
|
|||
))
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
{
|
||||
use gecko_bindings::structs;
|
||||
|
||||
if self.stylesheet_origin == Origin::Author &&
|
||||
unsafe { !structs::StylePrefs_sMozDocumentEnabledInContent }
|
||||
{
|
||||
return Err(input.new_custom_error(
|
||||
StyleParseErrorKind::UnsupportedAtRule(name.clone())
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
let cond = DocumentCondition::parse(self.context, input)?;
|
||||
Ok(AtRuleType::WithBlock(AtRuleBlockPrelude::Document(cond, location)))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue