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
This commit is contained in:
Vlad Minaev
2025-08-07 23:11:13 +03:00
committed by intellij-monorepo-bot
parent c7af627736
commit 2b24b19d18
13 changed files with 13 additions and 13 deletions

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1, Firefox Android&nbsp;4, Opera&nbsp;15, Safari&nbsp;1, Safari iOS&nbsp;1</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>&lt;body&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/HTML">HTML</a> element represents the content of an HTML document. There can be only one <code>&lt;body&gt;</code> element in a document.</div>
<div class='content'>By <a href='https://developer.mozilla.org/en-us/docs/web/html/reference/elements/body/contributors.txt'>Mozilla Contributors</a>, <a href='https://creativecommons.org/licenses/by-sa/2.5/'>CC BY-SA 2.5</a></div>

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;3, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;3.5, Firefox Android&nbsp;4, Opera&nbsp;10.5, Safari&nbsp;3.1, Safari iOS&nbsp;3</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <code>stalled</code> event is fired when the user agent is trying to fetch media data, but data is unexpectedly not forthcoming.
This event is not cancelable and does not bubble.</div>

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1, Firefox Android&nbsp;4, Opera&nbsp;12.1, Safari&nbsp;3, Safari iOS&nbsp;2</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>&lt;script&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/HTML">HTML</a> element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The <code>&lt;script&gt;</code> element can also be used with other languages, such as <a href="https://developer.mozilla.org/en-us/docs/Web/API/WebGL_API">WebGL</a>'s GLSL shader programming language and <a href="https://developer.mozilla.org/en-us/docs/Glossary/JSON">JSON</a>.</div>
<div class='content'>By <a href='https://developer.mozilla.org/en-us/docs/web/html/reference/elements/script/contributors.txt'>Mozilla Contributors</a>, <a href='https://creativecommons.org/licenses/by-sa/2.5/'>CC BY-SA 2.5</a></div>

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1.5, Firefox Android&nbsp;4, Opera&nbsp;8, Safari&nbsp;3, Safari iOS&nbsp;2</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>&lt;svg&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/SVG">SVG</a> element is a container that defines a new coordinate system and <a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Reference/Attribute/viewBox">viewport</a>. It is used as the outermost element of SVG documents, but it can also be used to embed an SVG fragment inside an SVG or HTML document.
<div class="notecard note">

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1.5, Firefox Android&nbsp;4, Opera&nbsp;8, Safari&nbsp;3, Safari iOS&nbsp;2</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>&lt;image&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/SVG">SVG</a> element includes images inside SVG documents. It can display <a href="https://developer.mozilla.org/en-us/docs/Glossary/Raster_image">raster image</a> files or other SVG files.
<p>The only image formats SVG software must support are <a href="https://developer.mozilla.org/en-us/docs/Glossary/JPEG">JPEG</a>, <a href="https://developer.mozilla.org/en-us/docs/Glossary/PNG">PNG</a>, and other SVG files. Animated <a href="https://developer.mozilla.org/en-us/docs/Glossary/GIF">GIF</a> behavior is undefined.

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1, Firefox Android&nbsp;4, Opera&nbsp;15, Safari&nbsp;1, Safari iOS&nbsp;1</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>&lt;body&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/HTML">HTML</a> element represents the content of an HTML document. There can be only one <code>&lt;body&gt;</code> element in a document.</div>
<div class='content'>By <a href='https://developer.mozilla.org/en-us/docs/web/html/reference/elements/body/contributors.txt'>Mozilla Contributors</a>, <a href='https://creativecommons.org/licenses/by-sa/2.5/'>CC BY-SA 2.5</a></div>

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;37, Chrome Android&nbsp;37, Edge&nbsp;79, Firefox&nbsp;98, Firefox Android&nbsp;98, Opera&nbsp;24, Safari&nbsp;15.4, Safari iOS&nbsp;15.4</span>
<p class='grayed'>Baseline since 2024
<p class='grayed'>Baseline since 2022
</details>
The <strong><code>&lt;dialog&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/HTML">HTML</a> element represents a modal or non-modal dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
<p>The HTML <code>&lt;dialog&gt;</code> element is used to create both modal and non-modal dialog boxes. Modal dialog boxes interrupt interaction with the rest of the page being inert, while non-modal dialog boxes allow interaction with the rest of the page.

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1.5, Firefox Android&nbsp;4, Opera&nbsp;8, Safari&nbsp;3.1, Safari iOS&nbsp;2</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>&lt;rect&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/SVG">SVG</a> element is a <a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Tutorials/SVG_from_scratch/Basic_shapes">basic SVG shape</a> that draws rectangles, defined by their position, width, and height. The rectangles may have their corners rounded.</div>
<div class='content'>By <a href='https://developer.mozilla.org/en-us/docs/web/svg/reference/element/rect/contributors.txt'>Mozilla Contributors</a>, <a href='https://creativecommons.org/licenses/by-sa/2.5/'>CC BY-SA 2.5</a></div>

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1.5, Firefox Android&nbsp;4, Opera&nbsp;8, Safari&nbsp;3.1, Safari iOS&nbsp;2</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>&lt;rect&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/SVG">SVG</a> element is a <a href="https://developer.mozilla.org/en-us/docs/Web/SVG/Tutorials/SVG_from_scratch/Basic_shapes">basic SVG shape</a> that draws rectangles, defined by their position, width, and height. The rectangles may have their corners rounded.</div>
<div class='content'>By <a href='https://developer.mozilla.org/en-us/docs/web/svg/reference/element/rect/contributors.txt'>Mozilla Contributors</a>, <a href='https://creativecommons.org/licenses/by-sa/2.5/'>CC BY-SA 2.5</a></div>

