diff --git a/components/style/stylesheets/document_rule.rs b/components/style/stylesheets/document_rule.rs index 596ea487510..ad2c9d86219 100644 --- a/components/style/stylesheets/document_rule.rs +++ b/components/style/stylesheets/document_rule.rs @@ -224,6 +224,10 @@ impl DocumentCondition { return true; } + if !unsafe { structs::StylePrefs_sMozDocumentURLPrefixHackEnabled } { + return false; + } + // Allow a single url-prefix() for compatibility. // // See bug 1446470 and dependencies.