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 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 | 69 |
70 // - converter=convertRadius | 70 // - converter=convertRadius |
71 // The StyleBuilder will call the specified function on StyleBuilderConverter | 71 // The StyleBuilder will call the specified function on StyleBuilderConverter |
72 // to convert a CSSValue to an appropriate platform value | 72 // to convert a CSSValue to an appropriate platform value |
73 | 73 |
74 // - custom_initial | 74 // - custom_initial |
75 // - custom_inherit | 75 // - custom_inherit |
76 // - custom_value | 76 // - custom_value |
77 // - custom_all | 77 // - custom_all |
78 // Handlers of the given types will be declared but not defined. Setting | 78 // Handlers of the given types will be declared but not defined. Setting |
79 // custom_all is equivalent to setting the other three flags | 79 // custom_all is equivalent to setting the other three flags |
Timothy Loh
2016/05/24 05:38:35
worth mentioning here?
| |
80 | 80 |
81 // - use_handlers_for=CSSPropertyTransform | 81 // - use_handlers_for=CSSPropertyTransform |
82 // Use handlers for the specified property instead of defining new ones | 82 // Use handlers for the specified property instead of defining new ones |
83 | 83 |
84 // - builder_skip | 84 // - builder_skip |
85 // Ignore this property in the StyleBuilder | 85 // Ignore this property in the StyleBuilder |
86 | 86 |
87 // - direction_aware | 87 // - direction_aware |
88 // This property resolves to a different property based on the current direction | 88 // This property resolves to a different property based on the current direction |
89 // and writing mode. | 89 // and writing mode. |
(...skipping 22 matching lines...) Expand all Loading... | |
112 -webkit-text-orientation inherited, custom_value, type_name=TextOrientation | 112 -webkit-text-orientation inherited, custom_value, type_name=TextOrientation |
113 writing-mode inherited, custom_value, type_name=WritingMode | 113 writing-mode inherited, custom_value, type_name=WritingMode |
114 -webkit-writing-mode inherited, custom_value, type_name=WritingMode | 114 -webkit-writing-mode inherited, custom_value, type_name=WritingMode |
115 text-rendering inherited, font, type_name=TextRenderingMode | 115 text-rendering inherited, font, type_name=TextRenderingMode |
116 zoom custom_all | 116 zoom custom_all |
117 | 117 |
118 align-content initial=initialContentAlignment, converter=convertContentAlignment Data | 118 align-content initial=initialContentAlignment, converter=convertContentAlignment Data |
119 align-items initial=initialSelfAlignment, converter=convertSelfOrDefaultAlignmen tData | 119 align-items initial=initialSelfAlignment, converter=convertSelfOrDefaultAlignmen tData |
120 alignment-baseline svg | 120 alignment-baseline svg |
121 align-self initial=initialSelfAlignment, converter=convertSelfOrDefaultAlignment Data | 121 align-self initial=initialSelfAlignment, converter=convertSelfOrDefaultAlignment Data |
122 animation-delay custom_all | 122 animation-delay custom_all, animation |
123 animation-direction custom_all | 123 animation-direction custom_all, animation |
124 animation-duration custom_all | 124 animation-duration custom_all, animation |
125 animation-fill-mode custom_all | 125 animation-fill-mode custom_all, animation |
126 animation-iteration-count custom_all | 126 animation-iteration-count custom_all, animation |
127 animation-name custom_all | 127 animation-name custom_all, animation |
128 animation-play-state custom_all | 128 animation-play-state custom_all, animation |
129 animation-timing-function custom_all | 129 animation-timing-function custom_all, animation |
130 backdrop-filter interpolable, converter=convertFilterOperations, runtime_flag=CS SBackdropFilter | 130 backdrop-filter interpolable, converter=convertFilterOperations, runtime_flag=CS SBackdropFilter |
131 backface-visibility | 131 backface-visibility |
132 background-attachment custom_all | 132 background-attachment custom_all |
133 background-blend-mode custom_all | 133 background-blend-mode custom_all |
134 background-clip custom_all | 134 background-clip custom_all |
135 background-color interpolable, custom_all | 135 background-color interpolable, custom_all |
136 background-image interpolable, custom_all | 136 background-image interpolable, custom_all |
137 background-origin custom_all | 137 background-origin custom_all |
138 background-position-x interpolable, custom_all | 138 background-position-x interpolable, custom_all |
139 background-position-y interpolable, custom_all | 139 background-position-y interpolable, custom_all |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 text-transform inherited | 315 text-transform inherited |
316 text-underline-position runtime_flag=CSS3TextDecorations, inherited, type_name=T extUnderlinePosition | 316 text-underline-position runtime_flag=CSS3TextDecorations, inherited, type_name=T extUnderlinePosition |
317 top interpolable, initial=initialOffset, converter=convertLengthOrAuto | 317 top interpolable, initial=initialOffset, converter=convertLengthOrAuto |
318 touch-action converter=convertFlags<TouchAction>, type_name=TouchAction | 318 touch-action converter=convertFlags<TouchAction>, type_name=TouchAction |
319 transform interpolable, custom_value | 319 transform interpolable, custom_value |
320 transform-origin interpolable, converter=convertTransformOrigin | 320 transform-origin interpolable, converter=convertTransformOrigin |
321 transform-style name_for_methods=TransformStyle3D | 321 transform-style name_for_methods=TransformStyle3D |
322 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans late, interpolable | 322 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans late, interpolable |
323 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate, interpolable | 323 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate, interpolable |
324 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in terpolable | 324 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in terpolable |
325 transition-delay custom_all | 325 transition-delay custom_all, transition |
326 transition-duration custom_all | 326 transition-duration custom_all, transition |
327 transition-property custom_all | 327 transition-property custom_all, transition |
328 transition-timing-function custom_all | 328 transition-timing-function custom_all, transition |
329 unicode-bidi | 329 unicode-bidi |
330 vector-effect svg | 330 vector-effect svg |
331 vertical-align interpolable, custom_inherit, custom_value | 331 vertical-align interpolable, custom_inherit, custom_value |
332 visibility interpolable, inherited | 332 visibility interpolable, inherited |
333 x interpolable, svg, converter=convertLength | 333 x interpolable, svg, converter=convertLength |
334 y interpolable, svg, converter=convertLength | 334 y interpolable, svg, converter=convertLength |
335 -webkit-appearance type_name=ControlPart | 335 -webkit-appearance type_name=ControlPart |
336 -webkit-app-region custom_all | 336 -webkit-app-region custom_all |
337 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip | 337 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip |
338 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin | 338 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
405 width interpolable, initial=initialSize, converter=convertLengthSizing, typedom_ types=[Length], keywords=[auto], supports_percentage | 405 width interpolable, initial=initialSize, converter=convertLengthSizing, typedom_ types=[Length], keywords=[auto], supports_percentage |
406 will-change custom_all | 406 will-change custom_all |
407 word-break inherited | 407 word-break inherited |
408 word-spacing interpolable, inherited, initial=initialLetterWordSpacing, converte r=convertSpacing | 408 word-spacing interpolable, inherited, initial=initialLetterWordSpacing, converte r=convertSpacing |
409 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' prope rty. So using the same handlers. | 409 // UAs must treat 'word-wrap' as an alternate name for the 'overflow-wrap' prope rty. So using the same handlers. |
410 word-wrap inherited, name_for_methods=OverflowWrap | 410 word-wrap inherited, name_for_methods=OverflowWrap |
411 z-index interpolable, type_name=int, custom_all | 411 z-index interpolable, type_name=int, custom_all |
412 | 412 |
413 // Non-standard direction aware properties | 413 // Non-standard direction aware properties |
414 | 414 |
415 -webkit-border-end-color direction_aware | 415 -webkit-border-end-color direction_aware, getter=borderEnd().color |
416 -webkit-border-end-style direction_aware | 416 -webkit-border-end-style direction_aware, getter=borderEnd().style |
417 -webkit-border-end-width direction_aware | 417 -webkit-border-end-width direction_aware, getter=borderEnd().width |
418 -webkit-border-start-color direction_aware | 418 -webkit-border-start-color direction_aware, getter=borderStart().color |
419 -webkit-border-start-style direction_aware | 419 -webkit-border-start-style direction_aware, getter=borderStart().style |
420 -webkit-border-start-width direction_aware | 420 -webkit-border-start-width direction_aware, getter=borderStart().width |
421 -webkit-border-before-color direction_aware | 421 -webkit-border-before-color direction_aware, getter=borderBefore().color |
422 -webkit-border-before-style direction_aware | 422 -webkit-border-before-style direction_aware, getter=borderBefore().style |
423 -webkit-border-before-width direction_aware | 423 -webkit-border-before-width direction_aware, getter=borderBefore().width |
424 -webkit-border-after-color direction_aware | 424 -webkit-border-after-color direction_aware, getter=borderAfter().color |
425 -webkit-border-after-style direction_aware | 425 -webkit-border-after-style direction_aware, getter=borderAfter().style |
426 -webkit-border-after-width direction_aware | 426 -webkit-border-after-width direction_aware, getter=borderAfter().width |
427 -webkit-margin-end direction_aware | 427 -webkit-margin-end direction_aware |
428 -webkit-margin-start direction_aware | 428 -webkit-margin-start direction_aware |
429 -webkit-margin-before direction_aware | 429 -webkit-margin-before direction_aware |
430 -webkit-margin-after direction_aware | 430 -webkit-margin-after direction_aware |
431 -webkit-padding-end direction_aware | 431 -webkit-padding-end direction_aware |
432 -webkit-padding-start direction_aware | 432 -webkit-padding-start direction_aware |
433 -webkit-padding-before direction_aware | 433 -webkit-padding-before direction_aware |
434 -webkit-padding-after direction_aware | 434 -webkit-padding-after direction_aware |
435 -webkit-logical-width direction_aware | 435 -webkit-logical-width direction_aware |
436 -webkit-logical-height direction_aware | 436 -webkit-logical-height direction_aware |
437 -webkit-min-logical-width direction_aware | 437 -webkit-min-logical-width direction_aware, getter=logicalMinWidth |
438 -webkit-min-logical-height direction_aware | 438 -webkit-min-logical-height direction_aware, getter=logicalMinHeight |
439 -webkit-max-logical-width direction_aware | 439 -webkit-max-logical-width direction_aware, getter=logicalMaxWidth |
440 -webkit-max-logical-height direction_aware | 440 -webkit-max-logical-height direction_aware, getter=logicalMaxHeight |
441 | 441 |
442 // Properties that we ignore in the StyleBuilder. | 442 // Properties that we ignore in the StyleBuilder. |
443 // TODO(timloh): This seems wrong, most of these shouldn't reach the StyleBuilde r | 443 // TODO(timloh): This seems wrong, most of these shouldn't reach the StyleBuilde r |
444 | 444 |
445 all builder_skip | 445 all builder_skip |
446 font-display builder_skip, runtime_flag=CSSFontDisplay | 446 font-display builder_skip, runtime_flag=CSSFontDisplay |
447 max-zoom builder_skip | 447 max-zoom builder_skip |
448 min-zoom builder_skip | 448 min-zoom builder_skip |
449 orientation builder_skip | 449 orientation builder_skip |
450 page builder_skip | 450 page builder_skip |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
569 -webkit-shape-margin alias_for=shape-margin | 569 -webkit-shape-margin alias_for=shape-margin |
570 -webkit-shape-outside alias_for=shape-outside | 570 -webkit-shape-outside alias_for=shape-outside |
571 -webkit-transform alias_for=transform | 571 -webkit-transform alias_for=transform |
572 -webkit-transform-origin alias_for=transform-origin | 572 -webkit-transform-origin alias_for=transform-origin |
573 -webkit-transform-style alias_for=transform-style | 573 -webkit-transform-style alias_for=transform-style |
574 -webkit-transition alias_for=transition | 574 -webkit-transition alias_for=transition |
575 -webkit-transition-delay alias_for=transition-delay | 575 -webkit-transition-delay alias_for=transition-delay |
576 -webkit-transition-duration alias_for=transition-duration | 576 -webkit-transition-duration alias_for=transition-duration |
577 -webkit-transition-property alias_for=transition-property | 577 -webkit-transition-property alias_for=transition-property |
578 -webkit-transition-timing-function alias_for=transition-timing-function | 578 -webkit-transition-timing-function alias_for=transition-timing-function |
OLD | NEW |