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

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

Issue 2767213003: First Implementation of Snapped Points
Patch Set: Rebase and format 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 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 interpolable: true, 1832 interpolable: true,
1833 svg: true, 1833 svg: true,
1834 }, 1834 },
1835 { 1835 {
1836 name: "scroll-behavior", 1836 name: "scroll-behavior",
1837 runtime_flag: "CSSOMSmoothScroll", 1837 runtime_flag: "CSSOMSmoothScroll",
1838 type_name: "ScrollBehavior", 1838 type_name: "ScrollBehavior",
1839 }, 1839 },
1840 { 1840 {
1841 name: "scroll-snap-type", 1841 name: "scroll-snap-type",
1842 runtime_flag: "CSSScrollSnapPoints", 1842 api_class: true,
1843 type_name: "ScrollSnapType", 1843 api_methods: ["parseSingleValue"],
1844 converter: "ConvertSnapType",
1845 getter: "GetScrollSnapType",
1846 //runtime_flag: "CSSScrollSnapPoints",
1847 },
1848 {
1849 name: "scroll-snap-align",
1850 api_class: true,
1851 api_methods: ["parseSingleValue"],
1852 converter: "ConvertSnapAlign",
1853 getter: "GetScrollSnapAlign",
1854 //runtime_flag: "CSSScrollSnapPoints",
1855 },
1856 {
1857 name: "scroll-snap-stop",
1858 default_value: "normal",
1859 field_template: "keyword",
1860 keywords: ["normal", "always"],
1861 //runtime_flag: "CSSScrollSnapPoints",
1862 },
1863 {
1864 name: "scroll-padding-top",
1865 api_class: "CSSPropertyAPIScrollPadding",
1866 api_methods: ["parseSingleValue"],
1867 converter: "ConvertLength",
1868 initial: "InitialScrollPadding",
1869 supports_percentage: true,
1870 //runtime_flag: "CSSScrollSnapPoints",
1871 },
1872 {
1873 name: "scroll-padding-bottom",
1874 api_class: "CSSPropertyAPIScrollPadding",
1875 api_methods: ["parseSingleValue"],
1876 converter: "ConvertLength",
1877 initial: "InitialScrollPadding",
1878 supports_percentage: true,
1879 //runtime_flag: "CSSScrollSnapPoints",
1880 },
1881 {
1882 name: "scroll-padding-left",
1883 api_class: "CSSPropertyAPIScrollPadding",
1884 api_methods: ["parseSingleValue"],
1885 converter: "ConvertLength",
1886 initial: "InitialScrollPadding",
1887 direction_aware: true,
1888 supports_percentage: true,
1889 //runtime_flag: "CSSScrollSnapPoints",
1890 },
1891 {
1892 name: "scroll-padding-right",
1893 api_class: "CSSPropertyAPIScrollPadding",
1894 api_methods: ["parseSingleValue"],
1895 converter: "ConvertLength",
1896 initial: "InitialScrollPadding",
1897 direction_aware: true,
1898 supports_percentage: true,
1899 //runtime_flag: "CSSScrollSnapPoints",
1900 },
1901 {
1902 name: "scroll-padding-block-start",
1903 api_class: "CSSPropertyAPIScrollPadding",
1904 api_methods: ["parseSingleValue"],
1905 converter: "ConvertLength",
1906 initial: "InitialScrollPadding",
1907 supports_percentage: true,
1908 //runtime_flag: "CSSScrollSnapPoints",
1909 },
1910 {
1911 name: "scroll-padding-block-end",
1912 api_class: "CSSPropertyAPIScrollPadding",
1913 api_methods: ["parseSingleValue"],
1914 converter: "ConvertLength",
1915 initial: "InitialScrollPadding",
1916 supports_percentage: true,
1917 //runtime_flag: "CSSScrollSnapPoints",
1918 },
1919 {
1920 name: "scroll-padding-inline-start",
1921 api_class: "CSSPropertyAPIScrollPadding",
1922 api_methods: ["parseSingleValue"],
1923 converter: "ConvertLength",
1924 initial: "InitialScrollPadding",
1925 supports_percentage: true,
1926 direction_aware: true,
1927 //runtime_flag: "CSSScrollSnapPoints",
1928 },
1929 {
1930 name: "scroll-padding-inline-end",
1931 api_class: "CSSPropertyAPIScrollPadding",
1932 api_methods: ["parseSingleValue"],
1933 converter: "ConvertLength",
1934 initial: "InitialScrollPadding",
1935 supports_percentage: true,
1936 direction_aware: true,
1937 //runtime_flag: "CSSScrollSnapPoints",
1938 },
1939 {
1940 name: "scroll-snap-margin-top",
1941 api_class: "CSSPropertyAPIScrollSnapMargin",
1942 api_methods: ["parseSingleValue"],
1943 converter: "ConvertLength",
1944 initial: "InitialScrollSnapMargin",
1945 //runtime_flag: "CSSScrollSnapPoints",
1946 },
1947 {
1948 name: "scroll-snap-margin-bottom",
1949 api_class: "CSSPropertyAPIScrollSnapMargin",
1950 api_methods: ["parseSingleValue"],
1951 converter: "ConvertLength",
1952 initial: "InitialScrollSnapMargin",
1953 //runtime_flag: "CSSScrollSnapPoints",
1954 },
1955 {
1956 name: "scroll-snap-margin-left",
1957 api_class: "CSSPropertyAPIScrollSnapMargin",
1958 api_methods: ["parseSingleValue"],
1959 converter: "ConvertLength",
1960 initial: "InitialScrollSnapMargin",
1961 //runtime_flag: "CSSScrollSnapPoints",
1962 },
1963 {
1964 name: "scroll-snap-margin-right",
1965 api_class: "CSSPropertyAPIScrollSnapMargin",
1966 api_methods: ["parseSingleValue"],
1967 converter: "ConvertLength",
1968 initial: "InitialScrollSnapMargin",
1969 //runtime_flag: "CSSScrollSnapPoints",
1970 },
1971 {
1972 name: "scroll-snap-margin-block-start",
1973 api_class: "CSSPropertyAPIScrollSnapMargin",
1974 api_methods: ["parseSingleValue"],
1975 converter: "ConvertLength",
1976 initial: "InitialScrollSnapMargin",
1977 direction_aware: true,
1978 //runtime_flag: "CSSScrollSnapPoints",
1979 },
1980 {
1981 name: "scroll-snap-margin-block-end",
1982 api_class: "CSSPropertyAPIScrollSnapMargin",
1983 api_methods: ["parseSingleValue"],
1984 converter: "ConvertLength",
1985 initial: "InitialScrollSnapMargin",
1986 direction_aware: true,
1987 //runtime_flag: "CSSScrollSnapPoints",
1988 },
1989 {
1990 name: "scroll-snap-margin-inline-start",
1991 api_class: "CSSPropertyAPIScrollSnapMargin",
1992 api_methods: ["parseSingleValue"],
1993 converter: "ConvertLength",
1994 initial: "InitialScrollSnapMargin",
1995 direction_aware: true,
1996 //runtime_flag: "CSSScrollSnapPoints",
1997 },
1998 {
1999 name: "scroll-snap-margin-inline-end",
2000 api_class: "CSSPropertyAPIScrollSnapMargin",
2001 api_methods: ["parseSingleValue"],
2002 converter: "ConvertLength",
2003 initial: "InitialScrollSnapMargin",
2004 direction_aware: true,
2005 //runtime_flag: "CSSScrollSnapPoints",
1844 }, 2006 },
1845 { 2007 {
1846 name: "scroll-snap-points-x", 2008 name: "scroll-snap-points-x",
1847 converter: "ConvertSnapPoints", 2009 converter: "ConvertSnapPoints",
1848 runtime_flag: "CSSScrollSnapPoints",
1849 }, 2010 },
1850 { 2011 {
1851 name: "scroll-snap-points-y", 2012 name: "scroll-snap-points-y",
1852 converter: "ConvertSnapPoints", 2013 converter: "ConvertSnapPoints",
1853 runtime_flag: "CSSScrollSnapPoints", 2014 runtime_flag: "CSSScrollSnapPoints",
1854 }, 2015 },
1855 { 2016 {
1856 name: "scroll-snap-destination", 2017 name: "scroll-snap-destination",
1857 converter: "ConvertPosition", 2018 converter: "ConvertPosition",
1858 runtime_flag: "CSSScrollSnapPoints", 2019 runtime_flag: "CSSScrollSnapPoints",
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 }, 3352 },
3192 { 3353 {
3193 name: "page-break-before", 3354 name: "page-break-before",
3194 longhands: "break-before", 3355 longhands: "break-before",
3195 }, 3356 },
3196 { 3357 {
3197 name: "page-break-inside", 3358 name: "page-break-inside",
3198 longhands: "break-inside", 3359 longhands: "break-inside",
3199 }, 3360 },
3200 { 3361 {
3362 name: "scroll-padding",
3363 longhands: "scroll-padding-top;scroll-padding-right;scroll-padding-bottom; scroll-padding-left",
3364 },
3365 {
3366 name: "scroll-padding-block",
3367 longhands: "scroll-padding-block-start;scroll-padding-block-end",
3368 },
3369 {
3370 name: "scroll-padding-inline",
3371 longhands: "scroll-padding-inline-start;scroll-padding-inline-end",
3372 },
3373 {
3374 name: "scroll-snap-margin",
3375 longhands: "scroll-snap-margin-top;scroll-snap-margin-right;scroll-snap-ma rgin-bottom;scroll-snap-margin-left",
3376 },
3377 {
3378 name: "scroll-snap-margin-block",
3379 longhands: "scroll-snap-margin-block-start;scroll-snap-margin-block-end",
3380 },
3381 {
3382 name: "scroll-snap-margin-inline",
3383 longhands: "scroll-snap-margin-inline-start;scroll-snap-margin-inline-end" ,
3384 },
3385 {
3201 name: "transition", 3386 name: "transition",
3202 longhands: "transition-property;transition-duration;transition-timing-func tion;transition-delay", 3387 longhands: "transition-property;transition-duration;transition-timing-func tion;transition-delay",
3203 }, 3388 },
3204 { 3389 {
3205 name: "-webkit-border-after", 3390 name: "-webkit-border-after",
3206 longhands: "-webkit-border-after-width;-webkit-border-after-style;-webkit- border-after-color", 3391 longhands: "-webkit-border-after-width;-webkit-border-after-style;-webkit- border-after-color",
3207 }, 3392 },
3208 { 3393 {
3209 name: "-webkit-border-before", 3394 name: "-webkit-border-before",
3210 longhands: "-webkit-border-before-width;-webkit-border-before-style;-webki t-border-before-color", 3395 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
3538 { 3723 {
3539 name: "-webkit-transition-timing-function", 3724 name: "-webkit-transition-timing-function",
3540 alias_for: "transition-timing-function", 3725 alias_for: "transition-timing-function",
3541 }, 3726 },
3542 { 3727 {
3543 name: "-webkit-user-select", 3728 name: "-webkit-user-select",
3544 alias_for: "user-select", 3729 alias_for: "user-select",
3545 }, 3730 },
3546 ], 3731 ],
3547 } 3732 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/css/CSSProperty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698