diff options
Diffstat (limited to 'layout/style/nsStyleConsts.h')
-rw-r--r-- | layout/style/nsStyleConsts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/style/nsStyleConsts.h b/layout/style/nsStyleConsts.h index 8966932626..4d2043cc47 100644 --- a/layout/style/nsStyleConsts.h +++ b/layout/style/nsStyleConsts.h @@ -776,6 +776,12 @@ enum class StyleDisplay : uint8_t { #define NS_STYLE_WIDTH_MIN_CONTENT 1 #define NS_STYLE_WIDTH_FIT_CONTENT 2 #define NS_STYLE_WIDTH_AVAILABLE 3 +// The 'content' keyword is only valid for 'flex-basis' (not for 'width'). +// Since the 'flex-basis' property accepts exactly the same values as 'width', +// this 'flex-basis'-specific enumerated value is listed alongside the +// 'width' ones, to be sure we don't accidentally overload this numeric +// value with two different meanings if new 'width' keywords are added. +#define NS_STYLE_FLEX_BASIS_CONTENT 4 // See nsStyleDisplay.mPosition #define NS_STYLE_POSITION_STATIC 0 |