Closed Bug 931804 Opened 11 years ago Closed 4 years ago

In supported browsers, use position:sticky rather than JavaScript for TOC

Categories

(developer.mozilla.org Graveyard :: General, defect)

All
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sjw+bugzilla, Unassigned)

References

Details

(Whiteboard: [specification][type:feature])

What did you do? ================ It would be nice if supported browsers use CSS position:sticky instand of JS for the menu on the right. Unsupported ones use a JavaScript fallback. What happened? ============== What should have happened? ========================== Is there anything else we should know? ======================================
Blocks: 910513
Severity: normal → minor
Summary: use CSS position:sticky instand of JS in suported browsers → In supported browsers, use position:sticky rather than JavaScript for TOC
Using position:sticky would be cool, but given that it is very new (and behind flags in Firefox and likely in Chrome), we should not block the upcoming release. But I'm pretty sure David Walsh will be very happy to experiment this after the rush. Up to Ali for the final decision on blocking.
Flags: needinfo?(aspivak)
not a blocker.
Blocks: MDNPostLaunch
No longer blocks: 910513
Flags: needinfo?(aspivak)
Whiteboard: [specification][type:bug] → [specification][type:bug][mentor=openjck]
Severity: minor → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: enhancement → normal
Whiteboard: [specification][type:bug][mentor=openjck] → [specification][type:feature][mentor=openjck]
No point in even attempting this yet, as support is almost nothing http://caniuse.com/css-sticky
See Also: → 916315
Whiteboard: [specification][type:feature][mentor=openjck] → [specification][type:feature]
Quick update: Blink has temporarily removed sticky support until the spec is finalized.
Does it make sense to keep this bug open? By the time position:sticky is well-supported, we will have certainly revisited the styles that are applied to the TOC, if it even still exists in the same form. And even if we do not happen upon this change shortly after standardization, little is lost by keeping the JavaScript around.
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.