Re: [csswg-drafts] [css-conditional-4] Rename @when to @if (#6684)

Here's a sample of the top 10 most frequently used SCSS `@if` conditionals, based on data from the March 2022 mobile run in HTTP Archive:

Conditional | Frequency | Distinct pages
-- | -- | --
`$enable-rounded` | 2,369,283 | 239,830
`$enable-gradients` | 1,548,297 | 238,592
`$enable-shadows` | 964,176 | 238,292
`$enable-grid-classes` | 918,959 | 246,287
`$enable-transitions` | 560,500 | 239,068
`$min != null and $max != null` | 515,695 | 246,428
`$enable-validation-icons` | 503,335 | 161,664
`$enable-shadows and $btn-active-box-shadow != none` | 339,201 | 200,814
`$max` | 265,217 | 250,126
`$min` | 263,887 | 249,272

Quick summary stats:
- 8,242,394 pages analyzed
- 333,530 pages (0.8%) detected having at least one SCSS `@if` conditional
- 68,222 distinct conditionals

[Full results](https://docs.google.com/spreadsheets/d/1ZMoqLRu2OpBDi-kLgJdTzAAkZwPeHe5sLHjTjt5vEng/edit?usp=sharing) | [Queries](https://gist.github.com/rviscomi/60c7dc4e31533535cd5bd653c5846aed) | [Runtime code](https://github.com/HTTPArchive/custom-metrics/blob/a6e99c658a3521e5a76b85b544aa80eff662342e/dist/sass.js#L127-L148)

Let me know if the results look reasonable or if there are any changes needed. Hope this is useful to the discussion.

-- 
GitHub Notification of comment by rviscomi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6684#issuecomment-1076594311 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 23 March 2022 17:22:17 UTC