Skip to content

Commit eab6ef4

Browse files
authored
Specify document conformance for headingoffset/headingreset
Also add to the attribute index. Fixes #11977.
1 parent d11c073 commit eab6ef4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

source

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20243,9 +20243,12 @@ interface <dfn interface>HTMLHeadingElement</dfn> : <span>HTMLElement</span> {
2024320243
<p>The <dfn element-attr for="global"><code data-x="attr-headingoffset">headingoffset</code></dfn>
2024420244
content attribute allows authors to offset heading levels for descendants.</p>
2024520245

20246+
<p>If the <code data-x="attr-headingoffset">headingoffset</code> attribute is specified, it must
20247+
have a value that is a <span>valid non-negative integer</span> between 0 and 8, inclusive.</p>
20248+
2024620249
<p>The <dfn element-attr for="global"><code data-x="attr-headingreset">headingreset</code></dfn>
20247-
content attribute allows authors to prevent a heading offset computation from traversing beyond
20248-
the element with the attribute.</p>
20250+
content attribute is a <span>boolean attribute</span>. It allows authors to prevent a heading
20251+
offset computation from traversing beyond the element with the attribute.</p>
2024920252

2025020253
<div algorithm>
2025120254
<p>To <dfn>get an element's computed heading level</dfn>, given an element
@@ -153029,6 +153032,16 @@ interface <dfn interface>External</dfn> {
153029153032
<code data-x="attr-tdth-headers">th</code>
153030153033
<td> The header cells for this cell
153031153034
<td> <span>Unordered set of unique space-separated tokens</span> consisting of IDs*
153035+
<tr>
153036+
<th> <code data-x="">headingoffset</code>
153037+
<td> <span data-x="attr-tabindex">HTML elements</span>
153038+
<td> Offsets heading levels for descendants
153039+
<td> <span>Valid non-negative integer</span> between 0 and 8
153040+
<tr>
153041+
<th> <code data-x="">headingreset</code>
153042+
<td> <span data-x="attr-tabindex">HTML elements</span>
153043+
<td> Prevents a heading offset computation from traversing beyond the element with the attribute
153044+
<td> <span>Boolean attribute</span>
153032153045
<tr>
153033153046
<th> <code data-x="">height</code>
153034153047
<td> <code data-x="attr-canvas-height">canvas</code>;

0 commit comments

Comments
 (0)