node/doc/api_assets
Daniel Holbert 06136becdd
doc: add auto intrinsic height to prevent jitter/flicker
This commit addresses a scrolling/flickering issue in the HTML version
of the docs. By adding `auto` to the `contain-intrinsic-size` CSS
property, we're asking the browser to remember the last-rendered size
for the element (once it's been rendered) instead of forcing the browser
to treat it as being 1px by 5000px when it goes offscreen.

PR-URL: https://github.com/nodejs/node/pull/48195
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2023-05-27 09:56:14 +00:00
..
api.js tools: add button to copy code example to clipboard 2023-03-25 08:41:43 +00:00
hljs.css tools: upgrade highlight.js to version 11.0.1 2021-06-26 15:13:35 +00:00
js-flavor-cjs.svg doc: replace text with paths in toggle SVGs 2022-02-10 20:00:24 +00:00
js-flavor-esm.svg doc: replace text with paths in toggle SVGs 2022-02-10 20:00:24 +00:00
README.md doc: make header smaller and dropdown click-driven when JS is on 2022-03-22 21:31:56 +00:00
style.css doc: add auto intrinsic height to prevent jitter/flicker 2023-05-27 09:56:14 +00:00

API Reference Document Assets

api.js

The main script for API reference documents.

hljs.css

The syntax theme for code snippets in API reference documents.

style.css

The main stylesheet for API reference documents.