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 = {
1111 animation : [
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' ] ,
5261 borderBlockEnd : [
5362 'borderBlockEndColor' ,
5463 'borderBlockEndStyle' ,
@@ -59,6 +68,8 @@ export const shorthandToLonghand = {
5968 'borderBlockStartStyle' ,
6069 'borderBlockStartWidth' ,
6170 ] ,
71+ borderBlockStyle : [ 'borderBlockEndStyle' , 'borderBlockStartStyle' ] ,
72+ borderBlockWidth : [ 'borderBlockEndWidth' , 'borderBlockStartWidth' ] ,
6273 borderBottom : [ 'borderBottomColor' , 'borderBottomStyle' , 'borderBottomWidth' ] ,
6374 borderColor : [
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' ] ,
7696 borderInlineEnd : [
7797 'borderInlineEndColor' ,
7898 'borderInlineEndStyle' ,
@@ -83,6 +103,8 @@ export const shorthandToLonghand = {
83103 'borderInlineStartStyle' ,
84104 'borderInlineStartWidth' ,
85105 ] ,
106+ borderInlineStyle : [ 'borderInlineEndStyle' , 'borderInlineStartStyle' ] ,
107+ borderInlineWidth : [ 'borderInlineEndWidth' , 'borderInlineStartWidth' ] ,
86108 borderLeft : [ 'borderLeftColor' , 'borderLeftStyle' , 'borderLeftWidth' ] ,
87109 borderRadius : [
88110 'borderBottomLeftRadius' ,
@@ -104,8 +126,11 @@ export const shorthandToLonghand = {
104126 'borderRightWidth' ,
105127 'borderTopWidth' ,
106128 ] ,
129+ colorAdjust : [ 'printColorAdjust' ] ,
107130 columnRule : [ 'columnRuleColor' , 'columnRuleStyle' , 'columnRuleWidth' ] ,
108131 columns : [ 'columnCount' , 'columnWidth' ] ,
132+ containIntrinsicSize : [ 'containIntrinsicHeight' , 'containIntrinsicWidth' ] ,
133+ container : [ 'containerName' , 'containerType' ] ,
109134 flex : [ 'flexBasis' , 'flexGrow' , 'flexShrink' ] ,
110135 flexFlow : [ 'flexDirection' , 'flexWrap' ] ,
111136 font : [
@@ -127,6 +152,12 @@ export const shorthandToLonghand = {
127152 'fontWeight' ,
128153 'lineHeight' ,
129154 ] ,
155+ fontSynthesis : [
156+ 'fontSynthesisPosition' ,
157+ 'fontSynthesisSmallCaps' ,
158+ 'fontSynthesisStyle' ,
159+ 'fontSynthesisWeight' ,
160+ ] ,
130161 fontVariant : [
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' ] ,
158192 listStyle : [ 'listStyleImage' , 'listStylePosition' , 'listStyleType' ] ,
159193 margin : [ 'marginBottom' , 'marginLeft' , 'marginRight' , 'marginTop' ] ,
194+ marginBlock : [ 'marginBlockEnd' , 'marginBlockStart' ] ,
195+ marginInline : [ 'marginInlineEnd' , 'marginInlineStart' ] ,
160196 marker : [ 'markerEnd' , 'markerMid' , 'markerStart' ] ,
161197 mask : [
162198 'maskClip' ,
@@ -170,23 +206,57 @@ export const shorthandToLonghand = {
170206 'maskSize' ,
171207 ] ,
172208 maskPosition : [ 'maskPositionX' , 'maskPositionY' ] ,
209+ offset : [
210+ 'offsetAnchor' ,
211+ 'offsetDistance' ,
212+ 'offsetPath' ,
213+ 'offsetPosition' ,
214+ 'offsetRotate' ,
215+ ] ,
173216 outline : [ 'outlineColor' , 'outlineStyle' , 'outlineWidth' ] ,
174217 overflow : [ 'overflowX' , 'overflowY' ] ,
218+ overscrollBehavior : [ 'overscrollBehaviorX' , 'overscrollBehaviorY' ] ,
175219 padding : [ 'paddingBottom' , 'paddingLeft' , 'paddingRight' , 'paddingTop' ] ,
220+ paddingBlock : [ 'paddingBlockEnd' , 'paddingBlockStart' ] ,
221+ paddingInline : [ 'paddingInlineEnd' , 'paddingInlineStart' ] ,
222+ pageBreakAfter : [ 'breakAfter' ] ,
223+ pageBreakBefore : [ 'breakBefore' ] ,
224+ pageBreakInside : [ 'breakInside' ] ,
176225 placeContent : [ 'alignContent' , 'justifyContent' ] ,
177226 placeItems : [ 'alignItems' , 'justifyItems' ] ,
178227 placeSelf : [ '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' ] ,
179244 textDecoration : [
180245 'textDecorationColor' ,
181246 'textDecorationLine' ,
182247 'textDecorationStyle' ,
248+ 'textDecorationThickness' ,
183249 ] ,
184250 textEmphasis : [ 'textEmphasisColor' , 'textEmphasisStyle' ] ,
251+ textWrap : [ 'textWrapMode' , 'textWrapStyle' ] ,
185252 transition : [
253+ 'transitionBehavior' ,
186254 'transitionDelay' ,
187255 'transitionDuration' ,
188256 'transitionProperty' ,
189257 'transitionTimingFunction' ,
190258 ] ,
259+ verticalAlign : [ 'alignmentBaseline' , 'baselineShift' , 'baselineSource' ] ,
260+ whiteSpace : [ 'textWrapMode' , 'whiteSpaceCollapse' ] ,
191261 wordWrap : [ 'overflowWrap' ] ,
192262} ;
0 commit comments