Skip to content

Commit 06136be

Browse files
authored
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: #48195 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent be469d8 commit 06136be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api_assets/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ dd + dt.pre {
436436

437437
#apicontent section {
438438
content-visibility: auto;
439-
contain-intrinsic-size: 1px 5000px;
439+
contain-intrinsic-size: 1px auto 5000px;
440440
}
441441

442442
#apicontent .line {

0 commit comments

Comments
 (0)