Chromium Code Reviews| 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 clear | 211 clear |
| 207 clip interpolable, converter=convertClip, custom_all | 212 clip interpolable, converter=convertClip, custom_all |
| 208 clip-path interpolable, converter=convertClipPath | 213 clip-path interpolable, converter=convertClipPath |
| 209 clip-rule inherited, svg, type_name=WindRule | 214 clip-rule inherited, svg, type_name=WindRule |
| 210 color-interpolation inherited, svg | 215 color-interpolation inherited, svg |
| 211 color-interpolation-filters inherited, svg, type_name=EColorInterpolation | 216 color-interpolation-filters inherited, svg, type_name=EColorInterpolation |
| 212 color-rendering inherited, svg | 217 color-rendering inherited, svg |
| 213 column-fill type_name=ColumnFill | 218 column-fill type_name=ColumnFill |
| 214 contain runtime_flag=CSSContainment, converter=convertFlags<Containment> | 219 contain runtime_flag=CSSContainment, converter=convertFlags<Containment> |
| 215 content custom_all, typedom_types=[Image], supports_multiple | 220 content custom_all, typedom_types=[Image], supports_multiple |
| 216 counter-increment custom_all | 221 counter-increment custom_all |
| 217 counter-reset custom_all | 222 counter-reset custom_all |
| 218 cursor inherited, custom_all | 223 cursor inherited, custom_all |
| 219 cx interpolable, svg, converter=convertLength | 224 cx interpolable, svg, converter=convertLength |
| 220 cy interpolable, svg, converter=convertLength | 225 cy interpolable, svg, converter=convertLength |
| 221 d interpolable, svg, converter=convertPathOrNone | 226 d interpolable, svg, converter=convertPathOrNone |
| 222 display | 227 display |
| 223 dominant-baseline inherited, svg | 228 dominant-baseline inherited, svg |
| 224 empty-cells inherited, type_name=EEmptyCells, keyword_only, keywords=[show|hide] | 229 empty-cells inherited, type_name=EEmptyCells, keyword_only, keywords=[show|hide] , initial_keyword=show |
| 225 fill interpolable, inherited, svg, setter=setFillPaint, custom_all | 230 fill interpolable, inherited, svg, setter=setFillPaint, custom_all |
| 226 fill-opacity interpolable, inherited, svg, converter=convertNumberOrPercentage | 231 fill-opacity interpolable, inherited, svg, converter=convertNumberOrPercentage |
| 227 fill-rule inherited, svg, type_name=WindRule | 232 fill-rule inherited, svg, type_name=WindRule |
| 228 filter interpolable, converter=convertFilterOperations | 233 filter interpolable, converter=convertFilterOperations |
| 229 flex-basis interpolable, converter=convertLengthOrAuto | 234 flex-basis interpolable, converter=convertLengthOrAuto |
| 230 flex-direction | 235 flex-direction |
| 231 flex-grow interpolable, type_name=float | 236 flex-grow interpolable, type_name=float |
| 232 flex-shrink interpolable, type_name=float | 237 flex-shrink interpolable, type_name=float |
| 233 flex-wrap | 238 flex-wrap |
| 234 float type_name=EFloat, name_for_methods=Floating, keyword_only, keywords=[none| left|right] | 239 float type_name=EFloat, name_for_methods=Floating, keyword_only, keywords=[none| left|right], initial_keyword=none |
| 235 flood-color interpolable, svg, converter=convertColor | 240 flood-color interpolable, svg, converter=convertColor |
| 236 flood-opacity interpolable, svg, converter=convertNumberOrPercentage | 241 flood-opacity interpolable, svg, converter=convertNumberOrPercentage |
| 237 grid-auto-columns runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList | 242 grid-auto-columns runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList |
| 238 grid-auto-flow runtime_flag=CSSGridLayout, converter=convertGridAutoFlow, type_n ame=GridAutoFlow | 243 grid-auto-flow runtime_flag=CSSGridLayout, converter=convertGridAutoFlow, type_n ame=GridAutoFlow |
| 239 grid-auto-rows runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList | 244 grid-auto-rows runtime_flag=CSSGridLayout, converter=convertGridTrackSizeList |
| 240 grid-column-end runtime_flag=CSSGridLayout, converter=convertGridPosition | 245 grid-column-end runtime_flag=CSSGridLayout, converter=convertGridPosition |
| 241 grid-column-gap runtime_flag=CSSGridLayout, converter=convertLength | 246 grid-column-gap runtime_flag=CSSGridLayout, converter=convertLength |
| 242 grid-column-start runtime_flag=CSSGridLayout, converter=convertGridPosition | 247 grid-column-start runtime_flag=CSSGridLayout, converter=convertGridPosition |
| 243 grid-row-end runtime_flag=CSSGridLayout, converter=convertGridPosition | 248 grid-row-end runtime_flag=CSSGridLayout, converter=convertGridPosition |
| 244 grid-row-gap runtime_flag=CSSGridLayout, converter=convertLength | 249 grid-row-gap runtime_flag=CSSGridLayout, converter=convertLength |
| 245 grid-row-start runtime_flag=CSSGridLayout, converter=convertGridPosition | 250 grid-row-start runtime_flag=CSSGridLayout, converter=convertGridPosition |
| 246 grid-template-areas runtime_flag=CSSGridLayout, custom_all | 251 grid-template-areas runtime_flag=CSSGridLayout, custom_all |
| 247 grid-template-columns runtime_flag=CSSGridLayout, custom_all | 252 grid-template-columns runtime_flag=CSSGridLayout, custom_all |
| 248 grid-template-rows runtime_flag=CSSGridLayout, custom_all | 253 grid-template-rows runtime_flag=CSSGridLayout, custom_all |
| 249 height typedom_types=[Length], keywords=[auto], supports_percentage, interpolabl e, initial=initialSize, converter=convertLengthSizing | 254 height typedom_types=[Length], keywords=[auto], supports_percentage, interpolabl e, initial=initialSize, converter=convertLengthSizing |
| 250 hyphens runtime_flag=CSSHyphens, inherited, type_name=Hyphens | 255 hyphens runtime_flag=CSSHyphens, inherited, type_name=Hyphens |
| 251 image-rendering inherited | 256 image-rendering inherited |
| 252 image-orientation runtime_flag=ImageOrientation, inherited, name_for_methods=Res pectImageOrientation, converter=convertImageOrientation | 257 image-orientation runtime_flag=ImageOrientation, inherited, name_for_methods=Res pectImageOrientation, converter=convertImageOrientation |
| 253 isolation | 258 isolation |
| 254 justify-content initial=initialContentAlignment, converter=convertContentAlignme ntData | 259 justify-content initial=initialContentAlignment, converter=convertContentAlignme ntData |
| 255 justify-items runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converte r=convertSelfOrDefaultAlignmentData | 260 justify-items runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converte r=convertSelfOrDefaultAlignmentData |
| 256 justify-self runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converter =convertSelfOrDefaultAlignmentData | 261 justify-self runtime_flag=CSSGridLayout, initial=initialSelfAlignment, converter =convertSelfOrDefaultAlignmentData |
| 257 left typedom_types=[Length], keywords=[auto], supports_percentage, interpolable, initial=initialOffset, converter=convertLengthOrAuto | 262 left typedom_types=[Length], keywords=[auto], supports_percentage, interpolable, initial=initialOffset, converter=convertLengthOrAuto |
| 258 letter-spacing interpolable, inherited, initial=initialLetterWordSpacing, conver ter=convertSpacing | 263 letter-spacing interpolable, inherited, initial=initialLetterWordSpacing, conver ter=convertSpacing |
| 259 lighting-color interpolable, svg, converter=convertColor | 264 lighting-color interpolable, svg, converter=convertColor |
| 260 line-height interpolable, inherited, getter=specifiedLineHeight, converter=conve rtLineHeight | 265 line-height interpolable, inherited, getter=specifiedLineHeight, converter=conve rtLineHeight |
| 261 list-style-image interpolable, inherited, custom_value, typedom_types=[Image] | 266 list-style-image interpolable, inherited, custom_value, typedom_types=[Image] |
| 262 list-style-position inherited, keyword_only, keywords=[outside|inside] | 267 list-style-position inherited, keyword_only, keywords=[outside|inside], initial_ keyword=outside |
| 263 list-style-type inherited | 268 list-style-type inherited |
| 264 margin-bottom interpolable, initial=initialMargin, converter=convertQuirkyLength | 269 margin-bottom interpolable, initial=initialMargin, converter=convertQuirkyLength |
| 265 margin-left interpolable, initial=initialMargin, converter=convertQuirkyLength | 270 margin-left interpolable, initial=initialMargin, converter=convertQuirkyLength |
| 266 margin-right interpolable, initial=initialMargin, converter=convertQuirkyLength | 271 margin-right interpolable, initial=initialMargin, converter=convertQuirkyLength |
| 267 margin-top interpolable, initial=initialMargin, converter=convertQuirkyLength | 272 margin-top interpolable, initial=initialMargin, converter=convertQuirkyLength |
| 268 marker-end inherited, svg, name_for_methods=MarkerEndResource, converter=convert FragmentIdentifier | 273 marker-end inherited, svg, name_for_methods=MarkerEndResource, converter=convert FragmentIdentifier |
| 269 marker-mid inherited, svg, name_for_methods=MarkerMidResource, converter=convert FragmentIdentifier | 274 marker-mid inherited, svg, name_for_methods=MarkerMidResource, converter=convert FragmentIdentifier |
| 270 marker-start inherited, svg, name_for_methods=MarkerStartResource, converter=con vertFragmentIdentifier | 275 marker-start inherited, svg, name_for_methods=MarkerStartResource, converter=con vertFragmentIdentifier |
| 271 mask svg, name_for_methods=MaskerResource, converter=convertFragmentIdentifier | 276 mask svg, name_for_methods=MaskerResource, converter=convertFragmentIdentifier |
| 272 mask-source-type runtime_flag=CSSMaskSourceType, custom_all | 277 mask-source-type runtime_flag=CSSMaskSourceType, custom_all |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 358 touch-action converter=convertFlags<TouchAction>, type_name=TouchAction | 363 touch-action converter=convertFlags<TouchAction>, type_name=TouchAction |
| 359 transform typedom_types=[Transform], keywords=[none], interpolable, converter=co nvertTransformOperations | 364 transform typedom_types=[Transform], keywords=[none], interpolable, converter=co nvertTransformOperations |
| 360 transform-origin interpolable, converter=convertTransformOrigin | 365 transform-origin interpolable, converter=convertTransformOrigin |
| 361 transform-style name_for_methods=TransformStyle3D | 366 transform-style name_for_methods=TransformStyle3D |
| 362 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans late, interpolable | 367 translate runtime_flag=CSSIndependentTransformProperties, converter=convertTrans late, interpolable |
| 363 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate, interpolable | 368 rotate runtime_flag=CSSIndependentTransformProperties, converter=convertRotate, interpolable |
| 364 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in terpolable | 369 scale runtime_flag=CSSIndependentTransformProperties, converter=convertScale, in terpolable |
| 365 unicode-bidi | 370 unicode-bidi |
| 366 vector-effect svg | 371 vector-effect svg |
| 367 vertical-align interpolable, custom_inherit, custom_value | 372 vertical-align interpolable, custom_inherit, custom_value |
| 368 visibility interpolable, inherited, independent, keyword_only, keywords=[visible |hidden|collapse] | 373 visibility interpolable, inherited, independent, keyword_only, keywords=[visible |hidden|collapse], initial_keyword=visible |
|
napper
2016/12/01 02:10:02
In every case the initial keyword is simply the fi
sashab
2016/12/01 02:35:21
Yes - for text-transform (which just landed, so th
| |
| 369 x interpolable, svg, converter=convertLength | 374 x interpolable, svg, converter=convertLength |
| 370 y interpolable, svg, converter=convertLength | 375 y interpolable, svg, converter=convertLength |
| 371 -webkit-appearance type_name=ControlPart | 376 -webkit-appearance type_name=ControlPart |
| 372 -webkit-app-region custom_all | 377 -webkit-app-region custom_all |
| 373 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip | 378 -webkit-background-clip use_handlers_for=CSSPropertyBackgroundClip |
| 374 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin | 379 -webkit-background-origin use_handlers_for=CSSPropertyBackgroundOrigin |
| 375 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori zontalBorderSpacing, converter=convertComputedLength<short> | 380 -webkit-border-horizontal-spacing interpolable, inherited, name_for_methods=Hori zontalBorderSpacing, converter=convertComputedLength<short> |
| 376 -webkit-border-image initial=initialNinePieceImage, custom_value | 381 -webkit-border-image initial=initialNinePieceImage, custom_value |
| 377 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic alBorderSpacing, converter=convertComputedLength<short> | 382 -webkit-border-vertical-spacing interpolable, inherited, name_for_methods=Vertic alBorderSpacing, converter=convertComputedLength<short> |
| 378 -webkit-box-align type_name=EBoxAlignment | 383 -webkit-box-align type_name=EBoxAlignment |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 611 -webkit-text-size-adjust alias_for=text-size-adjust | 616 -webkit-text-size-adjust alias_for=text-size-adjust |
| 612 -webkit-transform alias_for=transform | 617 -webkit-transform alias_for=transform |
| 613 -webkit-transform-origin alias_for=transform-origin | 618 -webkit-transform-origin alias_for=transform-origin |
| 614 -webkit-transform-style alias_for=transform-style | 619 -webkit-transform-style alias_for=transform-style |
| 615 -webkit-transition alias_for=transition | 620 -webkit-transition alias_for=transition |
| 616 -webkit-transition-delay alias_for=transition-delay | 621 -webkit-transition-delay alias_for=transition-delay |
| 617 -webkit-transition-duration alias_for=transition-duration | 622 -webkit-transition-duration alias_for=transition-duration |
| 618 -webkit-transition-property alias_for=transition-property | 623 -webkit-transition-property alias_for=transition-property |
| 619 -webkit-transition-timing-function alias_for=transition-timing-function | 624 -webkit-transition-timing-function alias_for=transition-timing-function |
| 620 -webkit-user-select alias_for=user-select | 625 -webkit-user-select alias_for=user-select |
| OLD | NEW |