Skip to content

Commit 472e486

Browse files
authored
Add paragraph of spec for layer element label attribute (#251)
1 parent d09c775 commit 472e486

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,19 @@ <h4>The <code>&lt;<dfn id="the-layer-element">layer</dfn>&gt;</code> element</h4
943943
<p>The <a href="#attr-layer-src"><code>src</code></a> attribute value is the URL of a web resource encoded in <a href="#structure">Map Markup Language</a>.</p>
944944
<p>The <a href="#attr-layer-hidden"><code>hidden</code></a> boolean attribute can be set to remove the <a href="#the-layer-element"><code>layer</code></a> from the <em>map layer control, but it will remain displayed on the map</em>. In order to
945945
remove the <a href="#the-layer-element"><code>layer</code></a> from the map display, it can have its <a href="#attr-layer-checked"><code>checked</code></a> property toggled, or be removed from the DOM.</p>
946+
<p>The <a href="#attr-layer-label"><code>label</code></a> attribute sets
947+
a fallback value for the
948+
<a href="https://www.w3.org/TR/accname/#dfn-accessible-name">accessible name</a>
949+
[[accname-1.1]] of the layer as represented in the user agent's representation of map
950+
viewer <a href="#the-mapml-viewer-element"><code>controls</code></a>.
951+
The fallback <a href="#attr-layer-label"><code>label</code></a>
952+
value is used as the <a href="https://www.w3.org/TR/accname/#dfn-accessible-name">accessible name</a>
953+
[[accname-1.1]] of the layer if the map document author has not supplied
954+
a non-empty <a href="#the-title-element"><code>title</code></a> element
955+
value in the <a href="#the-layer-element"><code>layer</code></a> content.
956+
The <a href="#dom-htmllayerelement-label"><code>label</code></a> IDL
957+
attribute must <a href="https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflect">reflect</a>
958+
the <a href="#attr-layer-label"><code>label</code></a> content attribute.</p>
946959
<p>The <a href="#dom-htmllayerelement-disabled"><code>disabled</code></a> property is a read-only boolean indicator of the visibility of the layer on the map. If the layer is not visible due to errors, including projection,
947960
zoom or extent mismatch, the property will be true and if the layer is present in the layer control (i.e. <a href="#attr-layer-hidden"><code>hidden</code></a> is false), it will be disabled in that control i.e. not checkable.</p>
948961
<p>The location and zoom level of the map can be changed via the <a href="#dom-htmllayerelement-zoomto"><code>layer</code>.<code>zoomTo()</code></a> API method.</p>

0 commit comments

Comments
 (0)