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

Unified Diff: Source/devtools/front_end/sdk/CSSMetadata.js

Issue 960133007: Devtools: Update CSS property weights in CSSMetaData (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/CSSMetadata.js
diff --git a/Source/devtools/front_end/sdk/CSSMetadata.js b/Source/devtools/front_end/sdk/CSSMetadata.js
index 240614c21efbfcab9c027a222e806165a2599826..a9827febae987c77020a8b33bf30317999bac5fc 100644
--- a/Source/devtools/front_end/sdk/CSSMetadata.js
+++ b/Source/devtools/front_end/sdk/CSSMetadata.js
@@ -711,123 +711,263 @@ WebInspector.CSSMetadata.cssPropertiesMetainfoKeySet = function()
return WebInspector.CSSMetadata._cssPropertiesMetainfoKeySet;
}
-// Weight of CSS properties based on their usage on a few popular websites: https://gist.github.com/3751436
+// Weight of CSS properties based on their usage from https://www.chromestatus.com/metrics/css/popularity
WebInspector.CSSMetadata.Weight = {
- "-webkit-animation": 1,
- "-webkit-animation-duration": 1,
- "-webkit-animation-iteration-count": 1,
- "-webkit-animation-name": 1,
- "-webkit-animation-timing-function": 1,
- "-webkit-appearance": 1,
- "-webkit-background-clip": 2,
- "-webkit-border-horizontal-spacing": 1,
- "-webkit-border-vertical-spacing": 1,
- "-webkit-box-shadow": 24,
- "-webkit-font-smoothing": 2,
- "-webkit-transition": 8,
- "-webkit-transition-delay": 7,
- "-webkit-transition-duration": 7,
- "-webkit-transition-property": 7,
- "-webkit-transition-timing-function": 6,
- "-webkit-user-select": 1,
- "background": 222,
- "background-attachment": 144,
- "background-clip": 143,
- "background-color": 222,
- "background-image": 201,
- "background-origin": 142,
- "background-size": 25,
- "border": 121,
- "border-bottom": 121,
- "border-bottom-color": 121,
- "border-bottom-left-radius": 50,
- "border-bottom-right-radius": 50,
- "border-bottom-style": 114,
- "border-bottom-width": 120,
- "border-collapse": 3,
- "border-left": 95,
- "border-left-color": 95,
- "border-left-style": 89,
- "border-left-width": 94,
- "border-radius": 50,
- "border-right": 93,
- "border-right-color": 93,
- "border-right-style": 88,
- "border-right-width": 93,
- "border-top": 111,
- "border-top-color": 111,
- "border-top-left-radius": 49,
- "border-top-right-radius": 49,
- "border-top-style": 104,
- "border-top-width": 109,
- "bottom": 16,
- "box-shadow": 25,
- "box-sizing": 2,
- "clear": 23,
- "color": 237,
- "cursor": 34,
- "direction": 4,
- "display": 210,
- "fill": 2,
- "filter": 1,
- "float": 105,
- "font": 174,
- "font-family": 25,
- "font-size": 174,
- "font-style": 9,
- "font-weight": 89,
- "height": 161,
- "left": 54,
- "letter-spacing": 3,
- "line-height": 75,
- "list-style": 17,
- "list-style-image": 8,
- "list-style-position": 8,
- "list-style-type": 17,
- "margin": 241,
- "margin-bottom": 226,
- "margin-left": 225,
- "margin-right": 213,
- "margin-top": 241,
- "max-height": 5,
- "max-width": 11,
- "min-height": 9,
- "min-width": 6,
- "opacity": 24,
- "outline": 10,
- "outline-color": 10,
- "outline-style": 10,
- "outline-width": 10,
- "overflow": 57,
- "overflow-x": 56,
- "overflow-y": 57,
- "padding": 216,
- "padding-bottom": 208,
- "padding-left": 216,
- "padding-right": 206,
- "padding-top": 216,
- "position": 136,
- "resize": 1,
- "right": 29,
- "stroke": 1,
- "stroke-width": 1,
- "table-layout": 1,
- "text-align": 66,
- "text-decoration": 53,
- "text-indent": 9,
- "text-overflow": 8,
- "text-shadow": 19,
- "text-transform": 5,
- "top": 71,
- "transform": 1,
- "unicode-bidi": 1,
- "vertical-align": 37,
- "visibility": 11,
- "white-space": 24,
- "width": 255,
- "word-wrap": 6,
- "z-index": 32,
- "zoom": 10
+ "align-content": 57,
+ "align-items": 129,
+ "align-self": 55,
+ "animation": 24,
+ "backface-visibility": 123,
+ "background": 249,
+ "background-attachment": 119,
+ "background-clip": 165,
+ "background-color": 259,
+ "background-image": 246,
+ "background-origin": 107,
+ "background-position": 237,
+ "background-position-x": 108,
+ "background-position-y": 93,
+ "background-repeat": 234,
+ "background-size": 203,
+ "border": 263,
+ "border-bottom": 233,
+ "border-bottom-color": 190,
+ "border-bottom-left-radius": 186,
+ "border-bottom-right-radius": 185,
+ "border-bottom-style": 150,
+ "border-bottom-width": 179,
+ "border-collapse": 209,
+ "border-color": 226,
+ "border-image": 89,
+ "border-image-outset": 50,
+ "border-image-repeat": 49,
+ "border-image-slice": 58,
+ "border-image-source": 32,
+ "border-image-width": 52,
+ "border-left": 221,
+ "border-left-color": 174,
+ "border-left-style": 142,
+ "border-left-width": 172,
+ "border-radius": 224,
+ "border-right": 223,
+ "border-right-color": 182,
+ "border-right-style": 130,
+ "border-right-width": 178,
+ "border-spacing": 198,
+ "border-style": 206,
+ "border-top": 231,
+ "border-top-color": 192,
+ "border-top-left-radius": 187,
+ "border-top-right-radius": 189,
+ "border-top-style": 152,
+ "border-top-width": 180,
+ "border-width": 214,
+ "bottom": 227,
+ "box-shadow": 213,
+ "box-sizing": 216,
+ "caption-side": 96,
+ "clear": 229,
+ "clip": 173,
+ "clip-rule": 5,
+ "color": 256,
+ "content": 219,
+ "counter-increment": 111,
+ "counter-reset": 110,
+ "cursor": 250,
+ "direction": 176,
+ "display": 262,
+ "empty-cells": 99,
+ "fill": 140,
+ "fill-opacity": 82,
+ "fill-rule": 22,
+ "filter": 160,
+ "flex": 133,
+ "flex-basis": 66,
+ "flex-direction": 85,
+ "flex-flow": 94,
+ "flex-grow": 112,
+ "flex-shrink": 61,
+ "flex-wrap": 68,
+ "float": 252,
+ "font": 211,
+ "font-family": 254,
+ "font-kerning": 18,
+ "font-size": 264,
+ "font-stretch": 77,
+ "font-style": 220,
+ "font-variant": 161,
+ "font-weight": 257,
+ "height": 266,
+ "image-rendering": 90,
+ "justify-content": 127,
+ "left": 248,
+ "letter-spacing": 188,
+ "line-height": 244,
+ "list-style": 215,
+ "list-style-image": 145,
+ "list-style-position": 149,
+ "list-style-type": 199,
+ "margin": 267,
+ "margin-bottom": 241,
+ "margin-left": 243,
+ "margin-right": 238,
+ "margin-top": 253,
+ "mask": 20,
+ "max-height": 205,
+ "max-width": 225,
+ "min-height": 217,
+ "min-width": 218,
+ "object-fit": 33,
+ "opacity": 251,
+ "order": 117,
+ "orphans": 146,
+ "outline": 222,
+ "outline-color": 153,
+ "outline-offset": 147,
+ "outline-style": 151,
+ "outline-width": 148,
+ "overflow": 255,
+ "overflow-wrap": 105,
+ "overflow-x": 184,
+ "overflow-y": 196,
+ "padding": 265,
+ "padding-bottom": 230,
+ "padding-left": 235,
+ "padding-right": 232,
+ "padding-top": 240,
+ "page": 8,
+ "page-break-after": 120,
+ "page-break-before": 69,
+ "page-break-inside": 121,
+ "perspective": 92,
+ "perspective-origin": 103,
+ "pointer-events": 183,
+ "position": 261,
+ "quotes": 158,
+ "resize": 168,
+ "right": 245,
+ "shape-rendering": 38,
+ "size": 64,
+ "speak": 118,
+ "src": 170,
+ "stop-color": 42,
+ "stop-opacity": 31,
+ "stroke": 98,
+ "stroke-dasharray": 36,
+ "stroke-dashoffset": 3,
+ "stroke-linecap": 30,
+ "stroke-linejoin": 21,
+ "stroke-miterlimit": 12,
+ "stroke-opacity": 34,
+ "stroke-width": 87,
+ "table-layout": 171,
+ "tab-size": 46,
+ "text-align": 260,
+ "text-anchor": 35,
+ "text-decoration": 247,
+ "text-indent": 207,
+ "text-overflow": 204,
+ "text-rendering": 155,
+ "text-shadow": 208,
+ "text-transform": 202,
+ "top": 258,
+ "touch-action": 80,
+ "transform": 181,
+ "transform-origin": 162,
+ "transform-style": 86,
+ "transition": 193,
+ "transition-delay": 134,
+ "transition-duration": 135,
+ "transition-property": 131,
+ "transition-timing-function": 122,
+ "unicode-bidi": 156,
+ "unicode-range": 136,
+ "vertical-align": 236,
+ "visibility": 242,
+ "-webkit-animation": 175,
+ "-webkit-animation-delay": 114,
+ "-webkit-animation-direction": 113,
+ "-webkit-animation-duration": 137,
+ "-webkit-animation-fill-mode": 132,
+ "-webkit-animation-iteration-count": 124,
+ "-webkit-animation-name": 139,
+ "-webkit-animation-play-state": 104,
+ "-webkit-animation-timing-function": 141,
+ "-webkit-appearance": 191,
+ "-webkit-backface-visibility": 154,
+ "-webkit-background-clip": 164,
+ "-webkit-background-origin": 40,
+ "-webkit-background-size": 163,
+ "-webkit-border-end": 9,
+ "-webkit-border-horizontal-spacing": 81,
+ "-webkit-border-image": 75,
+ "-webkit-border-radius": 212,
+ "-webkit-border-start": 10,
+ "-webkit-border-start-color": 16,
+ "-webkit-border-start-width": 13,
+ "-webkit-border-vertical-spacing": 43,
+ "-webkit-box-align": 101,
+ "-webkit-box-direction": 51,
+ "-webkit-box-flex": 128,
+ "-webkit-box-lines": 2,
+ "-webkit-box-ordinal-group": 91,
+ "-webkit-box-orient": 144,
+ "-webkit-box-pack": 106,
+ "-webkit-box-reflect": 39,
+ "-webkit-box-shadow": 210,
+ "-webkit-column-break-inside": 60,
+ "-webkit-column-count": 84,
+ "-webkit-column-gap": 76,
+ "-webkit-column-rule": 25,
+ "-webkit-column-rule-color": 23,
+ "-webkit-columns": 44,
+ "-webkit-column-span": 29,
+ "-webkit-column-width": 47,
+ "-webkit-filter": 159,
+ "-webkit-font-feature-settings": 59,
+ "-webkit-font-smoothing": 177,
+ "-webkit-highlight": 1,
+ "-webkit-line-break": 45,
+ "-webkit-line-clamp": 126,
+ "-webkit-margin-after": 67,
+ "-webkit-margin-before": 70,
+ "-webkit-margin-collapse": 14,
+ "-webkit-margin-end": 65,
+ "-webkit-margin-start": 100,
+ "-webkit-margin-top-collapse": 78,
+ "-webkit-mask": 19,
+ "-webkit-mask-box-image": 72,
+ "-webkit-mask-image": 88,
+ "-webkit-mask-position": 54,
+ "-webkit-mask-repeat": 63,
+ "-webkit-mask-size": 79,
+ "-webkit-padding-after": 15,
+ "-webkit-padding-before": 28,
+ "-webkit-padding-end": 48,
+ "-webkit-padding-start": 73,
+ "-webkit-print-color-adjust": 83,
+ "-webkit-rtl-ordering": 7,
+ "-webkit-tap-highlight-color": 169,
+ "-webkit-text-emphasis-color": 11,
+ "-webkit-text-fill-color": 71,
+ "-webkit-text-security": 17,
+ "-webkit-text-stroke": 56,
+ "-webkit-text-stroke-color": 37,
+ "-webkit-text-stroke-width": 53,
+ "-webkit-user-drag": 95,
+ "-webkit-user-modify": 62,
+ "-webkit-user-select": 194,
+ "-webkit-writing-mode": 4,
+ "white-space": 228,
+ "widows": 115,
+ "width": 268,
+ "will-change": 74,
+ "word-break": 166,
+ "word-spacing": 157,
+ "word-wrap": 197,
+ "writing-mode": 41,
+ "z-index": 239,
+ "zoom": 200
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698