Title: [253338] trunk/Source/WebInspectorUI
Revision
253338
Author
[email protected]
Date
2019-12-10 12:09:29 -0800 (Tue, 10 Dec 2019)

Log Message

REGRESSION(r252523): Web Inspector: Styles: semicolon is wrongly positioned in multiline values
https://bugs.webkit.org/show_bug.cgi?id=205034
<rdar://problem/57772846>

Reviewed by Brian Burg.

Wrap the value node in another `<span class="value-container">` so that the semicolon can be
included as part of the `display: inline-block;` when there are multiple lines in the value.

* UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype.update):

* UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css:
(.spreadsheet-style-declaration-editor .property:not(.disabled).has-newline .value-container): Added.
(.spreadsheet-style-declaration-editor .property:not(.disabled).has-newline .value): Deleted.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (253337 => 253338)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-12-10 20:04:10 UTC (rev 253337)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-12-10 20:09:29 UTC (rev 253338)
@@ -1,5 +1,23 @@
 2019-12-10  Devin Rousso  <[email protected]>
 
+        REGRESSION(r252523): Web Inspector: Styles: semicolon is wrongly positioned in multiline values
+        https://bugs.webkit.org/show_bug.cgi?id=205034
+        <rdar://problem/57772846>
+
+        Reviewed by Brian Burg.
+
+        Wrap the value node in another `<span class="value-container">` so that the semicolon can be
+        included as part of the `display: inline-block;` when there are multiple lines in the value.
+
+        * UserInterface/Views/SpreadsheetStyleProperty.js:
+        (WI.SpreadsheetStyleProperty.prototype.update):
+
+        * UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css:
+        (.spreadsheet-style-declaration-editor .property:not(.disabled).has-newline .value-container): Added.
+        (.spreadsheet-style-declaration-editor .property:not(.disabled).has-newline .value): Deleted.
+
+2019-12-10  Devin Rousso  <[email protected]>
+
         Web Inspector: Elements: Styles: there is a double border between the last rule and the class list area or filter area
         https://bugs.webkit.org/show_bug.cgi?id=205040
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css (253337 => 253338)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css	2019-12-10 20:04:10 UTC (rev 253337)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css	2019-12-10 20:09:29 UTC (rev 253338)
@@ -56,7 +56,7 @@
     white-space: pre-wrap;
 }
 
-.spreadsheet-style-declaration-editor .property:not(.disabled).has-newline .value {
+.spreadsheet-style-declaration-editor .property:not(.disabled).has-newline .value-container {
     display: inline-block;
     vertical-align: top;
 }

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js (253337 => 253338)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2019-12-10 20:04:10 UTC (rev 253337)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2019-12-10 20:09:29 UTC (rev 253338)
@@ -180,7 +180,10 @@
         colonElement.classList.add("colon");
         colonElement.textContent = ": ";
 
-        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._valueElement.classList.add("value");
         this._renderValue(this._property.rawValue);
 
@@ -202,7 +205,7 @@
             this._setupJumpToSymbol(this._valueElement);
         }
 
-        let semicolonElement = this._contentElement.appendChild(document.createElement("span"));
+        let semicolonElement = valueContainer.appendChild(document.createElement("span"));
         semicolonElement.classList.add("semicolon");
         semicolonElement.textContent = ";";
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to