Bug 182560

Summary: Web Inspector: Styles: text caret disappears after pressing arrow down for certain numeric values
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   

Nikita Vasilyev
Reported 2018-02-06 19:11:00 PST
Steps: 1. Add "border: 10px solid" CSS property. 2. Place text caret just before "10px". 3. Press Arrow Up key once. 4. Press Arrow Down key once. 5. Press Arrow Down key again. Expected: border: 9px solid Actual: border: 10px solid Text caret disappears on the second press of arrow down key.
Attachments
Radar WebKit Bug Importer
Comment 1 2018-02-06 19:11:22 PST
Nikita Vasilyev
Comment 2 2018-02-07 15:36:14 PST
Removing these lines fixes the bug: // This check is for the situation when the cursor is in the space between the // opening quote of the attribute and the first character. In that spot, the // commonAncestorContainer is actually the entire attribute node since `="` is // added as a simple text node. Since the opening quote is immediately before // the attribute, the node for that attribute must be the next sibling and the // text of the attribute's value must be the first child of that sibling. if (container.parentNode.classList.contains("editing") && container.nextSibling) { container = container.nextSibling.firstChild; startOffset = 0; } However, these lines were added in 2015 to fix Bug 149257 - Web Inspector: Option-Up doesn't increment certain attribute values.
Note You need to log in before you can comment on or make changes to this bug.