Parse -moz-alt-content as a whole content value (fixes #15726)

This commit is contained in:
Anthony Ramine 2017-05-19 02:23:48 +02:00
parent 8cd4330b2a
commit 499e81410f
4 changed files with 37 additions and 31 deletions

View file

@ -1820,9 +1820,8 @@ impl ComputedValues {
pub fn ineffective_content_property(&self) -> bool {
use properties::longhands::content::computed_value::T;
match self.get_counters().content {
T::normal |
T::none => true,
T::Content(ref items) => items.is_empty(),
T::Normal | T::None => true,
T::Items(ref items) => items.is_empty(),
}
}