Bug 148678

Summary: Web Inspector: visual style editor fields should restore previous value when invalid inputs are entered
Product: WebKit Reporter: BJ Burg <bburg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=148580
Bug Depends on:    
Bug Blocks: 147563    

Description BJ Burg 2015-09-01 08:47:49 PDT
This is a followup bug to https://bugs.webkit.org/show_bug.cgi?id=148580.

We shouldn't be storing the input state in the DOM, it should be kept in the widget class separately and synced when valid values are committed.
Comment 1 Radar WebKit Bug Importer 2015-09-01 08:48:17 PDT
<rdar://problem/22518919>
Comment 2 Devin Rousso 2015-09-08 16:02:25 PDT
(In reply to comment #0)
> We shouldn't be storing the input state in the DOM, it should be kept in the
> widget class separately and synced when valid values are committed.

I agree with you that we should have member variables for the current value, but I am not sure about "restore previous value when invalid inputs are entered".  What exactly do you mean by that?  Would it be something like "display: foo;"?  If so, I don't think we should just revert to the previous value because that would remove any support for other browsers/custom css.  Maybe something like a warning saying "this won't work"...
Comment 3 Devin Rousso 2018-10-25 01:31:18 PDT
The Visual styles sidebar was removed in r236298 <https://webkit.org/b/189807>.