forked from mathquill/mathquill
-
Notifications
You must be signed in to change notification settings - Fork 0
Textarea Span
laughinghan edited this page May 30, 2012
·
1 revision
The textarea
needs its own span because
- to be focusable,
- it has to be "visible",
- which means it must have nonzero width and height,
- it has to be "visible",
- but we don't want it to affect layout of the math,
- so we want to take it out of normal flow by giving it
position:absolute
,
- so we want to take it out of normal flow by giving it
- but we want it in corner of the math editable because many browsers will scroll to the x,y position of the focusee on focus,
- and we can't be sure the root math element is the containing block,
- so we have a span that's
position:relative
and thus will be the containing block- and that's in normal flow and thus is in the corner of the math editable