<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[204758] trunk/Source/WebInspectorUI</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/204758">204758</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-08-22 22:56:45 -0700 (Mon, 22 Aug 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: Visual styles sidebar should do something sane for SVG elements
https://bugs.webkit.org/show_bug.cgi?id=148269

Patch by Devin Rousso &lt;dcrousso+webkit@gmail.com&gt; on 2016-08-22
Reviewed by Joseph Pecoraro.

* Localizations/en.lproj/localizedStrings.js:

* UserInterface/Models/DOMNode.js:
(WebInspector.DOMNode.prototype.get ownerSVGElement):
(WebInspector.DOMNode.prototype.isSVGElement):
Climbs ancestor tree to determine if node is an SVG node.

* UserInterface/Views/VisualStyleDetailsPanel.js:
(WebInspector.VisualStyleDetailsPanel.prototype.initialLayout):
(WebInspector.VisualStyleDetailsPanel.prototype._updateSections):
(WebInspector.VisualStyleDetailsPanel.prototype._populatePositionSection):
(WebInspector.VisualStyleDetailsPanel.prototype._populateDimensionsSection):
(WebInspector.VisualStyleDetailsPanel.prototype._populateContentSection):
(WebInspector.VisualStyleDetailsPanel.prototype._populateFillSection):
(WebInspector.VisualStyleDetailsPanel.prototype._populateStrokeSection):

* UserInterface/Views/VisualStylePropertyEditor.css:
(.visual-style-property-container.inactive):
(.visual-style-property-container &gt; *:first-child:matches(.visual-style-property-value-container)):

* UserInterface/Views/VisualStyleRelativeNumberSlider.css:
(.visual-style-property-container.number-input-box.relative-number-slider &gt; .relative-slider):

