When you release the mouse button (mouseup event), the script will report selected style attributes for the selected text.