OLD | NEW |
1 // This file specifies all the CSS properties we support and the necessary | 1 // This file specifies all the CSS properties we support and the necessary |
2 // information for our code generation. The various supported arguments | 2 // information for our code generation. The various supported arguments |
3 // are described below with example usage | 3 // are described below with example usage |
4 | 4 |
5 | 5 |
6 // - alias_for=other-property | 6 // - alias_for=other-property |
7 // Properties specifying alias_for should be virtually identical to the | 7 // Properties specifying alias_for should be virtually identical to the |
8 // properties they alias. Minor parsing differences are allowed as long as | 8 // properties they alias. Minor parsing differences are allowed as long as |
9 // the CSSValues created are of the same format of the aliased property. | 9 // the CSSValues created are of the same format of the aliased property. |
10 | 10 |
11 | 11 |
12 // - runtime_flag=CSSGridLayout | 12 // - runtime_flag=CSSGridLayout |
13 // The flag on RuntimeEnabledFeatures conditionally enables the property. | 13 // The flag on RuntimeEnabledFeatures conditionally enables the property. |
14 // This doesn't currently work with alias_for. | 14 // This doesn't currently work with alias_for. |
15 | 15 |
16 | 16 |
17 // - descriptor_only | 17 // - descriptor_only |
18 // These are actually descriptors and not CSS properties. Properties with | 18 // These are actually descriptors and not CSS properties. Properties with |
19 // the same name as a descriptor do not get this flag. | 19 // the same name as a descriptor do not get this flag. |
20 | 20 |
21 | 21 |
22 // - longhands=property;other-property | 22 // - longhands=property;other-property |
23 // The property is a shorthand for several other properties. | 23 // The property is a shorthand for several other properties. |
24 | 24 |
25 | 25 |
26 // keyword_only | 26 // - keyword_only |
27 // These properties only store keyword values. This is used when | 27 // These properties only store keyword values. This is used when |
28 // generating the ComputedStyle storage for the property. The initial | 28 // generating the ComputedStyle storage for the property. The initial |
29 // value for this property on a ComputedStyle is the first keyword in | 29 // value for this property on a ComputedStyle is specified with the |
30 // the specified list of keywords. | 30 // initial_keyword flag below. |
31 // TODO(sashab, meade): Remove this once TypedOM types are specified for | 31 // TODO(sashab, meade): Remove this once TypedOM types are specified for |
32 // every property, since this value can be inferred from that. | 32 // every property, since this value can be inferred from that. |
33 | 33 |
34 | 34 |
35 // - keywords=[keyword1|keyword2] | 35 // - keywords=[keyword1|keyword2] |
36 // This specifies all valid keyword values for the property. | 36 // This specifies all valid keyword values for the property. |
37 // TODO(sashab): Once all properties are represented here, delete | 37 // TODO(sashab): Once all properties are represented here, delete |
38 // CSSValueKeywords.in and use this list instead. | 38 // CSSValueKeywords.in and use this list instead. |
39 | 39 |
40 | 40 |
| 41 // - initial_keyword |
| 42 // This specifies the initial keyword value for the keyword_only |
| 43 // property. |
| 44 |
| 45 |
41 // Flags which go into CSSOMTypes: | 46 // Flags which go into CSSOMTypes: |
42 // - typedom_types=[Type|OtherType] | 47 // - typedom_types=[Type|OtherType] |
43 // The property can take types specified in typedom_types for CSS Typed OM. | 48 // The property can take types specified in typedom_types for CSS Typed OM. |
44 // Keyword does not need to be specified as every property can take keywords. | 49 // Keyword does not need to be specified as every property can take keywords. |
45 // - keywords=[keyword1|keyword2] | 50 // - keywords=[keyword1|keyword2] |
46 // The property can take these keywords. | 51 // The property can take these keywords. |
47 // - supports_multiple | 52 // - supports_multiple |
48 // The property supports a list of values. | 53 // The property supports a list of values. |
49 // - supports_percentage | 54 // - supports_percentage |
50 // The property supports percentage types. | 55 // The property supports percentage types. |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 border-top-right-radius interpolable, initial=initialBorderRadius, converter=con
vertRadius | 200 border-top-right-radius interpolable, initial=initialBorderRadius, converter=con
vertRadius |
196 border-top-style type_name=EBorderStyle, initial=initialBorderStyle | 201 border-top-style type_name=EBorderStyle, initial=initialBorderStyle |
197 border-top-width interpolable, initial=initialBorderWidth, converter=convertLine
Width<unsigned>, typedom_types=[Length], keywords=[thin|medium|thick], supports_
percentage | 202 border-top-width interpolable, initial=initialBorderWidth, converter=convertLine
Width<unsigned>, typedom_types=[Length], keywords=[thin|medium|thick], supports_
percentage |
198 bottom typedom_types=[Length], keywords=[auto], supports_percentage, interpolabl
e, initial=initialOffset, converter=convertLengthOrAuto | 203 bottom typedom_types=[Length], keywords=[auto], supports_percentage, interpolabl
e, initial=initialOffset, converter=convertLengthOrAuto |
199 box-shadow interpolable, converter=convertShadow | 204 box-shadow interpolable, converter=convertShadow |
200 box-sizing | 205 box-sizing |
201 break-after type_name=EBreak | 206 break-after type_name=EBreak |
202 break-before type_name=EBreak | 207 break-before type_name=EBreak |
203 break-inside type_name=EBreak | 208 break-inside type_name=EBreak |
204 buffered-rendering svg | 209 buffered-rendering svg |
205 caption-side inherited, keyword_only, keywords=[top|bottom|left|right] | 210 caption-side inherited, keyword_only, keywords=[top|bottom|left|right], initial_
keyword=top |
206 caret-color inherited, custom_all | 211 caret-color inherited, custom_all |
207 clear | 212 clear |
208 clip interpolable, converter=convertClip, custom_all | 213 clip interpolable, converter=convertClip, custom_all |
209 clip-path interpolable, converter=convertClipPath | 214 clip-path interpolable, converter=convertClipPath |
210 clip-rule inherited, svg, type_name=WindRule | 215 clip-rule inherited, svg, type_name=WindRule |
211 color-interpolation inherited, svg | 216 color-interpolation inherited, svg |
212 color-interpolation-filters inherited, svg, type_name=EColorInterpolation | 217 color-interpolation-filters inherited, svg, type_name=EColorInterpolation |
213 color-rendering inherited, svg | 218 color-rendering inherited, svg |
214 column-fill type_name=ColumnFill | 219 column-fill type_name=ColumnFill |
215 contain runtime_flag=CSSContainment, converter=convertFlags<Containment> | 220 contain runtime_flag=CSSContainment, converter=convertFlags<Containment> |
216 content custom_all, typedom_types=[Image], supports_multiple | 221 content custom_all, typedom_types=[Image], supports_multiple |
217 counter-increment custom_all | 222 counter-increment custom_all |
218 counter-reset custom_all | 223 counter-reset custom_all |
219 cursor inherited, custom_all | 224 cursor inherited, custom_all |
220 cx interpolable, svg, converter=convertLength | 225 cx interpolable, svg, converter=convertLength |
221 cy interpolable, svg, converter=convertLength | 226 cy interpolable, svg, converter=convertLength |
222 d interpolable, svg, converter=convertPathOrNone | 227 d interpolable, svg, converter=convertPathOrNone |
223 display | 228 display |
224 dominant-baseline inherited, svg | 229 dominant-baseline inherited, svg |
225 empty-cells inherited, type_name=EEmptyCells, keyword_only, keywords=[show|hide] | 230 empty-cells inherited, type_name=EEmptyCells, keyword_only, keywords=[show|hide]
, initial_keyword=show |
226 fill interpolable, inherited, svg, setter=setFillPaint, custom_all | 231 fill interpolable, inherited, svg, setter=setFillPaint, custom_all |
227 fill-opacity interpolable, inherited, svg, converter=convertNumberOrPercentage | 232 fill-opacity interpolable, inherited, svg, converter=convertNumberOrPercentage |
228 fill-rule inherited, svg, type_name=WindRule | 233 fill-rule inherited, svg, type_name=WindRule |
229 filter interpolable, converter=convertFilterOperations | 234 filter interpolable, converter=convertFilterOperations |
230 flex-basis interpolable, converter=convertLengthOrAuto | 235 flex-basis interpolable, converter=convertLengthOrAuto |
231 flex-direction | 236 flex-direction |
232 flex-grow interpolable, type_name=float | 237 flex-grow interpolable, type_name=float |
233 flex-shrink interpolable, type_name=float | 238 flex-shrink interpolable, type_name=float |
234 flex-wrap | 239 flex-wrap |
235 float type_name=EFloat, name_for_methods=Floating, keyword_only, keywords=[none|
left|right] | 240 float type_name=EFloat, name_for_methods=Floating, keyword_only, keywords=[none|
left|right], initial_keyword=none |
236 flood-color interpolable, svg, converter=convertColor | 241 flood-color interpolable, svg, converter=convertColor |
237 flood-opacity interpolable, svg, converter=convertNumberOrPercentage | 242 flood-opacity interpolable, svg, converter=convertNumberOrPercentage |
238 grid-auto-columns runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList | 243 grid-auto-columns runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList |
239 grid-auto-flow runtime_flag=CSSGridLayout, converter=convertGridAutoFlow, type_n
ame=GridAutoFlow | 244 grid-auto-flow runtime_flag=CSSGridLayout, converter=convertGridAutoFlow, type_n
ame=GridAutoFlow |
240 grid-auto-rows runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList | 245 grid-auto-rows runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList |
241 grid-column-end runtime_flag=CSSGridLayout, converter=convertGridPosition | 246 grid-column-end runtime_flag=CSSGridLayout, converter=convertGridPosition |
242 grid-column-gap runtime_flag=CSSGridLayout, converter=convertLength | 247 grid-column-gap runtime_flag=CSSGridLayout, converter=convertLength |
243 grid-column-start runtime_flag=CSSGridLayout, converter=convertGridPosition | 248 grid-column-start runtime_flag=CSSGridLayout, converter=convertGridPosition |
244 grid-row-end runtime_flag=CSSGridLayout, converter=convertGridPosition | 249 grid-row-end runtime_flag=CSSGridLayout, converter=convertGridPosition |
245 grid-row-gap runtime_flag=CSSGridLayout, converter=convertLength | 250 grid-row-gap runtime_flag=CSSGridLayout, converter=convertLength |
246 grid-row-start runtime_flag=CSSGridLayout, converter=convertGridPosition | 251 grid-row-start runtime_flag=CSSGridLayout, converter=convertGridPosition |
247 grid-template-areas runtime_flag=CSSGridLayout, custom_all | 252 grid-template-areas runtime_flag=CSSGridLayout, custom_all |
248 grid-template-columns runtime_flag=CSSGridLayout, custom_all | 253 grid-template-columns runtime_flag=CSSGridLayout, custom_all |
249 grid-template-rows runtime_flag=CSSGridLayout, custom_all | 254 grid-template-rows runtime_flag=CSSGridLayout, custom_all |
250 height typedom_types=[Length], keywords=[auto], supports_percentage, interpolabl
e, initial=initialSize, converter=convertLengthSizing | 255 height typedom_types=[Length], keywords=[auto], supports_percentage, interpolabl
e, initial=initialSize, converter=convertLengthSizing |
251 hyphens runtime_flag=CSSHyphens, inherited, type_name=Hyphens | 256 hyphens runtime_flag=CSSHyphens, inherited, type_name=Hyphens |
252 image-rendering inherited | 257 image-rendering inherited |
253 image-orientation runtime_flag=ImageOrientation, inherited, name_for_methods=Res
pectImageOrientation, converter=convertImageOrientation | 258 image-orientation runtime_flag=ImageOrientation, inherited, name_for_methods=Res
pectImageOrientation, converter=convertImageOrientation |
254 isolation | 259 isolation |
255 justify-content initial=initialContentAlignment, converter=convertContentAlignme
ntData | 260 justify-content initial=initialContentAlignment, converter=convertContentAlignme
ntData |
256 justify-items runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converte
r=convertSelfOrDefaultAlignmentData | 261 justify-items runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converte
r=convertSelfOrDefaultAlignmentData |
257 justify-self runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converter
=convertSelfOrDefaultAlignmentData | 262 justify-self runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converter
=convertSelfOrDefaultAlignmentData |
258 left typedom_types=[Length], keywords=[auto], supports_percentage, interpolable,
initial=initialOffset, converter=convertLengthOrAuto | 263 left typedom_types=[Length], keywords=[auto], supports_percentage, interpolable,
initial=initialOffset, converter=convertLengthOrAuto |
259 letter-spacing interpolable, inherited, initial=initialLetterWordSpacing, conver
ter=convertSpacing | 264 letter-spacing interpolable, inherited, initial=initialLetterWordSpacing, conver
ter=convertSpacing |
260 lighting-color interpolable, svg, converter=convertColor | 265 lighting-color interpolable, svg, converter=convertColor |
261 line-height interpolable, inherited, getter=specifiedLineHeight, converter=conve
rtLineHeight | 266 line-height interpolable, inherited, getter=specifiedLineHeight, converter=conve
rtLineHeight |
262 list-style-image interpolable, inherited, custom_value, typedom_types=[Image] | 267 list-style-image interpolable, inherited, custom_value, typedom_types=[Image] |
263 list-style-position inherited, keyword_only, keywords=[outside|inside] | 268 list-style-position inherited, keyword_only, keywords=[outside|inside], initial_
keyword=outside |
264 list-style-type inherited | 269 list-style-type inherited |
265 margin-bottom interpolable, initial=initialMargin, converter=convertQuirkyLength | 270 margin-bottom interpolable, initial=initialMargin, converter=convertQuirkyLength |
266 margin-left interpolable, initial=initialMargin, converter=convertQuirkyLength | 271 margin-left interpolable, initial=initialMargin, converter=convertQuirkyLength |
267 margin-right interpolable, initial=initialMargin, converter=convertQuirkyLength | 272 margin-right interpolable, initial=initialMargin, converter=convertQuirkyLength |
268 margin-top interpolable, initial=initialMargin, converter=convertQuirkyLength | 273 margin-top interpolable, initial=initialMargin, converter=convertQuirkyLength |
269 marker-end inherited, svg, name_for_methods=MarkerEndResource, converter=convert
FragmentIdentifier | 274 marker-end inherited, svg, name_for_methods=MarkerEndResource, converter=convert
FragmentIdentifier |
270 marker-mid inherited, svg, name_for_methods=MarkerMidResource, converter=convert
FragmentIdentifier | 275 marker-mid inherited, svg, name_for_methods=MarkerMidResource, converter=convert
FragmentIdentifier |
271 marker-start inherited, svg, name_for_methods=MarkerStartResource, converter=con
vertFragmentIdentifier | 276 marker-start inherited, svg, name_for_methods=MarkerStartResource, converter=con
vertFragmentIdentifier |
272 mask svg, name_for_methods=MaskerResource, converter=convertFragmentIdentifier | 277 mask svg, name_for_methods=MaskerResource, converter=convertFragmentIdentifier |
273 mask-source-type runtime_flag=CSSMaskSourceType, custom_all | 278 mask-source-type runtime_flag=CSSMaskSourceType, custom_all |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 text-decoration use_handlers_for=CSSPropertyTextDecorationLine, longhands=text-d
ecoration-line;text-decoration-style;text-decoration-color | 351 text-decoration use_handlers_for=CSSPropertyTextDecorationLine, longhands=text-d
ecoration-line;text-decoration-style;text-decoration-color |
347 text-decoration-color runtime_flag=CSS3TextDecorations, interpolable, custom_all | 352 text-decoration-color runtime_flag=CSS3TextDecorations, interpolable, custom_all |
348 text-decoration-line runtime_flag=CSS3TextDecorations, name_for_methods=TextDeco
ration, type_name=TextDecoration, converter=convertFlags<TextDecoration> | 353 text-decoration-line runtime_flag=CSS3TextDecorations, name_for_methods=TextDeco
ration, type_name=TextDecoration, converter=convertFlags<TextDecoration> |
349 text-decoration-skip runtime_flag=CSS3TextDecorations, inherited, type_name=Text
DecorationSkip, converter=convertFlags<TextDecorationSkip> | 354 text-decoration-skip runtime_flag=CSS3TextDecorations, inherited, type_name=Text
DecorationSkip, converter=convertFlags<TextDecorationSkip> |
350 text-decoration-style runtime_flag=CSS3TextDecorations, type_name=TextDecoration
Style | 355 text-decoration-style runtime_flag=CSS3TextDecorations, type_name=TextDecoration
Style |
351 text-indent interpolable, inherited, custom_all | 356 text-indent interpolable, inherited, custom_all |
352 text-justify runtime_flag=CSS3Text, inherited, type_name=TextJustify | 357 text-justify runtime_flag=CSS3Text, inherited, type_name=TextJustify |
353 text-overflow type_name=TextOverflow | 358 text-overflow type_name=TextOverflow |
354 text-shadow interpolable, inherited, converter=convertShadow | 359 text-shadow interpolable, inherited, converter=convertShadow |
355 text-size-adjust inherited, converter=convertTextSizeAdjust, type_name=TextSizeA
djust | 360 text-size-adjust inherited, converter=convertTextSizeAdjust, type_name=TextSizeA
djust |
356 text-transform inherited, keyword_only, keywords=[none|capitalize|uppercase|lowe
rcase] | 361 text-transform inherited, keyword_only, keywords=[capitalize|uppercase|lowercase
|none], initial_keyword=none |
357 text-underline-position runtime_flag=CSS3TextDecorations, inherited, type_name=T
extUnderlinePosition | 362 text-underline-position runtime_flag=CSS3TextDecorations, inherited, type_name=T
extUnderlinePosition |
358 top typedom_types=[Length], keywords=[auto], supports_percentage, interpolable,
initial=initialOffset, converter=convertLengthOrAuto | 363 top typedom_types=[Length], keywords=[auto], supports_percentage, interpolable,
initial=initialOffset, converter=convertLengthOrAuto |
359 touch-action converter=convertFlags<TouchAction>, type_name=TouchAction | 364 touch-action converter=convertFlags<TouchAction>, type_name=TouchAction |
360 transform typedom_types=[Transform], keywords=[none], interpolable, converter=co
nvertTransformOperations | 365 transform typedom_types=[Transform], keywords=[none], interpolable, converter=co
nvertTransformOperations |
361 transform-origin interpolable, converter=convertTransformOrigin | 366 transform-origin interpolable, converter=convertTransformOrigin |
362 transform-style name_for_methods=TransformStyle3D | 367 transform-style name_for_methods=TransformStyle3D |
363 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans
late, interpolable | 368 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans
late, interpolable |
364 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate,
interpolable | 369 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate,
interpolable |
365 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in
terpolable | 370 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in
terpolable |
366 unicode-bidi | 371 unicode-bidi |
367 vector-effect svg | 372 vector-effect svg |
368 vertical-align interpolable, custom_inherit, custom_value | 373 vertical-align interpolable, custom_inherit, custom_value |
369 visibility interpolable, inherited, independent, keyword_only, keywords=[visible
|hidden|collapse] | 374 visibility interpolable, inherited, independent, keyword_only, keywords=[visible
|hidden|collapse], initial_keyword=visible |
370 x interpolable, svg, converter=convertLength | 375 x interpolable, svg, converter=convertLength |
371 y interpolable, svg, converter=convertLength | 376 y interpolable, svg, converter=convertLength |
372 -webkit-appearance type_name=ControlPart | 377 -webkit-appearance type_name=ControlPart |
373 -webkit-app-region custom_all | 378 -webkit-app-region custom_all |
374 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip | 379 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip |
375 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin | 380 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin |
376 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori
zontalBorderSpacing, converter=convertComputedLength<short> | 381 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori
zontalBorderSpacing, converter=convertComputedLength<short> |
377 -webkit-border-image initial=initialNinePieceImage, custom_value | 382 -webkit-border-image initial=initialNinePieceImage, custom_value |
378 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic
alBorderSpacing, converter=convertComputedLength<short> | 383 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic
alBorderSpacing, converter=convertComputedLength<short> |
379 -webkit-box-align type_name=EBoxAlignment | 384 -webkit-box-align type_name=EBoxAlignment |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 -webkit-text-size-adjust alias_for=text-size-adjust | 617 -webkit-text-size-adjust alias_for=text-size-adjust |
613 -webkit-transform alias_for=transform | 618 -webkit-transform alias_for=transform |
614 -webkit-transform-origin alias_for=transform-origin | 619 -webkit-transform-origin alias_for=transform-origin |
615 -webkit-transform-style alias_for=transform-style | 620 -webkit-transform-style alias_for=transform-style |
616 -webkit-transition alias_for=transition | 621 -webkit-transition alias_for=transition |
617 -webkit-transition-delay alias_for=transition-delay | 622 -webkit-transition-delay alias_for=transition-delay |
618 -webkit-transition-duration alias_for=transition-duration | 623 -webkit-transition-duration alias_for=transition-duration |
619 -webkit-transition-property alias_for=transition-property | 624 -webkit-transition-property alias_for=transition-property |
620 -webkit-transition-timing-function alias_for=transition-timing-function | 625 -webkit-transition-timing-function alias_for=transition-timing-function |
621 -webkit-user-select alias_for=user-select | 626 -webkit-user-select alias_for=user-select |
OLD | NEW |