summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/handlers/html/box_special.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/handlers/html/box_special.c b/content/handlers/html/box_special.c
index 23cfeec0b..2332316ce 100644
--- a/content/handlers/html/box_special.c
+++ b/content/handlers/html/box_special.c
@@ -824,6 +824,13 @@ box_canvas(dom_node *n,
}
*convert_children = false;
+ if (box->style &&
+ ns_computed_display(box->style, box_is_root(n)) == CSS_DISPLAY_NONE)
+ return true;
+
+ /* This is replaced content */
+ box->flags |= IS_REPLACED | REPLACE_DIM;
+
return true;
}