55 * LICENSE file in the root directory of this source tree.
66 */
77
8- // List derived from Gecko source code:
9- // https://github.com/mozilla/gecko-dev/ blob/4e638efc71 /layout/style/test/property_database.js
8+ // List derived from Firefox source code:
9+ // https://github.com/mozilla-firefox/firefox/ blob/58f365ba0eb5761a182f1925e4654cc75212b8ac /layout/style/test/property_database.js
1010export const shorthandToLonghand = {
1111animation : [
1212'animationDelay' ,
@@ -49,6 +49,15 @@ export const shorthandToLonghand = {
4949'borderTopStyle' ,
5050'borderTopWidth' ,
5151] ,
52+ borderBlock : [
53+ 'borderBlockEndColor' ,
54+ 'borderBlockEndStyle' ,
55+ 'borderBlockEndWidth' ,
56+ 'borderBlockStartColor' ,
57+ 'borderBlockStartStyle' ,
58+ 'borderBlockStartWidth' ,
59+ ] ,
60+ borderBlockColor : [ 'borderBlockEndColor' , 'borderBlockStartColor' ] ,
5261borderBlockEnd : [
5362'borderBlockEndColor' ,
5463'borderBlockEndStyle' ,
@@ -59,6 +68,8 @@ export const shorthandToLonghand = {
5968'borderBlockStartStyle' ,
6069'borderBlockStartWidth' ,
6170] ,
71+ borderBlockStyle : [ 'borderBlockEndStyle' , 'borderBlockStartStyle' ] ,
72+ borderBlockWidth : [ 'borderBlockEndWidth' , 'borderBlockStartWidth' ] ,
6273borderBottom : [ 'borderBottomColor' , 'borderBottomStyle' , 'borderBottomWidth' ] ,
6374borderColor : [
6475'borderBottomColor' ,
@@ -73,6 +84,15 @@ export const shorthandToLonghand = {
7384'borderImageSource' ,
7485'borderImageWidth' ,
7586] ,
87+ borderInline : [
88+ 'borderInlineEndColor' ,
89+ 'borderInlineEndStyle' ,
90+ 'borderInlineEndWidth' ,
91+ 'borderInlineStartColor' ,
92+ 'borderInlineStartStyle' ,
93+ 'borderInlineStartWidth' ,
94+ ] ,
95+ borderInlineColor : [ 'borderInlineEndColor' , 'borderInlineStartColor' ] ,
7696borderInlineEnd : [
7797'borderInlineEndColor' ,
7898'borderInlineEndStyle' ,
@@ -83,6 +103,8 @@ export const shorthandToLonghand = {
83103'borderInlineStartStyle' ,
84104'borderInlineStartWidth' ,
85105] ,
106+ borderInlineStyle : [ 'borderInlineEndStyle' , 'borderInlineStartStyle' ] ,
107+ borderInlineWidth : [ 'borderInlineEndWidth' , 'borderInlineStartWidth' ] ,
86108borderLeft : [ 'borderLeftColor' , 'borderLeftStyle' , 'borderLeftWidth' ] ,
87109borderRadius : [
88110'borderBottomLeftRadius' ,
@@ -104,8 +126,11 @@ export const shorthandToLonghand = {
104126'borderRightWidth' ,
105127'borderTopWidth' ,
106128] ,
129+ colorAdjust : [ 'printColorAdjust' ] ,
107130columnRule : [ 'columnRuleColor' , 'columnRuleStyle' , 'columnRuleWidth' ] ,
108131columns : [ 'columnCount' , 'columnWidth' ] ,
132+ containIntrinsicSize : [ 'containIntrinsicHeight' , 'containIntrinsicWidth' ] ,
133+ container : [ 'containerName' , 'containerType' ] ,
109134flex : [ 'flexBasis' , 'flexGrow' , 'flexShrink' ] ,
110135flexFlow : [ 'flexDirection' , 'flexWrap' ] ,
111136font : [
@@ -127,6 +152,12 @@ export const shorthandToLonghand = {
127152'fontWeight' ,
128153'lineHeight' ,
129154] ,
155+ fontSynthesis : [
156+ 'fontSynthesisPosition' ,
157+ 'fontSynthesisSmallCaps' ,
158+ 'fontSynthesisStyle' ,
159+ 'fontSynthesisWeight' ,
160+ ] ,
130161fontVariant : [
131162'fontVariantAlternates' ,
132163'fontVariantCaps' ,
@@ -155,8 +186,13 @@ export const shorthandToLonghand = {
155186'gridTemplateColumns' ,
156187'gridTemplateRows' ,
157188] ,
189+ inset : [ 'bottom' , 'left' , 'right' , 'top' ] ,
190+ insetBlock : [ 'insetBlockEnd' , 'insetBlockStart' ] ,
191+ insetInline : [ 'insetInlineEnd' , 'insetInlineStart' ] ,
158192listStyle : [ 'listStyleImage' , 'listStylePosition' , 'listStyleType' ] ,
159193margin : [ 'marginBottom' , 'marginLeft' , 'marginRight' , 'marginTop' ] ,
194+ marginBlock : [ 'marginBlockEnd' , 'marginBlockStart' ] ,
195+ marginInline : [ 'marginInlineEnd' , 'marginInlineStart' ] ,
160196marker : [ 'markerEnd' , 'markerMid' , 'markerStart' ] ,
161197mask : [
162198'maskClip' ,
@@ -170,23 +206,57 @@ export const shorthandToLonghand = {
170206'maskSize' ,
171207] ,
172208maskPosition : [ 'maskPositionX' , 'maskPositionY' ] ,
209+ offset : [
210+ 'offsetAnchor' ,
211+ 'offsetDistance' ,
212+ 'offsetPath' ,
213+ 'offsetPosition' ,
214+ 'offsetRotate' ,
215+ ] ,
173216outline : [ 'outlineColor' , 'outlineStyle' , 'outlineWidth' ] ,
174217overflow : [ 'overflowX' , 'overflowY' ] ,
218+ overscrollBehavior : [ 'overscrollBehaviorX' , 'overscrollBehaviorY' ] ,
175219padding : [ 'paddingBottom' , 'paddingLeft' , 'paddingRight' , 'paddingTop' ] ,
220+ paddingBlock : [ 'paddingBlockEnd' , 'paddingBlockStart' ] ,
221+ paddingInline : [ 'paddingInlineEnd' , 'paddingInlineStart' ] ,
222+ pageBreakAfter : [ 'breakAfter' ] ,
223+ pageBreakBefore : [ 'breakBefore' ] ,
224+ pageBreakInside : [ 'breakInside' ] ,
176225placeContent : [ 'alignContent' , 'justifyContent' ] ,
177226placeItems : [ 'alignItems' , 'justifyItems' ] ,
178227placeSelf : [ 'alignSelf' , 'justifySelf' ] ,
228+ scrollMargin : [
229+ 'scrollMarginBottom' ,
230+ 'scrollMarginLeft' ,
231+ 'scrollMarginRight' ,
232+ 'scrollMarginTop' ,
233+ ] ,
234+ scrollMarginBlock : [ 'scrollMarginBlockEnd' , 'scrollMarginBlockStart' ] ,
235+ scrollMarginInline : [ 'scrollMarginInlineEnd' , 'scrollMarginInlineStart' ] ,
236+ scrollPadding : [
237+ 'scrollPaddingBottom' ,
238+ 'scrollPaddingLeft' ,
239+ 'scrollPaddingRight' ,
240+ 'scrollPaddingTop' ,
241+ ] ,
242+ scrollPaddingBlock : [ 'scrollPaddingBlockEnd' , 'scrollPaddingBlockStart' ] ,
243+ scrollPaddingInline : [ 'scrollPaddingInlineEnd' , 'scrollPaddingInlineStart' ] ,
179244textDecoration : [
180245'textDecorationColor' ,
181246'textDecorationLine' ,
182247'textDecorationStyle' ,
248+ 'textDecorationThickness' ,
183249] ,
184250textEmphasis : [ 'textEmphasisColor' , 'textEmphasisStyle' ] ,
251+ textWrap : [ 'textWrapMode' , 'textWrapStyle' ] ,
185252transition : [
253+ 'transitionBehavior' ,
186254'transitionDelay' ,
187255'transitionDuration' ,
188256'transitionProperty' ,
189257'transitionTimingFunction' ,
190258] ,
259+ verticalAlign : [ 'alignmentBaseline' , 'baselineShift' , 'baselineSource' ] ,
260+ whiteSpace : [ 'textWrapMode' , 'whiteSpaceCollapse' ] ,
191261wordWrap : [ 'overflowWrap' ] ,
192262} ;
0 commit comments