Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b4456ac914a1a17444a6a1b58cecdcbdbb24b05b
https://github.com/WebKit/WebKit/commit/b4456ac914a1a17444a6a1b58cecdcbdbb24b05b
Author: Brandon Stewart <[email protected]>
Date: 2025-12-21 (Sun, 21 Dec 2025)
Changed paths:
M LayoutTests/inspector/unit-tests/number-utilities.html
M Source/WebInspectorUI/UserInterface/Base/Utilities.js
M Source/WebInspectorUI/UserInterface/Views/FontDetailsPanel.js
M
Source/WebInspectorUI/UserInterface/Views/FontVariationDetailsSectionRow.js
Log Message:
-----------
Web Inspector: remove trailing ".0" for timestamps
https://bugs.webkit.org/show_bug.cgi?id=191122
rdar://problem/166500013
Reviewed by Devin Rousso.
Strip trailing zeros from integer duration values to improve readability.
For example, "1.00ms" now displays as "1ms".
This is achieved by adding `trailingZeroDisplay: "stripIfInteger"` to the
`toLocaleString` options in `String.standardFormatters`, which handles
this in a locale-aware manner.
* LayoutTests/inspector/unit-tests/number-utilities.html:
* Source/WebInspectorUI/UserInterface/Base/Utilities.js:
(value.f):
* Source/WebInspectorUI/UserInterface/Views/FontDetailsPanel.js:
(WI.FontDetailsPanel.prototype._formatAxisValueAsString):
* Source/WebInspectorUI/UserInterface/Views/FontVariationDetailsSectionRow.js:
(WI.FontVariationDetailsSectionRow.prototype._formatAxisValueAsString):
Canonical link: https://commits.webkit.org/304851@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications