Skip to content

Commit 28d0bd6

Browse files
[HTML] Add headingoffset & headingreset attributes whatwg/html@e774e8e
1 parent 1593a58 commit 28d0bd6

File tree

3 files changed

+341
-96
lines changed

3 files changed

+341
-96
lines changed

HTML-dom-ja.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139

140140
●●options
141141

142-
spec_date:2025-08-01
142+
spec_date:2025-09-17
143143
trans_update:2025-09-18
144144
source_checked:240712
145145
page_state_key:HTML
@@ -240,6 +240,7 @@
240240
CEReactions:~HEcustom#cereactions
241241
Reflect:~HTMLcdom#xattr-reflect
242242
ReflectSetter:~HTMLcdom#xattr-reflectsetter
243+
ReflectRange:~HTMLcdom#xattr-reflectrange
243244
LegacyOverrideBuiltIns:~WEBIDLjs#LegacyOverrideBuiltIns
244245
LegacyUnforgeable:~WEBIDLjs#LegacyUnforgeable
245246
LegacyLenientThis:~WEBIDLjs#LegacyLenientThis
@@ -328,6 +329,8 @@
328329
m.getter:#dom-document-nameditem
329330
m.hasFocus:~HTMLinteraction#dom-document-hasfocus
330331
m.head:#dom-document-head
332+
m.headingOffset:#dom-headingoffset
333+
m.headingReset:#dom-headingreset
331334
mE.hidden:~HTMLinteraction#dom-hidden
332335
m.hidden:~HTMLinteraction#dom-document-hidden
333336
m.hidePopover:~HTMLpopover#dom-hidepopover
@@ -514,6 +517,8 @@
514517
a.dir:#attr-dir
515518
a.draggable:~HTMLdnd#attr-draggable
516519
a.enterkeyhint:~HTMLinteraction#attr-enterkeyhint
520+
a.headingoffset:~HEsections#attr-headingoffset
521+
a.headingreset:~HEsections#attr-headingreset
517522
a.hidden:~HTMLinteraction#attr-hidden
518523
a.inert:~HTMLinteraction#the-inert-attribute
519524
a.id:#the-id-attribute
@@ -4406,7 +4411,10 @@ <h4 title="Elements in the DOM">3.2.2. ~DOM内の要素</h4>
44064411
undefined `showPopover$m(`ShowPopoverOptions$I %options = {});
44074412
undefined `hidePopover$m();
44084413
boolean `togglePopover$m(optional (`TogglePopoverOptions$I or boolean) %options = {});
4409-
[`CEReactions$] attribute DOMString? `popover$m;
4414+
[`CEReactions$] attribute DOMString? `popover$m
4415+
4416+
[`CEReactions$, `Reflect$, `ReflectRange$=(0, 8)] attribute unsigned long `headingOffset@m;
4417+
[`CEReactions$, `Reflect$] attribute boolean `headingReset@m;
44104418
};
44114419

44124420
dictionary `ShowPopoverOptions@I {
@@ -6568,6 +6576,8 @@ <h4 title="Global attributes">3.2.6. 大域的な属性</h4>
65686576
<li>`dir$a
65696577
<li>`draggable$a
65706578
<li>`enterkeyhint$a
6579+
<li>`headingoffset$a*
6580+
<li>`headingreset$a*
65716581
<li>`hidden$a
65726582
<li>`inert$a
65736583
<li>`inputmode$a

HTML-rendering-ja.html

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@
202202

203203
●●options
204204

205-
spec_date:2025-08-12
206-
trans_update:2025-08-14
205+
spec_date:2025-09-18
206+
trans_update:2025-09-19
207207
source_checked:250719
208208
page_state_key:CSS
209209
spec_status:LS
@@ -2761,35 +2761,16 @@ <h4 title="Sections and headings">15.3.6. ~sectionと見出し</h4>
27612761
display: block;
27622762
}
27632763

2764-
h1 {
2765-
margin-block: 0.67em;
2766-
font-size: 2.00em;
2767-
font-weight: bold;
2768-
}
2769-
h2 {
2770-
margin-block: 0.83em;
2771-
font-size: 1.50em;
2772-
font-weight: bold;
2773-
}
2774-
h3 {
2775-
margin-block: 1.00em;
2776-
font-size: 1.17em;
2777-
font-weight: bold;
2778-
}
2779-
h4 {
2780-
margin-block: 1.33em;
2781-
font-size: 1.00em;
2782-
font-weight: bold;
2783-
}
2784-
h5 {
2785-
margin-block: 1.67em;
2786-
font-size: 0.83em;
2787-
font-weight: bold;
2788-
}
2789-
h6 {
2790-
margin-block: 2.33em;
2764+
:heading { font-weight: bold; }
2765+
2766+
:heading(1) { margin-block: 0.67em; font-size: 2.00em; }
2767+
:heading(2) { margin-block: 0.83em; font-size: 1.50em; }
2768+
:heading(3) { margin-block: 1.00em; font-size: 1.17em; }
2769+
:heading(4) { margin-block: 1.33em; font-size: 1.00em; }
2770+
:heading(5) { margin-block: 1.67em; font-size: 0.83em; }
2771+
:heading(6, 7, 8, 9) {
27912772
font-size: 0.67em;
2792-
font-weight: bold;
2773+
margin-block: 2.33em;
27932774
}
27942775
</pre>
27952776

0 commit comments

Comments
 (0)