documentElement should inherit from initial values, not some viewport ComputedStyle which contains properties propagated from html/body.
Propagated values stick. See attached test-case.
Another effect of this, is that the computed value of background color on the html element becomes the value propagated from body to the viewport. That does not happen in Gecko and, looking at the spec[1], it seems Gecko is right.
[1] https://drafts.csswg.org/css-backgrounds-3/#body-background
Comment 1 by r...@opera.com
, Jun 8 2017