diff --git a/IPython/html/static/notebook/less/outputarea.less b/IPython/html/static/notebook/less/outputarea.less
index 6b3b9d8..803de45 100644
--- a/IPython/html/static/notebook/less/outputarea.less
+++ b/IPython/html/static/notebook/less/outputarea.less
@@ -106,6 +106,8 @@ div.output_subarea {
overflow-x: auto;
padding: @code_padding;
.box-flex1();
+ // appears to be needed for max-width in children to mean anything on Firefox:
+ max-width: 100%;
}
/* The rest of the output_* classes are for special styling of the different
diff --git a/IPython/html/static/style/ipython.min.css b/IPython/html/static/style/ipython.min.css
index 10889b2..a498c6a 100644
--- a/IPython/html/static/style/ipython.min.css
+++ b/IPython/html/static/style/ipython.min.css
@@ -890,6 +890,7 @@ div.output_subarea {
box-flex: 1;
/* Modern browsers */
flex: 1;
+ max-width: 100%;
}
/* The rest of the output_* classes are for special styling of the different
output types */
diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css
index 86f489e..f04ac96 100644
--- a/IPython/html/static/style/style.min.css
+++ b/IPython/html/static/style/style.min.css
@@ -9682,6 +9682,7 @@ div.output_subarea {
box-flex: 1;
/* Modern browsers */
flex: 1;
+ max-width: 100%;
}
/* The rest of the output_* classes are for special styling of the different
output types */