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

@ -1474,6 +1474,10 @@ Declaration::GetPropertyValueInternal(
}
MOZ_FALLTHROUGH;
}
case eCSSProperty_margin_block:
case eCSSProperty_margin_inline:
case eCSSProperty_padding_block:
case eCSSProperty_padding_inline:
case eCSSProperty_gap: {
const nsCSSPropertyID* subprops =
nsCSSProps::SubpropertyEntryFor(aProperty);