|
@@ -3155,6 +3155,14 @@ static int parse_display(const char *s, unsigned int len)
|
|
|
return BR_DISPLAY_FLEX;
|
|
return BR_DISPLAY_FLEX;
|
|
|
if (i == 11 && ci_eq_n(s, "inline-flex", 11))
|
|
if (i == 11 && ci_eq_n(s, "inline-flex", 11))
|
|
|
return BR_DISPLAY_FLEX;
|
|
return BR_DISPLAY_FLEX;
|
|
|
|
|
+ /* Legacy -webkit-box is the line-clamp idiom; render it as a normal
|
|
|
|
|
+ * block instead of an inline box. */
|
|
|
|
|
+ if (i == 11 && ci_eq_n(s, "-webkit-box", 11))
|
|
|
|
|
+ return BR_DISPLAY_BLOCK;
|
|
|
|
|
+ if (i == 8 && ci_eq_n(s, "-moz-box", 8))
|
|
|
|
|
+ return BR_DISPLAY_BLOCK;
|
|
|
|
|
+ if (i == 11 && ci_eq_n(s, "-ms-flexbox", 11))
|
|
|
|
|
+ return BR_DISPLAY_FLEX;
|
|
|
if (i == 5 && ci_eq_n(s, "table", 5))
|
|
if (i == 5 && ci_eq_n(s, "table", 5))
|
|
|
return BR_DISPLAY_BLOCK;
|
|
return BR_DISPLAY_BLOCK;
|
|
|
if (i == 10 && ci_eq_n(s, "table-cell", 10))
|
|
if (i == 10 && ci_eq_n(s, "table-cell", 10))
|