Bug 205034 - REGRESSION(r252523): Web Inspector: Styles: semicolon is wrongly positioned in multiline values
Summary: REGRESSION(r252523): Web Inspector: Styles: semicolon is wrongly positioned i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on: 203754
Blocks:
  Show dependency treegraph
 
Reported: 2019-12-09 16:11 PST by Nikita Vasilyev
Modified: 2019-12-10 12:09 PST (History)
5 users (show)

See Also:


Attachments
[image] Bug (48.28 KB, image/png)
2019-12-09 16:11 PST, Nikita Vasilyev
no flags Details
Patch (3.28 KB, patch)
2019-12-09 16:59 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2019-12-09 16:11:31 PST
Created attachment 385203 [details]
[image] Bug

The semicolon should immediately follow the last character of the value.
Comment 1 Radar WebKit Bug Importer 2019-12-09 16:11:57 PST
<rdar://problem/57772846>
Comment 2 Devin Rousso 2019-12-09 16:59:52 PST
Created attachment 385211 [details]
Patch
Comment 3 Nikita Vasilyev 2019-12-09 18:38:40 PST
Comment on attachment 385211 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=385211&action=review

This fixes the bug.

> Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js:186
> -        this._valueElement = this._contentElement.appendChild(document.createElement("span"));
> +        let valueContainer = this._contentElement.appendChild(document.createElement("span"));
> +        valueContainer.className = "value-container";
> +
> +        this._valueElement = valueContainer.appendChild(document.createElement("span"));

This looks fine — I don't know how to resolve this without introducing the wrapper element ("value-container").
Comment 4 BJ Burg 2019-12-10 11:39:16 PST
Comment on attachment 385211 [details]
Patch

r=me
Comment 5 WebKit Commit Bot 2019-12-10 12:09:36 PST
Comment on attachment 385211 [details]
Patch

Clearing flags on attachment: 385211

Committed r253338: <https://trac.webkit.org/changeset/253338>
Comment 6 WebKit Commit Bot 2019-12-10 12:09:37 PST
All reviewed patches have been landed.  Closing bug.