Shared-Reality-Lab / IMAGE-browser

IMAGE project browser extensions & client-side code
Other
2 stars 0 forks source link

IMAGE button appears on the PDF generated from webpage #376

Closed jaydeepsingh25 closed 1 month ago

jaydeepsingh25 commented 3 months ago

IMAGE button appears on the PDF generated from the webpage. Issue reproducible on website: https://portal3.passportindia.gov.in/Online/index.html Steps to reproduce:

IMAGE buttons show up on the PDF. These buttons were missing on the webpage. Need to check if this a common issue with other webpages too!

Thanks @VenissaCarolQuadros for reporting this

jaydeepsingh25 commented 1 month ago

This is a common issue for websites which use window.print to print a specific section on the webpage. IMAGE-buttons are visible only for screen reader on a webpage but the css applied was not inline and was part of extension bundle. Hence it was not applied while printing and buttons were visible. Added inline to make sure buttons are not visible when webpage is printed. Tested by creating a dummy account on the above website.