hakimel/reveal.js — pull request #845 by maxlinc (2014-03-21 16:25:04+00:00)
Title: Change CSS so invisble fragments don't steal click focus

In the example below, there is a editable code block that has a fragment of lorem ipsum text overlaid *on top* of it. Currently, the lorem ipsum text is clickable even when it's hidden, so it steals the clicks and effectively negates the "contenteditable" attribute. Telling the browser to not display hidden fragments (rather than just making them completely transparent) seems to solve this problem so that the lorem ipsum text is not clickable until it is displayed.

```html

Exception!

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
printf("Hello, world\n");
return EXIT_SUCCESS;
}

```