Summary: Adds the `headingoffset` and `headingreset` global attributes, which provide a way to create containers with dynamic heading structures.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1974383 Specification: https://github.com/whatwg/html/pull/11086 Standards Body: W3C Platform coverage: all. Preference: dom.headingoffset.enabled DevTools bug: N/A Link to standards-positions discussion: N/A Other browsers: Blink: Prototyping (https://issues.chromium.org/issues/333628468). WebKit: No Signal (https://github.com/WebKit/standards-positions/issues/523). web-platform-tests: None yet, will be written during prototyping phase. Websites which allow users to write comments or documents (User Generated Content - UGC) rely on users to produce meaningful heading structures for their written content. This can be difficult for a user where this content is presented on different surfaces (web pages or applications) that have different document structures. Giving web developers a headingoffset attribute frees users from trying to pick the correct heading level (they can always start their comment or document at h1), and makes it significantly easier for web developers to render blocks of UGC without rewriting the UGC authors defined heading structures. In combination with the `:heading`/`:heading(AnB#)` selectors (https://groups.google.com/a/mozilla.org/g/dev-platform/c/SlPKz6WrEv4/m/M54qEUuBAgAJ) this will provide feature a robust mechanism for an opt-in replacement of the structured headings feature recently removed from the HTML specification. -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/70af376e-f0b5-4747-8b47-2df9a4ee4c1d%40app.fastmail.com.
