Bug 147489
| Summary: | Web Inspector: Add px when changing number value | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tomas <unicornspamtom> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | bburg, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Tomas
Web Inspector CSS sidebar:
When decreasing/increasing value from "0" to another value, add "px" unit.
Example: (| means cursor)
body {
padding: 0|;
}
ALT + Up arrow key
Expected result:
body {
padding: 1|px;
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
David Kilzer (:ddkilzer)
<rdar://problem/28228697>
Blaze Burg
There is no way to do this unambiguously. The user could prefer ems or some other numerical unit.
Nikita Vasilyev
(In reply to comment #2)
> There is no way to do this unambiguously. The user could prefer ems or some
> other numerical unit.
"px" is the most commonly used unit, so I can see why would somebody want that.
However, it's not very straightforward to implement. For
z-index: 0
we don't want to append "px". `z-index: 1px` isn't a valid CSS.
To implement this properly we'd have to understand the context.