Issue #2477 - Part 2: Implement shorthand properties for [margin/padding][block/inline]

This commit is contained in:
FranklinDM 2024-03-29 20:34:58 +08:00 committed by roytam1
commit bfe76f65db
5 changed files with 157 additions and 0 deletions

View file

@ -2927,6 +2927,17 @@ static const nsCSSPropertyID gMarginSubpropTable[] = {
eCSSProperty_UNKNOWN
};
static const nsCSSPropertyID gMarginBlockSubpropTable[] = {
eCSSProperty_margin_block_start,
eCSSProperty_margin_block_end,
eCSSProperty_UNKNOWN
};
static const nsCSSPropertyID gMarginInlineSubpropTable[] = {
eCSSProperty_margin_inline_start,
eCSSProperty_margin_inline_end,
eCSSProperty_UNKNOWN
};
static const nsCSSPropertyID gOutlineSubpropTable[] = {
// nsCSSDeclaration.cpp outputs the subproperties in this order.
@ -3023,6 +3034,18 @@ static const nsCSSPropertyID gPaddingSubpropTable[] = {
eCSSProperty_UNKNOWN
};
static const nsCSSPropertyID gPaddingBlockSubpropTable[] = {
eCSSProperty_padding_block_start,
eCSSProperty_padding_block_end,
eCSSProperty_UNKNOWN
};
static const nsCSSPropertyID gPaddingInlineSubpropTable[] = {
eCSSProperty_padding_inline_start,
eCSSProperty_padding_inline_end,
eCSSProperty_UNKNOWN
};
static const nsCSSPropertyID gTextDecorationSubpropTable[] = {
eCSSProperty_text_decoration_color,
eCSSProperty_text_decoration_line,