Quick Question about Notifications in 4.1+

I was wondering how the expanded text message notifications work in Android 4.1+. I know they are contextual so you can share screencaps and what not but I was wondering if I'm browsing the web and someone texts me, am I able to reply to the text without ever leaving the web browser or opening the messaging app (ie. pull down notification, quick reply option that opens up a keyboard and text input area, hit send and get right back to web browsing without ever switching apps.) Thanks for the help.