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 // keyword_only |
| 26 // These properties only store keyword values. This is used when |
| 27 // generating the ComputedStyle storage for the property. The initial |
| 28 // value for this property on a ComputedStyle is the first keyword in |
| 29 // the specified list of keywords. |
| 30 // TODO(sashab, meade): Remove this once TypedOM types are specified for |
| 31 // every property, since this value can be inferred from that. |
| 32 |
| 33 // - keywords=[keyword1|keyword2] |
| 34 // This specifies all valid keyword values for the property. |
| 35 // TODO(sashab): Once all properties are represented here, delete |
| 36 // CSSValueKeywords.in and use this list instead. |
25 | 37 |
26 // Flags which go into CSSOMTypes: | 38 // Flags which go into CSSOMTypes: |
27 // - typedom_types=[Type|OtherType] | 39 // - typedom_types=[Type|OtherType] |
28 // The property can take types specified in typedom_types for CSS Typed OM. | 40 // The property can take types specified in typedom_types for CSS Typed OM. |
29 // Keyword does not need to be specified as every property can take keywords. | 41 // Keyword does not need to be specified as every property can take keywords. |
30 // - keywords=[keyword1|keyword2] | |
31 // The property can take these keywords. | |
32 // - supports_multiple | 42 // - supports_multiple |
33 // The property supports a list of values. | 43 // The property supports a list of values. |
34 // - supports_percentage | 44 // - supports_percentage |
35 // The property supports percentage types. | 45 // The property supports percentage types. |
36 | 46 |
37 | 47 |
38 // Flags which go into CSSPropertyMetadata: | 48 // Flags which go into CSSPropertyMetadata: |
39 // - interpolable | 49 // - interpolable |
40 // The interpolable flag indicates whether a property can be animated smoothly. | 50 // The interpolable flag indicates whether a property can be animated smoothly. |
41 // If this flag is set, the property should also be added to the switch | 51 // If this flag is set, the property should also be added to the switch |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans
late, interpolable | 339 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans
late, interpolable |
330 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate,
interpolable | 340 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate,
interpolable |
331 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in
terpolable | 341 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in
terpolable |
332 transition-delay custom_all | 342 transition-delay custom_all |
333 transition-duration custom_all | 343 transition-duration custom_all |
334 transition-property custom_all | 344 transition-property custom_all |
335 transition-timing-function custom_all | 345 transition-timing-function custom_all |
336 unicode-bidi | 346 unicode-bidi |
337 vector-effect svg | 347 vector-effect svg |
338 vertical-align interpolable, custom_inherit, custom_value | 348 vertical-align interpolable, custom_inherit, custom_value |
339 visibility interpolable, inherited | 349 visibility interpolable, inherited, keyword_only, keywords=[visible|hidden|colla
pse] |
340 x interpolable, svg, converter=convertLength | 350 x interpolable, svg, converter=convertLength |
341 y interpolable, svg, converter=convertLength | 351 y interpolable, svg, converter=convertLength |
342 -webkit-appearance type_name=ControlPart | 352 -webkit-appearance type_name=ControlPart |
343 -webkit-app-region custom_all | 353 -webkit-app-region custom_all |
344 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip | 354 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip |
345 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin | 355 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin |
346 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori
zontalBorderSpacing, converter=convertComputedLength<short> | 356 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori
zontalBorderSpacing, converter=convertComputedLength<short> |
347 -webkit-border-image initial=initialNinePieceImage, custom_value | 357 -webkit-border-image initial=initialNinePieceImage, custom_value |
348 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic
alBorderSpacing, converter=convertComputedLength<short> | 358 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic
alBorderSpacing, converter=convertComputedLength<short> |
349 -webkit-box-align type_name=EBoxAlignment | 359 -webkit-box-align type_name=EBoxAlignment |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 -webkit-shape-outside alias_for=shape-outside | 590 -webkit-shape-outside alias_for=shape-outside |
581 -webkit-text-size-adjust alias_for=text-size-adjust | 591 -webkit-text-size-adjust alias_for=text-size-adjust |
582 -webkit-transform alias_for=transform | 592 -webkit-transform alias_for=transform |
583 -webkit-transform-origin alias_for=transform-origin | 593 -webkit-transform-origin alias_for=transform-origin |
584 -webkit-transform-style alias_for=transform-style | 594 -webkit-transform-style alias_for=transform-style |
585 -webkit-transition alias_for=transition | 595 -webkit-transition alias_for=transition |
586 -webkit-transition-delay alias_for=transition-delay | 596 -webkit-transition-delay alias_for=transition-delay |
587 -webkit-transition-duration alias_for=transition-duration | 597 -webkit-transition-duration alias_for=transition-duration |
588 -webkit-transition-property alias_for=transition-property | 598 -webkit-transition-property alias_for=transition-property |
589 -webkit-transition-timing-function alias_for=transition-timing-function | 599 -webkit-transition-timing-function alias_for=transition-timing-function |
OLD | NEW |