Chrome 151 / Firefox Nightly add headingoffset/headingreset HTML attrs behind flag#29931
Conversation
|
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
headingoffset/headingreset HTML attrs behind flag
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
|
Thanks @caugner, I've applied the suggested changes |
There was a problem hiding this comment.
Let's add data for the corresponding HTMLElement properties at the same time:
Implementations:
- Chrome implements them on
Element: https://github.com/chromium/chromium/blob/48605b9955d48b2d1f1e1369ed3db666cc6f1214/third_party/blink/renderer/core/dom/element.idl#L194-L196 - Firefox implements them on
HTMLElementas per the spec: https://searchfox.org/firefox-main/rev/4eb5d723d627edec42ca3e5d606e1227c656dfca/dom/webidl/HTMLElement.webidl#84-88
|
Done, should we keep still keep them as global attributes, or only on corresponding Elements? |
Sorry, I should have been more precise:
|
|
Thanks for the clarification, that makes sense. |
Good point. There seems to be prior art, so it's worth adding a note ( browser-compat-data/api/Element.json Lines 6107 to 6110 in 1a19fb8 It doesn't warrant setting partial implementation though. |
|
Done |
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
|
Thank you! 🙌 |
Summary
Firefox and Chrome are prototyping
headingoffsetandheadingresetattributes behind flagsThe feature is currently available in:
dom.headingoffset.enabled#enable-experimental-web-platform-featuresTest results and supporting details
Verified support with the Following CodePen: https://codepen.io/editor/th3s4mur41/pen/019e8da3-90df-7090-ae14-3e4541413757