Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSProperties.json5

Issue 2932593004: Update the snap points css properties (Closed)
Patch Set: Fix nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 // This file specifies all the CSS properties we support and the necessary 2 // This file specifies all the CSS properties we support and the necessary
3 // information for our code generation. The various supported arguments 3 // information for our code generation. The various supported arguments
4 // are described below with example usage 4 // are described below with example usage
5 5
6 parameters: { 6 parameters: {
7 // - alias_for: "other-property" 7 // - alias_for: "other-property"
8 // Properties specifying alias_for should be virtually identical to the 8 // Properties specifying alias_for should be virtually identical to the
9 // properties they alias. Minor parsing differences are allowed as long as 9 // properties they alias. Minor parsing differences are allowed as long as
10 // the CSSValues created are of the same format of the aliased property. 10 // the CSSValues created are of the same format of the aliased property.
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 name: "scroll-behavior", 1966 name: "scroll-behavior",
1967 runtime_flag: "CSSOMSmoothScroll", 1967 runtime_flag: "CSSOMSmoothScroll",
1968 type_name: "ScrollBehavior", 1968 type_name: "ScrollBehavior",
1969 field_template: "storage_only", 1969 field_template: "storage_only",
1970 field_group: "rare-non-inherited", 1970 field_group: "rare-non-inherited",
1971 field_size: 2, 1971 field_size: 2,
1972 default_value: "kScrollBehaviorAuto", 1972 default_value: "kScrollBehaviorAuto",
1973 }, 1973 },
1974 { 1974 {
1975 name: "scroll-snap-type", 1975 name: "scroll-snap-type",
1976 runtime_flag: "CSSScrollSnapPoints",
1977 type_name: "ScrollSnapType",
1978 field_template: "storage_only",
1979 field_group: "rare-non-inherited",
1980 field_size: 2,
1981 default_value: "kScrollSnapTypeNone",
1982 },
1983 {
1984 name: "scroll-snap-points-x",
1985 converter: "ConvertSnapPoints",
1986 runtime_flag: "CSSScrollSnapPoints",
1987 },
1988 {
1989 name: "scroll-snap-points-y",
1990 converter: "ConvertSnapPoints",
1991 runtime_flag: "CSSScrollSnapPoints",
1992 },
1993 {
1994 name: "scroll-snap-destination",
1995 converter: "ConvertPosition",
1996 runtime_flag: "CSSScrollSnapPoints",
1997 },
1998 {
1999 name: "scroll-snap-coordinate",
2000 api_class: true, 1976 api_class: true,
2001 api_methods: ["parseSingleValue"], 1977 api_methods: ["parseSingleValue"],
2002 converter: "ConvertSnapCoordinates", 1978 converter: "ConvertSnapType",
2003 runtime_flag: "CSSScrollSnapPoints", 1979 getter: "GetScrollSnapType",
2004 }, 1980 runtime_flag: "CSSScrollSnapPoints",
2005 { 1981 },
1982 {
1983 name: "scroll-snap-align",
1984 api_class: true,
1985 api_methods: ["parseSingleValue"],
1986 converter: "ConvertSnapAlign",
1987 getter: "GetScrollSnapAlign",
1988 runtime_flag: "CSSScrollSnapPoints",
1989 },
1990 {
1991 name: "scroll-snap-stop",
1992 default_value: "normal",
1993 field_template: "keyword",
1994 keywords: ["normal", "always"],
1995 runtime_flag: "CSSScrollSnapPoints",
1996 },
1997 {
1998 name: "scroll-padding-top",
1999 api_class: "CSSPropertyAPIScrollPadding",
2000 api_methods: ["parseSingleValue"],
2001 converter: "ConvertLength",
2002 initial: "InitialScrollPadding",
2003 include_paths: ["platform/Length.h"],
2004 typedom_types: ["Length", "Percent"],
2005 type_name: "Length",
2006 runtime_flag: "CSSScrollSnapPoints",
2007 },
2008 {
2009 name: "scroll-padding-bottom",
2010 api_class: "CSSPropertyAPIScrollPadding",
2011 api_methods: ["parseSingleValue"],
2012 converter: "ConvertLength",
2013 initial: "InitialScrollPadding",
2014 include_paths: ["platform/Length.h"],
2015 typedom_types: ["Length", "Percent"],
2016 type_name: "Length",
2017 runtime_flag: "CSSScrollSnapPoints",
2018 },
2019 {
2020 name: "scroll-padding-left",
2021 api_class: "CSSPropertyAPIScrollPadding",
2022 api_methods: ["parseSingleValue"],
2023 converter: "ConvertLength",
2024 initial: "InitialScrollPadding",
2025 include_paths: ["platform/Length.h"],
2026 typedom_types: ["Length", "Percent"],
2027 type_name: "Length",
2028 runtime_flag: "CSSScrollSnapPoints",
2029 },
2030 {
2031 name: "scroll-padding-right",
2032 api_class: "CSSPropertyAPIScrollPadding",
2033 api_methods: ["parseSingleValue"],
2034 converter: "ConvertLength",
2035 initial: "InitialScrollPadding",
2036 include_paths: ["platform/Length.h"],
2037 typedom_types: ["Length", "Percent"],
2038 type_name: "Length",
2039 runtime_flag: "CSSScrollSnapPoints",
2040 },
2041 {
2042 name: "scroll-padding-block-start",
2043 api_class: "CSSPropertyAPIScrollPadding",
2044 api_methods: ["parseSingleValue"],
2045 converter: "ConvertLength",
2046 initial: "InitialScrollPadding",
2047 include_paths: ["platform/Length.h"],
2048 typedom_types: ["Length", "Percent"],
2049 type_name: "Length",
2050 direction_aware: true,
2051 runtime_flag: "CSSScrollSnapPoints",
2052 },
2053 {
2054 name: "scroll-padding-block-end",
2055 api_class: "CSSPropertyAPIScrollPadding",
2056 api_methods: ["parseSingleValue"],
2057 converter: "ConvertLength",
2058 initial: "InitialScrollPadding",
2059 include_paths: ["platform/Length.h"],
2060 typedom_types: ["Length", "Percent"],
2061 type_name: "Length",
2062 direction_aware: true,
2063 runtime_flag: "CSSScrollSnapPoints",
2064 },
2065 {
2066 name: "scroll-padding-inline-start",
2067 api_class: "CSSPropertyAPIScrollPadding",
2068 api_methods: ["parseSingleValue"],
2069 converter: "ConvertLength",
2070 initial: "InitialScrollPadding",
2071 include_paths: ["platform/Length.h"],
2072 typedom_types: ["Length", "Percent"],
2073 type_name: "Length",
2074 direction_aware: true,
2075 runtime_flag: "CSSScrollSnapPoints",
2076 },
2077 {
2078 name: "scroll-padding-inline-end",
2079 api_class: "CSSPropertyAPIScrollPadding",
2080 api_methods: ["parseSingleValue"],
2081 converter: "ConvertLength",
2082 initial: "InitialScrollPadding",
2083 include_paths: ["platform/Length.h"],
2084 typedom_types: ["Length", "Percent"],
2085 type_name: "Length",
2086 direction_aware: true,
2087 runtime_flag: "CSSScrollSnapPoints",
2088 },
2089 {
2090 name: "scroll-snap-margin-top",
2091 api_class: "CSSPropertyAPIScrollSnapMargin",
2092 api_methods: ["parseSingleValue"],
2093 converter: "ConvertLength",
2094 initial: "InitialScrollSnapMargin",
2095 include_paths: ["platform/Length.h"],
2096 type_name: "Length",
2097 runtime_flag: "CSSScrollSnapPoints",
2098 },
2099 {
2100 name: "scroll-snap-margin-bottom",
2101 api_class: "CSSPropertyAPIScrollSnapMargin",
2102 api_methods: ["parseSingleValue"],
2103 converter: "ConvertLength",
2104 initial: "InitialScrollSnapMargin",
2105 include_paths: ["platform/Length.h"],
2106 type_name: "Length",
2107 runtime_flag: "CSSScrollSnapPoints",
2108 },
2109 {
2110 name: "scroll-snap-margin-left",
2111 api_class: "CSSPropertyAPIScrollSnapMargin",
2112 api_methods: ["parseSingleValue"],
2113 converter: "ConvertLength",
2114 initial: "InitialScrollSnapMargin",
2115 include_paths: ["platform/Length.h"],
2116 type_name: "Length",
2117 runtime_flag: "CSSScrollSnapPoints",
2118 },
2119 {
2120 name: "scroll-snap-margin-right",
2121 api_class: "CSSPropertyAPIScrollSnapMargin",
2122 api_methods: ["parseSingleValue"],
2123 converter: "ConvertLength",
2124 initial: "InitialScrollSnapMargin",
2125 include_paths: ["platform/Length.h"],
2126 type_name: "Length",
2127 runtime_flag: "CSSScrollSnapPoints",
2128 },
2129 {
2130 name: "scroll-snap-margin-block-start",
2131 api_class: "CSSPropertyAPIScrollSnapMargin",
2132 api_methods: ["parseSingleValue"],
2133 converter: "ConvertLength",
2134 initial: "InitialScrollSnapMargin",
2135 direction_aware: true,
2136 include_paths: ["platform/Length.h"],
2137 type_name: "Length",
2138 runtime_flag: "CSSScrollSnapPoints",
2139 },
2140 {
2141 name: "scroll-snap-margin-block-end",
2142 api_class: "CSSPropertyAPIScrollSnapMargin",
2143 api_methods: ["parseSingleValue"],
2144 converter: "ConvertLength",
2145 initial: "InitialScrollSnapMargin",
2146 direction_aware: true,
2147 include_paths: ["platform/Length.h"],
2148 type_name: "Length",
2149 runtime_flag: "CSSScrollSnapPoints",
2150 },
2151 {
2152 name: "scroll-snap-margin-inline-start",
2153 api_class: "CSSPropertyAPIScrollSnapMargin",
2154 api_methods: ["parseSingleValue"],
2155 converter: "ConvertLength",
2156 initial: "InitialScrollSnapMargin",
2157 direction_aware: true,
2158 include_paths: ["platform/Length.h"],
2159 type_name: "Length",
2160 runtime_flag: "CSSScrollSnapPoints",
2161 },
2162 {
2163 name: "scroll-snap-margin-inline-end",
2164 api_class: "CSSPropertyAPIScrollSnapMargin",
2165 api_methods: ["parseSingleValue"],
2166 converter: "ConvertLength",
2167 initial: "InitialScrollSnapMargin",
2168 direction_aware: true,
2169 include_paths: ["platform/Length.h"],
2170 type_name: "Length",
2171 runtime_flag: "CSSScrollSnapPoints",
2172 },
2173 {
2006 name: "shape-image-threshold", 2174 name: "shape-image-threshold",
2007 api_class: true, 2175 api_class: true,
2008 api_methods: ["parseSingleValue"], 2176 api_methods: ["parseSingleValue"],
2009 interpolable: true, 2177 interpolable: true,
2010 field_template: "storage_only", 2178 field_template: "storage_only",
2011 type_name: "float", 2179 type_name: "float",
2012 field_group: "rare-non-inherited", 2180 field_group: "rare-non-inherited",
2013 default_value: "0.0", 2181 default_value: "0.0",
2014 }, 2182 },
2015 { 2183 {
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
3469 }, 3637 },
3470 { 3638 {
3471 name: "page-break-before", 3639 name: "page-break-before",
3472 longhands: "break-before", 3640 longhands: "break-before",
3473 }, 3641 },
3474 { 3642 {
3475 name: "page-break-inside", 3643 name: "page-break-inside",
3476 longhands: "break-inside", 3644 longhands: "break-inside",
3477 }, 3645 },
3478 { 3646 {
3647 name: "scroll-padding",
3648 longhands: "scroll-padding-top;scroll-padding-right;scroll-padding-bottom; scroll-padding-left",
3649 runtime_flag: "CSSScrollSnapPoints",
3650 },
3651 {
3652 name: "scroll-padding-block",
3653 longhands: "scroll-padding-block-start;scroll-padding-block-end",
3654 runtime_flag: "CSSScrollSnapPoints",
3655 },
3656 {
3657 name: "scroll-padding-inline",
3658 longhands: "scroll-padding-inline-start;scroll-padding-inline-end",
3659 runtime_flag: "CSSScrollSnapPoints",
3660 },
3661 {
3662 name: "scroll-snap-margin",
3663 longhands: "scroll-snap-margin-top;scroll-snap-margin-right;scroll-snap-ma rgin-bottom;scroll-snap-margin-left",
3664 runtime_flag: "CSSScrollSnapPoints",
3665 },
3666 {
3667 name: "scroll-snap-margin-block",
3668 longhands: "scroll-snap-margin-block-start;scroll-snap-margin-block-end",
3669 runtime_flag: "CSSScrollSnapPoints",
3670 },
3671 {
3672 name: "scroll-snap-margin-inline",
3673 longhands: "scroll-snap-margin-inline-start;scroll-snap-margin-inline-end" ,
3674 runtime_flag: "CSSScrollSnapPoints",
3675 },
3676 {
3479 name: "transition", 3677 name: "transition",
3480 longhands: "transition-property;transition-duration;transition-timing-func tion;transition-delay", 3678 longhands: "transition-property;transition-duration;transition-timing-func tion;transition-delay",
3481 }, 3679 },
3482 { 3680 {
3483 name: "-webkit-border-after", 3681 name: "-webkit-border-after",
3484 longhands: "-webkit-border-after-width;-webkit-border-after-style;-webkit- border-after-color", 3682 longhands: "-webkit-border-after-width;-webkit-border-after-style;-webkit- border-after-color",
3485 }, 3683 },
3486 { 3684 {
3487 name: "-webkit-border-before", 3685 name: "-webkit-border-before",
3488 longhands: "-webkit-border-before-width;-webkit-border-before-style;-webki t-border-before-color", 3686 longhands: "-webkit-border-before-width;-webkit-border-before-style;-webki t-border-before-color",
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
3816 { 4014 {
3817 name: "-webkit-transition-timing-function", 4015 name: "-webkit-transition-timing-function",
3818 alias_for: "transition-timing-function", 4016 alias_for: "transition-timing-function",
3819 }, 4017 },
3820 { 4018 {
3821 name: "-webkit-user-select", 4019 name: "-webkit-user-select",
3822 alias_for: "user-select", 4020 alias_for: "user-select",
3823 }, 4021 },
3824 ], 4022 ],
3825 } 4023 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698