Bug 42738
| Summary: | Web Inspector: need shortcuts to undo/redo CSS editing | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | ekamenskaya |
| Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Enhancement | CC: | apavlov, bweinstein, joepeck, keishi, pfeldman, pmuellr, rik, yurys |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
ekamenskaya
In Elements panel there should be context menu (and keyboard shortcuts) to undo and redo editing operations with CSS.
This should update the page real-time. Modified page can be saved pressing “Save page as...” in a browser.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexander Pavlov (apavlov)
Currently, a user can revert a standalone CSS file to any revision in the Resources panel (there are subentries with timestamps for the respective CSS file resource). The feature was implemented by pfeldmand@.
CSS changes export is a separate bug.
Alexander Pavlov (apavlov)
As pfeldman@ suggests, we should implement shortcuts to undo/redo CSS style editing. However, there are some issues about it:
1. There is no input focus, so the user may get confused about what kind of action has been undone/redone.
2. DOM editing might also use undo/redo, in which case it is not clear if CSS and DOM changes should form a single undo/redo stack, and this certainly is going to confuse users who think one way or the other.
3. The undo/redo stack is going to be lost once the frontend is closed. This could be solved by using a localStore.
Alexander Pavlov (apavlov)
Implemented by pfeldman@ in the global undo/redo support.