| 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 // - longhands=property;other-property | 17 // - longhands=property;other-property |
| 18 // The property is a shorthand for several other properties. | 18 // The property is a shorthand for several other properties. |
| 19 | 19 |
| 20 | 20 |
| 21 // Flags which go into CSSPropertyMetadata: | 21 // Flags which go into CSSPropertyMetadata: |
| 22 // - interpolable | 22 // - interpolable |
| 23 // The interpolable flag indicates whether a property can be animated by CSS | 23 // The interpolable flag indicates whether a property can be animated smoothly. |
| 24 // animations and transitions. If this flag is set, the property should also be | 24 // If this flag is set, the property should also be added to the switch |
| 25 // added to the switch statements in AnimatedStyleBuilder, CSSPropertyEquality, | 25 // statements in AnimatedStyleBuilder, CSSPropertyEquality and |
| 26 // and CSSAnimatableValueFactory. | 26 // CSSAnimatableValueFactory. |
| 27 // - inherited | 27 // - inherited |
| 28 // The property will inherit by default if no value is specified, typically | 28 // The property will inherit by default if no value is specified, typically |
| 29 // mentioned in specifications as "Inherited: yes" | 29 // mentioned in specifications as "Inherited: yes" |
| 30 | 30 |
| 31 | 31 |
| 32 // The remaining arguments are used for the StyleBuilder and allow us to | 32 // The remaining arguments are used for the StyleBuilder and allow us to |
| 33 // succinctly describe how to apply properties. When default handlers are not | 33 // succinctly describe how to apply properties. When default handlers are not |
| 34 // sufficient, we should prefer to use converter, and failing that define | 34 // sufficient, we should prefer to use converter, and failing that define |
| 35 // custom property handlers in StyleBuilderCustom.cpp. We only should use | 35 // custom property handlers in StyleBuilderCustom.cpp. We only should use |
| 36 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple | 36 // StyleBuilderFunctions.cpp.tmpl to define handlers when there are multiple |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 -webkit-shape-margin alias_for=shape-margin | 536 -webkit-shape-margin alias_for=shape-margin |
| 537 -webkit-shape-outside alias_for=shape-outside | 537 -webkit-shape-outside alias_for=shape-outside |
| 538 -webkit-transform alias_for=transform | 538 -webkit-transform alias_for=transform |
| 539 -webkit-transform-origin alias_for=transform-origin | 539 -webkit-transform-origin alias_for=transform-origin |
| 540 -webkit-transform-style alias_for=transform-style | 540 -webkit-transform-style alias_for=transform-style |
| 541 -webkit-transition alias_for=transition | 541 -webkit-transition alias_for=transition |
| 542 -webkit-transition-delay alias_for=transition-delay | 542 -webkit-transition-delay alias_for=transition-delay |
| 543 -webkit-transition-duration alias_for=transition-duration | 543 -webkit-transition-duration alias_for=transition-duration |
| 544 -webkit-transition-property alias_for=transition-property | 544 -webkit-transition-property alias_for=transition-property |
| 545 -webkit-transition-timing-function alias_for=transition-timing-function | 545 -webkit-transition-timing-function alias_for=transition-timing-function |
| OLD | NEW |