Disable in Layout 2020 an assertion that does not apply there

This commit is contained in:
Simon Sapin 2019-12-08 10:22:11 +01:00
parent 6cf618ae9f
commit d717382c0c

View file

@ -454,10 +454,11 @@ impl ToCss for Display {
where
W: fmt::Write,
{
#[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
debug_assert_ne!(
self.inside(),
DisplayInside::Flow,
"`flow` never appears in `display` computed value"
"`flow` fears in `display` computed value"
);
let outside = self.outside();
let inside = match self.inside() {