This bug somewhat exposed after bug 728807. With `scrollbar-gutter: stable both-edges` set on root element, the hypothetical box position of fixed-pos elements account the scrollbar-gutter twice. I think we need to change this part of the code https://searchfox.org/mozilla-central/rev/46d0387f0b582f00a5722c20d4e6b8693793631b/layout/generic/ReflowInput.cpp#1422-1426. When `aCBReflowInput->mFrame` is root frame, we need to get the scrollbar size, and tweak `cbOffset`, similar to https://searchfox.org/mozilla-central/rev/46d0387f0b582f00a5722c20d4e6b8693793631b/layout/style/nsComputedDOMStyle.cpp#2009-2019
Bug 1901652 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This bug was somewhat exposed after bug 728807. With `scrollbar-gutter: stable both-edges` set on the root element, the hypothetical box position of fixed-pos elements accounts the scrollbar-gutter twice. I think we need to change this part of the code https://searchfox.org/mozilla-central/rev/46d0387f0b582f00a5722c20d4e6b8693793631b/layout/generic/ReflowInput.cpp#1422-1426. When `aCBReflowInput->mFrame` is root frame, we need to get the scrollbar size and tweak `cbOffset`, similar to https://searchfox.org/mozilla-central/rev/46d0387f0b582f00a5722c20d4e6b8693793631b/layout/style/nsComputedDOMStyle.cpp#2009-2019