You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Screnshots of elements with position: fixed are currently not supported. But it would be nice to support that.
I think this can be done in the following way:
detect if element's position is fixed or if a parent is fixed
if it isn't a fixed element, take the screenshot as usual
when it's fixed, just take a screenshot of the viewport (without css-scroll) and crop it as needed
We coud use a simple script to detect if the element is fixed, like the following:
function isFixed(elem){
do {
if (window.getComputedStyle(elem).position == 'fixed') {
return true;
}
} while (elem = elem.offsetParent);
return false;
}
The text was updated successfully, but these errors were encountered:
Screnshots of elements with
position: fixed
are currently not supported. But it would be nice to support that.I think this can be done in the following way:
We coud use a simple script to detect if the element is fixed, like the following:
The text was updated successfully, but these errors were encountered: