# Testing cfi.coffee

Click anywhere and the location will be marked with a marker, whose position is set via a CFI.

Reset CFI to None Test viewport location calculation:

## A div with scrollbars

Scroll down and click on some elements. Make sure to hit both bold and not bold text as well as different points on the image

But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee

## Some entities and comments

Entities: & © § > some text after entities

An invisible Comment: followed by some text

An invalid (in HTML) CDATA: followed by some text

## Margins padding borders

Try clicking in the margins, borders and padding. CFI calculation should fail.

But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure? On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee

## Lots of collapsed whitespace

Try clicking the A character after the colon: A suffix

## Lots of nested/sibling tags

A bunch of nested and sibling tags, all mixed together. Click all over this paragraph to test things.

## Images

Try clicking at different points along the image. Also try changing the magnification and then hitting reload.

## Iframes

Try clicking anywhere in the iframe below:

## Video

Try clicking on this video while it is playing. The page should reload with the video paused at the point it was at when you clicked. To play the video you should right click on it and select play (otherwise the click will cause a reload).