View File

@@ -4,7 +4,7 @@
<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 2022
<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">

View File

@@ -4,7 +4,7 @@
<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 2022
<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">

View File

@@ -4,7 +4,7 @@
<td class='mdn-baseline-info'>Widely available across major browsers
</td></tr></table></summary>
<p><span class='grayed'>Chrome&nbsp;1, Chrome Android&nbsp;18, Edge&nbsp;12, Firefox&nbsp;1.5, Firefox Android&nbsp;4, Opera&nbsp;8, Safari&nbsp;3, Safari iOS&nbsp;3</span>
<p class='grayed'>Baseline since 2018
<p class='grayed'>Baseline since 2015
</details>
The <strong><code>viewBox</code></strong> attribute defines the position and dimension, in user space, of an SVG viewport.
<p>The value of the <code>viewBox</code> attribute is a list of four numbers separated by whitespace and/or a comma: <code>min-x</code>, <code>min-y</code>, <code>width</code>, and <code>height</code>. <code>min-x</code> and <code>min-y</code> represent the smallest X and Y coordinates that the <code>viewBox</code> may have (the origin coordinates of the <code>viewBox</code>) and the <code>width</code> and <code>height</code> specify the <code>viewBox</code> size. The resulting <code>viewBox</code> is a rectangle in user space mapped to the bounds of the viewport of an SVG element (not the <a href="https://developer.mozilla.org/en-us/docs/Glossary/Viewport">browser viewport</a>).

View File

@@ -325,7 +325,7 @@ class MdnSymbolDocumentationAdapter(
notSupportedEngines.map { it.displayName }.sorted().joinToString(", ")))
}
else {
(baseline.highDate ?: baseline.lowDate)?.dropWhile { !it.isDigit() }?.let { date ->
(baseline.lowDate ?: baseline.highDate )?.dropWhile { !it.isDigit() }?.let { date ->
result.append("<p class='grayed'>")
result.append(MdnBundle.message("mdn.documentation.baseline.since", date.takeWhile { it.isDigit() }))
}