| commit | 94e81f46707f10cf6836ade56c6da40939189db4 | [log] [tgz] |
|---|---|---|
| author | Divyansh Mangal <dmangal@microsoft.com> | Sat Oct 11 13:33:02 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Oct 11 13:33:02 2025 |
| tree | 3e49ee667bb3f8c9b345d85ba5376ff80051674d | |
| parent | 8489245dbcb07f00143f5e8bfc44d45a521c0b57 [diff] |
[SVG] Add UseCounter for CSS sizing on nested <svg> elements This CL introduces a UseCounter to track the usage of CSS sizing styles specifically `width` and `height` applied to nested <svg> elements. The collected data will help assess the potential impact of enabling the feature `WidthAndHeightAsPresentationAttributesOnNestedSvg`, which allows these attributes to behave as presentation attributes on inner SVGs. By measuring how frequently this styling pattern appears across webpages, we can better understand compatibility risks and make informed decisions about feature rollout and developer communication. Note: To ensure that UseCounter functions correctly, we are explicitly collecting sizing styles for nested <svg> elements. To prevent any potential issues arising from this change, the collection of sizing styles has been gated behind a runtime feature flag: `CollectWidthAndHeightAsStylesForNestedSvg`. Bug: 450130878 Change-Id: I2ab3e7094c5e6aeb34b6690f2c11950185db1b58 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7005609 Reviewed-by: Philip Rogers <pdr@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Commit-Queue: Divyansh Mangal <dmangal@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1528554}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.