I have a couple of questions regarding optimizing our outdated CSS for better performance.
(1) I am concerned about the impact on browser rendering performance due to including printer-related CSS in a common.css file and applying the selectors to certain elements. Does this affect how browsers match elements with the selectors beyond just when printing a page?
@media print
{
body * {visibility:hidden}
#xView, #xView * {visibility:visible; }
#xView {position:fixed;}
}
(2) How can I assess the performance improvements after refactoring the CSS?
Thank you.