10 ms·
(I work for Mozilla) It captures the page cropped to the bounding box of the element, so any background content would also be captured. The results would not co
by potch 11y ago
(I work for Mozilla) It captures the page cropped to the bounding box of the element, so any background content would also be captured. The results would not contain transparency.
- tedmiston 11y agoWhat happens if there are elements below the one you're screenshotting by z-index?
- dubcanada 11y agoYou would see the element under it assuming it's possible. What this does is finds the bounding box cords and takes a full page screenshot and crops it to that region.
- greggman 11y agoSo in other words it doesn't work if the element has children that are transformed (tested that). Still useful though
- philh 11y agoAnd if there are non-child elements positioned to overlap with this one, presumably they get captured too?
- MattBearman 11y agoAre there any plans to make this available through a Javascript API? With appropriate security warnings of course.