Files
openide/xml/tests/testData/documentation/SvgDoc2.svg.expected.completion.html
Vlad Minaev 2b24b19d18 WEB-73743 Baseline year should be set to newly available date (baseline_low_date)
Merge-request: IJ-CR-171783

(cherry picked from commit 73a3365cf569e515603847162b9de85616829e4e)

GitOrigin-RevId: ba9d11678209acf4c53f45081ba8d0ca0474aae7
2025-08-14 10:01:14 +00:00

28 lines
2.9 KiB
HTML

<div class='definition'><pre>stroke-width</pre></div>
<div class='content'><details class='mdn-baseline'><summary>
<table class='mdn-baseline'><tr><td width=2 valign=top class='mdn-baseline-icon'><icon src='com.intellij.xml.frontback.impl.icons.XmlFrontbackImplIcons.BaselineHigh'></icon>
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;80, Chrome Android&nbsp;80, Edge&nbsp;80, Firefox&nbsp;1, Firefox Android&nbsp;4, Opera&nbsp;67, Safari&nbsp;13.1, Safari iOS&nbsp;13.4</span>
<p class='grayed'>Baseline since 2020
</details>
The <strong><code>stroke-width</code></strong> attribute is a presentation attribute defining the width of the stroke to be applied to the shape. It applies to any SVG shape or text-content element, but as an inherited property, it may be applied to elements such as <a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/g"><code>&lt;g&gt;</code></a> and still have the intended effect on descendant elements' strokes.
<div class="notecard note">
<p><strong>Note:</strong>
As a presentation attribute, <code>stroke-width</code> also has a CSS property counterpart: <a href="https://developer.mozilla.org/en-us/docs/Web/CSS/stroke-width"><code>stroke-width</code></a>. When both are specified, the CSS property takes priority.
</div>
<p>You can use this attribute with the following SVG elements:
<ul>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/circle"><code>&lt;circle&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/ellipse"><code>&lt;ellipse&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/line"><code>&lt;line&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/path"><code>&lt;path&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/polygon"><code>&lt;polygon&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/polyline"><code>&lt;polyline&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/rect"><code>&lt;rect&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/text"><code>&lt;text&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/textPath"><code>&lt;textPath&gt;</code></a></li>
<li><a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Element/tspan"><code>&lt;tspan&gt;</code></a></li>
</ul></div>
<div class='content'>By <a href='https://developer.mozilla.org/en-us/docs/web/svg/reference/attribute/stroke-width/contributors.txt'>Mozilla Contributors</a>, <a href='https://creativecommons.org/licenses/by-sa/2.5/'>CC BY-SA 2.5</a></div>