-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand report <details> on print. Fixes #1240 #1468
Conversation
FINALLY |
@@ -45,7 +45,32 @@ function sendJSONReport() { | |||
const popup = window.open(VIEWER_URL, '_blank'); | |||
} | |||
|
|||
/** | |||
* Sets up listeners to expand audit `<details>` when the user prints the page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is kind of dumb, but maybe add a clause here that expanding <details>
isn't possible via a print stylesheet? Whenever I think about this issue my first thought is always, "wait, why can't we just solve this in the print stylesheet?" and it probably will be again when I come across this function in the future :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
viewer doesn't inherit this, right? Should it? |
It will :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖨 🥇
Wow. The cross browser subtleties in this one are fascinating! Nice |
R: all
The people have spoken. They want better printing!