OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Nikita Vasilyev. All rights reserved. | 2 * Copyright (C) 2010 Nikita Vasilyev. All rights reserved. |
3 * Copyright (C) 2010 Joseph Pecoraro. All rights reserved. | 3 * Copyright (C) 2010 Joseph Pecoraro. All rights reserved. |
4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
8 * met: | 8 * met: |
9 * | 9 * |
10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 * @return {!SDK.CSSMetadata} | 219 * @return {!SDK.CSSMetadata} |
220 */ | 220 */ |
221 SDK.cssMetadata = function() { | 221 SDK.cssMetadata = function() { |
222 if (!SDK.CSSMetadata._instance) | 222 if (!SDK.CSSMetadata._instance) |
223 SDK.CSSMetadata._instance = new SDK.CSSMetadata(SDK.CSSMetadata._generatedPr
operties || []); | 223 SDK.CSSMetadata._instance = new SDK.CSSMetadata(SDK.CSSMetadata._generatedPr
operties || []); |
224 return SDK.CSSMetadata._instance; | 224 return SDK.CSSMetadata._instance; |
225 }; | 225 }; |
226 | 226 |
227 SDK.CSSMetadata._distanceProperties = new Set([ | 227 SDK.CSSMetadata._distanceProperties = new Set([ |
228 'background-position', 'border-spacing', 'bottom', 'font-size', 'height', 'lef
t', 'letter-spacing', 'max-height', | 228 'background-position', 'border-spacing', 'bottom', 'font-size', 'height', 'lef
t', 'letter-spacing', 'max-height', |
229 'max-width', 'min-height', 'min-width', 'right', 'text-indent', 'top', 'width'
, 'word-spacing' | 229 'max-width', 'min-height', 'min-width', 'right', 'text-indent', 'top', 'width'
, 'word-spacing', 'grid-row-gap', |
| 230 'grid-column-gap' |
230 ]); | 231 ]); |
231 | 232 |
232 SDK.CSSMetadata._bezierAwareProperties = new Set([ | 233 SDK.CSSMetadata._bezierAwareProperties = new Set([ |
233 'animation', 'animation-timing-function', 'transition', 'transition-timing-fun
ction', '-webkit-animation', | 234 'animation', 'animation-timing-function', 'transition', 'transition-timing-fun
ction', '-webkit-animation', |
234 '-webkit-animation-timing-function', '-webkit-transition', '-webkit-transition
-timing-function' | 235 '-webkit-animation-timing-function', '-webkit-transition', '-webkit-transition
-timing-function' |
235 ]); | 236 ]); |
236 | 237 |
237 SDK.CSSMetadata._colorAwareProperties = new Set([ | 238 SDK.CSSMetadata._colorAwareProperties = new Set([ |
238 'backdrop-filter', | 239 'backdrop-filter', |
239 'background', | 240 'background', |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'lu
minosity', 'unset' | 699 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'lu
minosity', 'unset' |
699 ] | 700 ] |
700 }, | 701 }, |
701 'background-blend-mode': { | 702 'background-blend-mode': { |
702 values: [ | 703 values: [ |
703 'normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dod
ge', 'color-burn', 'hard-light', | 704 'normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dod
ge', 'color-burn', 'hard-light', |
704 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'lu
minosity', 'unset' | 705 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'lu
minosity', 'unset' |
705 ] | 706 ] |
706 }, | 707 }, |
707 'caret-color': {values: ['auto']}, | 708 'caret-color': {values: ['auto']}, |
| 709 'grid-template-columns': {values: ['none']}, |
| 710 'grid-template-rows': {values: ['none']}, |
| 711 'grid-template-areas': {values: ['none']}, |
| 712 'grid-template': {values: ['none']}, |
| 713 'grid-auto-columns': {values: ['auto']}, |
| 714 'grid-auto-rows': {values: ['auto']}, |
| 715 'grid-auto-flow': {values: ['row', 'column', 'dense']}, |
| 716 'grid': {values: ['none']}, |
| 717 'grid-row-start': {values: ['auto']}, |
| 718 'grid-column-start': {values: ['auto']}, |
| 719 'grid-row-end': {values: ['auto']}, |
| 720 'grid-column-end': {values: ['auto']}, |
| 721 'grid-row': {values: ['auto']}, |
| 722 'grid-column': {values: ['auto']}, |
| 723 'grid-area': {values: ['auto']}, |
708 }; | 724 }; |
709 | 725 |
710 // Weight of CSS properties based on their usage from https://www.chromestatus.c
om/metrics/css/popularity | 726 // Weight of CSS properties based on their usage from https://www.chromestatus.c
om/metrics/css/popularity |
711 SDK.CSSMetadata.Weight = { | 727 SDK.CSSMetadata.Weight = { |
712 'align-content': 57, | 728 'align-content': 57, |
713 'align-items': 129, | 729 'align-items': 129, |
714 'align-self': 55, | 730 'align-self': 55, |
715 'animation': 175, | 731 'animation': 175, |
716 'animation-delay': 114, | 732 'animation-delay': 114, |
717 'animation-direction': 113, | 733 'animation-direction': 113, |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 'widows': 115, | 973 'widows': 115, |
958 'width': 268, | 974 'width': 268, |
959 'will-change': 74, | 975 'will-change': 74, |
960 'word-break': 166, | 976 'word-break': 166, |
961 'word-spacing': 157, | 977 'word-spacing': 157, |
962 'word-wrap': 197, | 978 'word-wrap': 197, |
963 'writing-mode': 41, | 979 'writing-mode': 41, |
964 'z-index': 239, | 980 'z-index': 239, |
965 'zoom': 200 | 981 'zoom': 200 |
966 }; | 982 }; |
OLD | NEW |