Re: [csswg-drafts] [web-animations] Could commitStyles always write the end state of the animation? (#5394)

I had a look at the use counter data today but I'm not sure I'm holding it right.

For usage of `commitStyles` in general, I'm seeing about 0.001% of page views using it, up to 0.02% at the most which doesn't seem to line up with [Chrome's results](https://chromestatus.com/metrics/feature/timeline/popularity/3150) which puts it at more like 0.4%.

Perhaps it's because this data is mostly only covering the Nightly channel so far?

Comparing the percentage of pages that use `commitStyles` with a non-filling final value to the total number of pages that use `commitStyles` I'm getting a value of about 0.05%. That is, about 0.05% of 0.001% of pages would be affected by this change. That is about 0.00005% of page views.

For my reference, the query I'm using is:

```sql
SELECT
    DATE(use_counters.submission_timestamp) AS use_counters_submission_date,
    SAFE_DIVIDE(
        COALESCE(SUM(use_counters.metrics.counter.use_counter_doc_animation_commitstyles), 0),
        COALESCE(SUM(use_counters.metrics.counter.use_counter_content_documents_destroyed), 0)
    ) * 100 AS percentage_commitstyles_doc,
    SAFE_DIVIDE(
        COALESCE(SUM(use_counters.metrics.counter.use_counter_page_animation_commitstyles), 0),
        COALESCE(SUM(use_counters.metrics.counter.use_counter_top_level_content_documents_destroyed), 0)
    ) * 100 AS percentage_commitstyles_page,
    SAFE_DIVIDE(
        COALESCE(SUM(use_counters.metrics.counter.use_counter_doc_commit_styles_non_filling_final_value), 0),
        COALESCE(SUM(use_counters.metrics.counter.use_counter_doc_animation_commitstyles), 0)
    ) * 100 AS percentage_commitstyles_non_filling,
    SAFE_DIVIDE(
        COALESCE(SUM(use_counters.metrics.counter.use_counter_page_commit_styles_non_filling_final_value), 0),
        COALESCE(SUM(use_counters.metrics.counter.use_counter_top_level_content_documents_destroyed), 0)
    ) * 100 AS percentage_commitstyles_non_filling_page
FROM
    `mozdata.firefox_desktop.use_counters` AS use_counters
WHERE
    use_counters.submission_timestamp >= TIMESTAMP_ADD(TIMESTAMP_TRUNC(CURRENT_TIMESTAMP(), DAY, 'UTC'), INTERVAL -27 DAY)
    AND use_counters.submission_timestamp < TIMESTAMP_ADD(TIMESTAMP_ADD(TIMESTAMP_TRUNC(CURRENT_TIMESTAMP(), DAY, 'UTC'), INTERVAL -27 DAY), INTERVAL 28 DAY)
    AND DATE(use_counters.submission_timestamp) >= '2010-01-01'
GROUP BY
    1
ORDER BY
    1 DESC
LIMIT 5000
```

And for that last column, `percentage_commitstyles_non_filling_page`, I'm getting values like:

```
4.490888940333186e-7
1.3338685697352518e-7
3.8296497686826245e-8
1.485403195685889e-7
2.432583237340193e-7
0.0000019161560246031795
```

It might be worth waiting a little longer and then getting someone to check my query but so far this looks to be Web-compatible.

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


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

Received on Friday, 30 May 2025 02:41:26 UTC