Issue #1370 - Part 3: Implement content keyword for flex-basis property

Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1105111
This commit is contained in:
FranklinDM 2022-04-06 23:59:01 +08:00 committed by roytam1
commit 9dc59c43f1
9 changed files with 63 additions and 8 deletions

View file

@ -778,6 +778,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