* UserInterface/Views/VisualStyleUnitSlider.css:
(.visual-style-property-container.unit-slider &gt; .visual-style-property-value-container &gt; .slider):
(.visual-style-property-container.unit-slider.opacity &gt; .visual-style-property-value-container &gt; .slider): Deleted.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs">trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceModelsDOMNodejs">trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleDetailsPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVisualStylePropertyEditorcss">trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.css</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleRelativeNumberSlidercss">trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleRelativeNumberSlider.css</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleUnitSlidercss">trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleUnitSlider.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (204757 => 204758)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2016-08-23 05:34:42 UTC (rev 204757)
+++ trunk/Source/WebInspectorUI/ChangeLog        2016-08-23 05:56:45 UTC (rev 204758)
</span><span class="lines">@@ -1,5 +1,39 @@
</span><span class="cx"> 2016-08-22  Devin Rousso  &lt;dcrousso+webkit@gmail.com&gt;
</span><span class="cx"> 
</span><ins>+        Web Inspector: Visual styles sidebar should do something sane for SVG elements
+        https://bugs.webkit.org/show_bug.cgi?id=148269
+
+        Reviewed by Joseph Pecoraro.
+
+        * Localizations/en.lproj/localizedStrings.js:
+
+        * UserInterface/Models/DOMNode.js:
+        (WebInspector.DOMNode.prototype.get ownerSVGElement):
+        (WebInspector.DOMNode.prototype.isSVGElement):
+        Climbs ancestor tree to determine if node is an SVG node.
+
+        * UserInterface/Views/VisualStyleDetailsPanel.js:
+        (WebInspector.VisualStyleDetailsPanel.prototype.initialLayout):
+        (WebInspector.VisualStyleDetailsPanel.prototype._updateSections):
+        (WebInspector.VisualStyleDetailsPanel.prototype._populatePositionSection):
+        (WebInspector.VisualStyleDetailsPanel.prototype._populateDimensionsSection):
+        (WebInspector.VisualStyleDetailsPanel.prototype._populateContentSection):
+        (WebInspector.VisualStyleDetailsPanel.prototype._populateFillSection):
+        (WebInspector.VisualStyleDetailsPanel.prototype._populateStrokeSection):
+
+        * UserInterface/Views/VisualStylePropertyEditor.css:
+        (.visual-style-property-container.inactive):
+        (.visual-style-property-container &gt; *:first-child:matches(.visual-style-property-value-container)):
+
+        * UserInterface/Views/VisualStyleRelativeNumberSlider.css:
+        (.visual-style-property-container.number-input-box.relative-number-slider &gt; .relative-slider):
+
+        * UserInterface/Views/VisualStyleUnitSlider.css:
+        (.visual-style-property-container.unit-slider &gt; .visual-style-property-value-container &gt; .slider):
+        (.visual-style-property-container.unit-slider.opacity &gt; .visual-style-property-value-container &gt; .slider): Deleted.
+
+2016-08-22  Devin Rousso  &lt;dcrousso+webkit@gmail.com&gt;
+
</ins><span class="cx">         Web Inspector: Visual Styles: &quot;Text -&gt; Content&quot; section should only be visible for pseudo-element
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=158272
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (204757 => 204758)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2016-08-23 05:34:42 UTC (rev 204757)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2016-08-23 05:56:45 UTC (rev 204758)
</span><span class="lines">@@ -122,10 +122,13 @@
</span><span class="cx"> localizedStrings[&quot;Calls&quot;] = &quot;Calls&quot;;
</span><span class="cx"> localizedStrings[&quot;Cancel Automatic Continue&quot;] = &quot;Cancel Automatic Continue&quot;;
</span><span class="cx"> localizedStrings[&quot;Cancel comparison&quot;] = &quot;Cancel comparison&quot;;
</span><ins>+localizedStrings[&quot;Cap&quot;] = &quot;Cap&quot;;
</ins><span class="cx"> localizedStrings[&quot;Caps&quot;] = &quot;Caps&quot;;
</span><span class="cx"> localizedStrings[&quot;Capturing&quot;] = &quot;Capturing&quot;;
</span><span class="cx"> localizedStrings[&quot;Catch Variables&quot;] = &quot;Catch Variables&quot;;
</span><span class="cx"> localizedStrings[&quot;Categories&quot;] = &quot;Categories&quot;;
</span><ins>+localizedStrings[&quot;Center X&quot;] = &quot;Center X&quot;;
+localizedStrings[&quot;Center Y&quot;] = &quot;Center Y&quot;;
</ins><span class="cx"> localizedStrings[&quot;Character Data&quot;] = &quot;Character Data&quot;;
</span><span class="cx"> localizedStrings[&quot;Charge  %s  to Callers&quot;] = &quot;Charge  %s  to Callers&quot;;
</span><span class="cx"> localizedStrings[&quot;Checked&quot;] = &quot;Checked&quot;;
</span><span class="lines">@@ -207,6 +210,7 @@
</span><span class="cx"> localizedStrings[&quot;Cursor&quot;] = &quot;Cursor&quot;;
</span><span class="cx"> localizedStrings[&quot;Custom&quot;] = &quot;Custom&quot;;
</span><span class="cx"> localizedStrings[&quot;DOM Content Loaded \u2014 %s&quot;] = &quot;DOM Content Loaded \u2014 %s&quot;;
</span><ins>+localizedStrings[&quot;Dash Array&quot;] = &quot;Dash Array&quot;;
</ins><span class="cx"> localizedStrings[&quot;Data&quot;] = &quot;Data&quot;;
</span><span class="cx"> localizedStrings[&quot;Data returned from the database is too large.&quot;] = &quot;Data returned from the database is too large.&quot;;
</span><span class="cx"> localizedStrings[&quot;Database no longer has expected version.&quot;] = &quot;Database no longer has expected version.&quot;;
</span><span class="lines">@@ -300,6 +304,7 @@
</span><span class="cx"> localizedStrings[&quot;Enter a Gradient&quot;] = &quot;Enter a Gradient&quot;;
</span><span class="cx"> localizedStrings[&quot;Enter a URL&quot;] = &quot;Enter a URL&quot;;
</span><span class="cx"> localizedStrings[&quot;Enter a name.&quot;] = &quot;Enter a name.&quot;;
</span><ins>+localizedStrings[&quot;Enter an array value&quot;] = &quot;Enter an array value&quot;;
</ins><span class="cx"> localizedStrings[&quot;Enter the name of a Keyframe&quot;] = &quot;Enter the name of a Keyframe&quot;;
</span><span class="cx"> localizedStrings[&quot;Enter value&quot;] = &quot;Enter value&quot;;
</span><span class="cx"> localizedStrings[&quot;Entire Recording&quot;] = &quot;Entire Recording&quot;;
</span><span class="lines">@@ -409,6 +414,7 @@
</span><span class="cx"> localizedStrings[&quot;JavaScript&quot;] = &quot;JavaScript&quot;;
</span><span class="cx"> localizedStrings[&quot;JavaScript &amp; Events&quot;] = &quot;JavaScript &amp; Events&quot;;
</span><span class="cx"> localizedStrings[&quot;JavaScript Allocations&quot;] = &quot;JavaScript Allocations&quot;;
</span><ins>+localizedStrings[&quot;Join&quot;] = &quot;Join&quot;;
</ins><span class="cx"> localizedStrings[&quot;Jump to Definition&quot;] = &quot;Jump to Definition&quot;;
</span><span class="cx"> localizedStrings[&quot;Keep Log on Navigation&quot;] = &quot;Keep Log on Navigation&quot;;
</span><span class="cx"> localizedStrings[&quot;Key&quot;] = &quot;Key&quot;;
</span><span class="lines">@@ -461,6 +467,7 @@
</span><span class="cx"> localizedStrings[&quot;Microtask Dispatched&quot;] = &quot;Microtask Dispatched&quot;;
</span><span class="cx"> localizedStrings[&quot;Min&quot;] = &quot;Min&quot;;
</span><span class="cx"> localizedStrings[&quot;Missing Dependencies:%s&quot;] = &quot;Missing Dependencies:%s&quot;;
</span><ins>+localizedStrings[&quot;Miter&quot;] = &quot;Miter&quot;;
</ins><span class="cx"> localizedStrings[&quot;Mixed&quot;] = &quot;Mixed&quot;;
</span><span class="cx"> localizedStrings[&quot;Module Code&quot;] = &quot;Module Code&quot;;
</span><span class="cx"> localizedStrings[&quot;Name&quot;] = &quot;Name&quot;;
</span><span class="lines">@@ -556,6 +563,8 @@
</span><span class="cx"> localizedStrings[&quot;Query returned no results.&quot;] = &quot;Query returned no results.&quot;;
</span><span class="cx"> localizedStrings[&quot;Radial Gradient&quot;] = &quot;Radial Gradient&quot;;
</span><span class="cx"> localizedStrings[&quot;Radius&quot;] = &quot;Radius&quot;;
</span><ins>+localizedStrings[&quot;Radius X&quot;] = &quot;Radius X&quot;;
+localizedStrings[&quot;Radius Y&quot;] = &quot;Radius Y&quot;;
</ins><span class="cx"> localizedStrings[&quot;Range Issue&quot;] = &quot;Range Issue&quot;;
</span><span class="cx"> localizedStrings[&quot;Readonly&quot;] = &quot;Readonly&quot;;
</span><span class="cx"> localizedStrings[&quot;Reasons for compositing:&quot;] = &quot;Reasons for compositing:&quot;;
</span><span class="lines">@@ -595,6 +604,7 @@
</span><span class="cx"> localizedStrings[&quot;Reveal in Original Resource&quot;] = &quot;Reveal in Original Resource&quot;;
</span><span class="cx"> localizedStrings[&quot;Right&quot;] = &quot;Right&quot;;
</span><span class="cx"> localizedStrings[&quot;Role&quot;] = &quot;Role&quot;;
</span><ins>+localizedStrings[&quot;Rule&quot;] = &quot;Rule&quot;;
</ins><span class="cx"> localizedStrings[&quot;Samples&quot;] = &quot;Samples&quot;;
</span><span class="cx"> localizedStrings[&quot;Save configuration&quot;] = &quot;Save configuration&quot;;
</span><span class="cx"> localizedStrings[&quot;Scheme&quot;] = &quot;Scheme&quot;;
</span><span class="lines">@@ -680,6 +690,7 @@
</span><span class="cx"> localizedStrings[&quot;Stop recording (%s)&quot;] = &quot;Stop recording (%s)&quot;;
</span><span class="cx"> localizedStrings[&quot;Stop recording.&quot;] = &quot;Stop recording.&quot;;
</span><span class="cx"> localizedStrings[&quot;Storage&quot;] = &quot;Storage&quot;;
</span><ins>+localizedStrings[&quot;Stroke&quot;] = &quot;Stroke&quot;;
</ins><span class="cx"> localizedStrings[&quot;Style&quot;] = &quot;Style&quot;;
</span><span class="cx"> localizedStrings[&quot;Style Attribute&quot;] = &quot;Style Attribute&quot;;
</span><span class="cx"> localizedStrings[&quot;Style Rules&quot;] = &quot;Style Rules&quot;;
</span><span class="lines">@@ -763,8 +774,14 @@
</span><span class="cx"> localizedStrings[&quot;Word&quot;] = &quot;Word&quot;;
</span><span class="cx"> localizedStrings[&quot;Working Copy&quot;] = &quot;Working Copy&quot;;
</span><span class="cx"> localizedStrings[&quot;Wrap&quot;] = &quot;Wrap&quot;;
</span><ins>+localizedStrings[&quot;X&quot;] = &quot;X&quot;;
+localizedStrings[&quot;X1&quot;] = &quot;X1&quot;;
+localizedStrings[&quot;X2&quot;] = &quot;X2&quot;;
</ins><span class="cx"> localizedStrings[&quot;XHR&quot;] = &quot;XHR&quot;;
</span><span class="cx"> localizedStrings[&quot;XHRs&quot;] = &quot;XHRs&quot;;
</span><ins>+localizedStrings[&quot;Y&quot;] = &quot;Y&quot;;
+localizedStrings[&quot;Y1&quot;] = &quot;Y1&quot;;
+localizedStrings[&quot;Y2&quot;] = &quot;Y2&quot;;
</ins><span class="cx"> localizedStrings[&quot;Yes&quot;] = &quot;Yes&quot;;
</span><span class="cx"> localizedStrings[&quot;Z-Index&quot;] = &quot;Z-Index&quot;;
</span><span class="cx"> localizedStrings[&quot;key&quot;] = &quot;key&quot;;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceModelsDOMNodejs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js (204757 => 204758)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js        2016-08-23 05:34:42 UTC (rev 204757)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/DOMNode.js        2016-08-23 05:56:45 UTC (rev 204758)
</span><span class="lines">@@ -568,6 +568,22 @@
</span><span class="cx">         return descendant !== null &amp;&amp; descendant.isAncestor(this);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    get ownerSVGElement()
+    {
+        if (this._nodeName === &quot;svg&quot;)
+            return this;
+
+        if (!this.parentNode)
+            return null;
+
+        return this.parentNode.ownerSVGElement;
+    }
+
+    isSVGElement()
+    {
+        return !!this.ownerSVGElement;
+    }
+
</ins><span class="cx">     _setAttributesPayload(attrs)
</span><span class="cx">     {
</span><span class="cx">         this._attributes = [];
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleDetailsPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js (204757 => 204758)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js        2016-08-23 05:34:42 UTC (rev 204757)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleDetailsPanel.js        2016-08-23 05:56:45 UTC (rev 204758)
</span><span class="lines">@@ -102,6 +102,8 @@
</span><span class="cx">         this.element.appendChild(this._sections.text.element);
</span><span class="cx"> 
</span><span class="cx">         // Background Section
</span><ins>+        this._generateSection(&quot;fill&quot;, WebInspector.UIString(&quot;Fill&quot;));
+        this._generateSection(&quot;stroke&quot;, WebInspector.UIString(&quot;Stroke&quot;));
</ins><span class="cx">         this._generateSection(&quot;background-style&quot;, WebInspector.UIString(&quot;Style&quot;));
</span><span class="cx">         this._generateSection(&quot;border&quot;, WebInspector.UIString(&quot;Border&quot;));
</span><span class="cx">         this._generateSection(&quot;outline&quot;, WebInspector.UIString(&quot;Outline&quot;));
</span><span class="lines">@@ -108,7 +110,7 @@
</span><span class="cx">         this._generateSection(&quot;box-shadow&quot;, WebInspector.UIString(&quot;Box Shadow&quot;));
</span><span class="cx">         this._generateSection(&quot;list-style&quot;, WebInspector.UIString(&quot;List Styles&quot;));
</span><span class="cx"> 
</span><del>-        this._sections.background = new WebInspector.DetailsSection(&quot;background&quot;, WebInspector.UIString(&quot;Background&quot;), [this._groups.backgroundStyle.section, this._groups.border.section, this._groups.outline.section, this._groups.boxShadow.section, this._groups.listStyle.section]);
</del><ins>+        this._sections.background = new WebInspector.DetailsSection(&quot;background&quot;, WebInspector.UIString(&quot;Background&quot;), [this._groups.fill.section, this._groups.stroke.section, this._groups.backgroundStyle.section, this._groups.border.section, this._groups.outline.section, this._groups.boxShadow.section, this._groups.listStyle.section]);
</ins><span class="cx">         this.element.appendChild(this._sections.background.element);
</span><span class="cx"> 
</span><span class="cx">         // Effects Section
</span><span class="lines">@@ -192,6 +194,57 @@
</span><span class="cx">         let hasMatchedElementPseudoSelector = this._currentStyle.ownerRule &amp;&amp; this._currentStyle.ownerRule.hasMatchedPseudoElementSelector();
</span><span class="cx">         this._groups.content.section.element.classList.toggle(&quot;inactive&quot;, !hasMatchedElementPseudoSelector);
</span><span class="cx">         this._groups.listStyle.section.element.classList.toggle(&quot;inactive&quot;, hasMatchedElementPseudoSelector);
</span><ins>+
+        let node = this._nodeStyles.node;
+        let isSVGElement = node.isSVGElement();
+
+        this._groups.float.section.element.classList.toggle(&quot;inactive&quot;, isSVGElement);
+        this._groups.border.section.element.classList.toggle(&quot;inactive&quot;, isSVGElement);
+        this._groups.boxShadow.section.element.classList.toggle(&quot;inactive&quot;, isSVGElement);
+        this._groups.listStyle.section.element.classList.toggle(&quot;inactive&quot;, isSVGElement);
+
+        this._groups.fill.section.element.classList.toggle(&quot;inactive&quot;, !isSVGElement);
+        this._groups.stroke.section.element.classList.toggle(&quot;inactive&quot;, !isSVGElement);
+
+        let isSVGCircle = node.nodeName() === &quot;circle&quot;;
+        let isSVGEllipse = node.nodeName() === &quot;ellipse&quot;;
+        let isSVGRadialGradient = node.nodeName() === &quot;radialGradient&quot;;
+        let isSVGRect = node.nodeName() === &quot;rect&quot;;
+        let isSVGLine = node.nodeName() === &quot;line&quot;;
+        let isSVGLinearGradient = node.nodeName() === &quot;linearGradient&quot;;
+
+        // Only show the dimensions section if the current element is not an SVG element or is &lt;ellipse&gt;, &lt;rect&gt;, &lt;circle&gt;, or &lt;radialGradient&gt;.
+        this._groups.dimensions.section.element.classList.toggle(&quot;inactive&quot;, !(!isSVGElement || isSVGEllipse || isSVGRect || isSVGCircle || isSVGRadialGradient));
+
+        // Only show the non-SVG dimensions group if the current element is not an SVG element or is &lt;rect&gt;.
+        this._groups.dimensions.defaultGroup.element.classList.toggle(&quot;inactive&quot;, !(!isSVGElement || isSVGRect));
+
+        // Only show the SVG dimensions group if the current element is an SVG element, &lt;rect&gt;, &lt;circle&gt;, or &lt;radialGradient&gt;.
+        this._groups.dimensions.svgGroup.element.classList.toggle(&quot;inactive&quot;, !(isSVGEllipse || isSVGRect || isSVGCircle || isSVGRadialGradient));
+
+        // Only show editor for &quot;r&quot; if the current element is &lt;circle&gt; or &lt;radialGradient&gt;.
+        this._groups.dimensions.properties.r.element.classList.toggle(&quot;inactive&quot;, !(isSVGCircle || isSVGRadialGradient));
+
+        // Only show editors for &quot;rx&quot; and &quot;ry&quot; if the current element is &lt;ellipse&gt; or &lt;rect&gt;.
+        this._groups.dimensions.properties.rx.element.classList.toggle(&quot;inactive&quot;, !(isSVGEllipse || isSVGRect));
+        this._groups.dimensions.properties.ry.element.classList.toggle(&quot;inactive&quot;, !(isSVGEllipse || isSVGRect));
+
+        // Only show the SVG position group if the current element is &lt;rect&gt;, &lt;circle&gt;, &lt;ellipse&gt;, &lt;line&gt;, &lt;radialGradient&gt;, or &lt;linearGradient&gt;.
+        this._groups.position.svgGroup.element.classList.toggle(&quot;inactive&quot;, !(isSVGRect || isSVGCircle || isSVGEllipse || isSVGLine || isSVGRadialGradient || isSVGLinearGradient));
+
+        // Only show editors for &quot;x&quot; and &quot;y&quot; if the current element is &lt;rect&gt;.
+        this._groups.position.properties.x.element.classList.toggle(&quot;inactive&quot;, !isSVGRect);
+        this._groups.position.properties.y.element.classList.toggle(&quot;inactive&quot;, !isSVGRect);
+
+        // Only show editors for &quot;x1&quot;, &quot;y1&quot;, &quot;x2&quot;, and &quot;y2&quot; if the current element is &lt;line&gt; or &lt;linearGradient&gt;.
+        this._groups.position.properties.x1.element.classList.toggle(&quot;inactive&quot;, !(isSVGLine || isSVGLinearGradient));
+        this._groups.position.properties.y1.element.classList.toggle(&quot;inactive&quot;, !(isSVGLine || isSVGLinearGradient));
+        this._groups.position.properties.x2.element.classList.toggle(&quot;inactive&quot;, !(isSVGLine || isSVGLinearGradient));
+        this._groups.position.properties.y2.element.classList.toggle(&quot;inactive&quot;, !(isSVGLine || isSVGLinearGradient));
+
+        // Only show editors for &quot;cx&quot; and &quot;cy&quot; if the current element is &lt;circle&gt;, &lt;ellipse&gt;, or &lt;radialGradient&gt;.
+        this._groups.position.properties.cx.element.classList.toggle(&quot;inactive&quot;, !(isSVGCircle || isSVGEllipse || isSVGRadialGradient));
+        this._groups.position.properties.cy.element.classList.toggle(&quot;inactive&quot;, !(isSVGCircle || isSVGEllipse || isSVGRadialGradient));
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     _updateProperties(group, forceStyleUpdate)
</span><span class="lines">@@ -459,11 +512,46 @@
</span><span class="cx">         positionType.element.appendChild(properties.zIndex.element);
</span><span class="cx">         positionType.element.classList.add(&quot;visual-style-separated-row&quot;);
</span><span class="cx"> 
</span><del>-        rows.unshift(positionType)
</del><ins>+        rows.unshift(positionType);
</ins><span class="cx"> 
</span><del>-        let positionGroup = new WebInspector.DetailsSectionGroup(rows);
-        this._populateSection(group, [positionGroup]);
</del><ins>+        group.defaultGroup = new WebInspector.DetailsSectionGroup(rows);
</ins><span class="cx"> 
</span><ins>+        let xyRow = new WebInspector.DetailsSectionRow;
+
+        properties.x = new WebInspector.VisualStyleNumberInputBox(&quot;x&quot;, WebInspector.UIString(&quot;X&quot;), this._keywords.boxModel, this._units.defaults, true);
+        properties.y = new WebInspector.VisualStyleNumberInputBox(&quot;y&quot;, WebInspector.UIString(&quot;Y&quot;), this._keywords.boxModel, this._units.defaults, true);
+
+        xyRow.element.appendChild(properties.x.element);
+        xyRow.element.appendChild(properties.y.element);
+
+        let x1y1Row = new WebInspector.DetailsSectionRow;
+
+        properties.x1 = new WebInspector.VisualStyleNumberInputBox(&quot;x1&quot;, WebInspector.UIString(&quot;X1&quot;), this._keywords.boxModel, this._units.defaults, true);
+        properties.y1 = new WebInspector.VisualStyleNumberInputBox(&quot;y1&quot;, WebInspector.UIString(&quot;Y1&quot;), this._keywords.boxModel, this._units.defaults, true);
+
+        x1y1Row.element.appendChild(properties.x1.element);
+        x1y1Row.element.appendChild(properties.y1.element);
+
+        let x2y2Row = new WebInspector.DetailsSectionRow;
+
+        properties.x2 = new WebInspector.VisualStyleNumberInputBox(&quot;x2&quot;, WebInspector.UIString(&quot;X2&quot;), this._keywords.boxModel, this._units.defaults, true);
+        properties.y2 = new WebInspector.VisualStyleNumberInputBox(&quot;y2&quot;, WebInspector.UIString(&quot;Y2&quot;), this._keywords.boxModel, this._units.defaults, true);
+
+        x2y2Row.element.appendChild(properties.x2.element);
+        x2y2Row.element.appendChild(properties.y2.element);
+
+        let cxcyRow = new WebInspector.DetailsSectionRow;
+
+        properties.cx = new WebInspector.VisualStyleNumberInputBox(&quot;cx&quot;, WebInspector.UIString(&quot;Center X&quot;), this._keywords.boxModel, this._units.defaults, true);
+        properties.cy = new WebInspector.VisualStyleNumberInputBox(&quot;cy&quot;, WebInspector.UIString(&quot;Center Y&quot;), this._keywords.boxModel, this._units.defaults, true);
+
+        cxcyRow.element.appendChild(properties.cx.element);
+        cxcyRow.element.appendChild(properties.cy.element);
+
+        group.svgGroup = new WebInspector.DetailsSectionGroup([xyRow, x1y1Row, x2y2Row, cxcyRow]);
+
+        this._populateSection(group, [group.defaultGroup, group.svgGroup]);
+
</ins><span class="cx">         let allowedPositionValues = [&quot;relative&quot;, &quot;absolute&quot;, &quot;fixed&quot;, &quot;-webkit-sticky&quot;];
</span><span class="cx">         properties.zIndex.addDependency(&quot;position&quot;, allowedPositionValues);
</span><span class="cx">         properties.top.addDependency(&quot;position&quot;, allowedPositionValues);
</span><span class="lines">@@ -556,8 +644,29 @@
</span><span class="cx">         this._addMetricsMouseListeners(group.properties.maxWidth, highlightMode);
</span><span class="cx">         this._addMetricsMouseListeners(group.properties.maxHeight, highlightMode);
</span><span class="cx"> 
</span><del>-        let dimensionsGroup = new WebInspector.DetailsSectionGroup([dimensionsTabController, dimensionsRegularGroup, dimensionsMinGroup, dimensionsMaxGroup]);
-        this._populateSection(group, [dimensionsGroup]);
</del><ins>+        group.defaultGroup = new WebInspector.DetailsSectionGroup([dimensionsTabController, dimensionsRegularGroup, dimensionsMinGroup, dimensionsMaxGroup]);
+
+        let rRow = new WebInspector.DetailsSectionRow;
+
+        properties.r = new WebInspector.VisualStyleRelativeNumberSlider(&quot;r&quot;, WebInspector.UIString(&quot;Radius&quot;), this._keywords.boxModel, this._units.defaults);
+
+        rRow.element.appendChild(properties.r.element);
+
+        let rxRow = new WebInspector.DetailsSectionRow;
+
+        properties.rx = new WebInspector.VisualStyleRelativeNumberSlider(&quot;rx&quot;, WebInspector.UIString(&quot;Radius X&quot;), this._keywords.boxModel, this._units.defaults);
+
+        rxRow.element.appendChild(properties.rx.element);
+
+        let ryRow = new WebInspector.DetailsSectionRow;
+
+        properties.ry = new WebInspector.VisualStyleRelativeNumberSlider(&quot;ry&quot;, WebInspector.UIString(&quot;Radius Y&quot;), this._keywords.boxModel, this._units.defaults);
+
+        ryRow.element.appendChild(properties.ry.element);
+
+        group.svgGroup = new WebInspector.DetailsSectionGroup([rRow, rxRow, ryRow]);
+
+        this._populateSection(group, [group.defaultGroup, group.svgGroup]);
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     _populateMarginSection()
</span><span class="lines">@@ -847,6 +956,78 @@
</span><span class="cx">         this._populateSection(group, [textShadowGroup]);
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    _populateFillSection()
+    {
+        let group = this._groups.fill;
+        let properties = group.properties;
+
+        let fillRow = new WebInspector.DetailsSectionRow;
+
+        properties.fill = new WebInspector.VisualStyleColorPicker(&quot;fill&quot;, WebInspector.UIString(&quot;Color&quot;));
+        properties.fillRule = new WebInspector.VisualStyleKeywordPicker(&quot;fill-rule&quot;, WebInspector.UIString(&quot;Rule&quot;), this._keywords.defaults.concat([&quot;Nonzero&quot;, &quot;Evenodd&quot;]));
+
+        fillRow.element.appendChild(properties.fill.element);
+        fillRow.element.appendChild(properties.fillRule.element);
+
+        let fillOpacityRow = new WebInspector.DetailsSectionRow;
+
+        properties.fillOpacity = new WebInspector.VisualStyleUnitSlider(&quot;fill-opacity&quot;, WebInspector.UIString(&quot;Opacity&quot;));
+
+        fillOpacityRow.element.appendChild(properties.fillOpacity.element);
+
+        group.specifiedWidthProperties = [properties.fillOpacity];
+
+        let fillGroup = new WebInspector.DetailsSectionGroup([fillRow, fillOpacityRow]);
+        this._populateSection(group, [fillGroup]);
+    }
+
+    _populateStrokeSection()
+    {
+        let group = this._groups.stroke;
+        let properties = group.properties;
+
+        let strokeRow = new WebInspector.DetailsSectionRow;
+
+        properties.stroke = new WebInspector.VisualStyleColorPicker(&quot;stroke&quot;, WebInspector.UIString(&quot;Color&quot;));
+        properties.strokeWidth = new WebInspector.VisualStyleNumberInputBox(&quot;stroke-width&quot;, WebInspector.UIString(&quot;Width&quot;), this._keywords.defaults, this._units.defaults);
+
+        strokeRow.element.appendChild(properties.stroke.element);
+        strokeRow.element.appendChild(properties.strokeWidth.element);
+
+        let strokeOpacity = new WebInspector.DetailsSectionRow;
+
+        properties.strokeOpacity = new WebInspector.VisualStyleUnitSlider(&quot;stroke-opacity&quot;, WebInspector.UIString(&quot;Opacity&quot;));
+
+        strokeOpacity.element.appendChild(properties.strokeOpacity.element);
+
+        let strokeDasharrayRow = new WebInspector.DetailsSectionRow;
+
+        properties.strokeDasharray = new WebInspector.VisualStyleBasicInput(&quot;stroke-dasharray&quot;, WebInspector.UIString(&quot;Dash Array&quot;), WebInspector.UIString(&quot;Enter an array value&quot;));
+
+        strokeDasharrayRow.element.appendChild(properties.strokeDasharray.element);
+
+        let strokeDasharrayOptionsRow = new WebInspector.DetailsSectionRow;
+
+        properties.strokeDashoffset = new WebInspector.VisualStyleNumberInputBox(&quot;stroke-dashoffset&quot;, WebInspector.UIString(&quot;Offset&quot;), this._keywords.defaults, this._units.defaults);
+        properties.strokeMiterlimit = new WebInspector.VisualStyleNumberInputBox(&quot;stroke-miterlimit&quot;, WebInspector.UIString(&quot;Miter&quot;), this._keywords.defaults);
+
+        strokeDasharrayOptionsRow.element.appendChild(properties.strokeDashoffset.element);
+        strokeDasharrayOptionsRow.element.appendChild(properties.strokeMiterlimit.element);
+
+        let strokeLineOptionsRow = new WebInspector.DetailsSectionRow;
+
+        properties.strokeLinecap = new WebInspector.VisualStyleKeywordPicker(&quot;stroke-linecap&quot;, WebInspector.UIString(&quot;Cap&quot;), this._keywords.defaults.concat([&quot;Butt&quot;, &quot;Round&quot;, &quot;Square&quot;]));
+        properties.strokeLinejoin = new WebInspector.VisualStyleKeywordPicker(&quot;stroke-linejoin&quot;, WebInspector.UIString(&quot;Join&quot;), this._keywords.defaults.concat([&quot;Miter&quot;, &quot;Round&quot;, &quot;Bevel&quot;]));
+
+        strokeLineOptionsRow.element.appendChild(properties.strokeLinecap.element);
+        strokeLineOptionsRow.element.appendChild(properties.strokeLinejoin.element);
+
+        group.specifiedWidthProperties = [properties.strokeOpacity];
+
+        let strokeGroup = new WebInspector.DetailsSectionGroup([strokeRow, strokeOpacity, strokeDasharrayRow, strokeDasharrayOptionsRow, strokeLineOptionsRow]);
+        this._populateSection(group, [strokeGroup]);
+    }
+
</ins><span class="cx">     _populateBackgroundStyleSection()
</span><span class="cx">     {
</span><span class="cx">         let group = this._groups.backgroundStyle;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVisualStylePropertyEditorcss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.css (204757 => 204758)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.css        2016-08-23 05:34:42 UTC (rev 204757)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.css        2016-08-23 05:56:45 UTC (rev 204758)
</span><span class="lines">@@ -32,6 +32,10 @@
</span><span class="cx">     flex-grow: 1;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.visual-style-property-container.inactive {
+    display: none;
+}
+
</ins><span class="cx"> .visual-style-property-container &gt; .visual-style-property-title {
</span><span class="cx">     margin: 4px;
</span><span class="cx">     text-align: right;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleRelativeNumberSlidercss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleRelativeNumberSlider.css (204757 => 204758)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleRelativeNumberSlider.css        2016-08-23 05:34:42 UTC (rev 204757)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleRelativeNumberSlider.css        2016-08-23 05:56:45 UTC (rev 204758)
</span><span class="lines">@@ -43,5 +43,6 @@
</span><span class="cx"> 
</span><span class="cx"> .visual-style-property-container.number-input-box.relative-number-slider &gt; .relative-slider {
</span><span class="cx">     width: 47%;
</span><ins>+    margin-top: 0;
</ins><span class="cx">     margin-right: 7px;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVisualStyleUnitSlidercss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleUnitSlider.css (204757 => 204758)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleUnitSlider.css        2016-08-23 05:34:42 UTC (rev 204757)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/VisualStyleUnitSlider.css        2016-08-23 05:56:45 UTC (rev 204758)
</span><span class="lines">@@ -26,12 +26,9 @@
</span><span class="cx"> .visual-style-property-container.unit-slider &gt; .visual-style-property-value-container &gt; .slider {
</span><span class="cx">     position: relative;
</span><span class="cx">     margin: 5px 1px 0;
</span><ins>+    background-image: linear-gradient(90deg, transparent, black), url(../Images/Checkers.svg);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .visual-style-property-container.unit-slider &gt; .visual-style-property-value-container &gt; .slider &gt; img {
</span><span class="cx">     top: -1px;
</span><span class="cx"> }
</span><del>-
-.visual-style-property-container.unit-slider.opacity &gt; .visual-style-property-value-container &gt; .slider {
-    background-image: linear-gradient(90deg, hsla(0, 0%, 0%, 0), #000), url(../Images/Checkers.svg);
-}
</del></span></pre>
</div>
</div>

</body>
</html>