diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index b3a49d17bb0..e30ea5215d0 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -18,7 +18,7 @@ use crate::Atom; use cssparser::Parser; use num_traits::FromPrimitive; use selectors::parser::SelectorParseErrorKind; -use std::fmt::{self, Write}; +use std::fmt::{self, Debug, Formatter, Write}; use style_traits::{CssWriter, KeywordsCollectFn, ParseError}; use style_traits::{SpecifiedValueInfo, StyleParseErrorKind, ToCss}; @@ -121,7 +121,6 @@ pub enum DisplayInside { #[derive( Clone, Copy, - Debug, Eq, FromPrimitive, Hash, @@ -657,6 +656,16 @@ impl SpecifiedValueInfo for Display { } } +impl Debug for Display { + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + f.debug_struct("Display") + .field("List Item", &self.is_list_item()) + .field("Inside", &self.inside()) + .field("Outside", &self.outside()) + .finish() + } +} + /// A specified value for the `vertical-align` property. pub type VerticalAlign = GenericVerticalAlign;