When 'position: fixed' has a parent/grandparent node that has the style 'position: relative', the screenshot's level is not correct.
Because the renderContentStack method render 'position: fixed' after 'position: relative'。But 'position: fixed' should render in the top level, it should be relative to the viewport or 'transform: xxx', not 'position: relative'
Specifications:
html2canvas version tested with: 1.4.1
Browser & version: Chrome Version 122.0.6261.69 (Official Build) (x86_64)
Bug reports:
When 'position: fixed' has a parent/grandparent node that has the style 'position: relative', the screenshot's level is not correct.
Because the renderContentStack method render 'position: fixed' after 'position: relative'。But 'position: fixed' should render in the top level, it should be relative to the viewport or 'transform: xxx', not 'position: relative'
Specifications: