[whatwg] Use of 'direction' of canvas element
L. David Baron
dbaron at dbaron.org
Fri Jun 13 15:30:41 PDT 2008
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas.html#text
has the following bullet point:
# Form a hypothetical infinitely wide CSS line box containing a
# single inline box containing the text text, with all the
# properties at their initial values except the 'font' property of
# the inline element set to font and the 'direction' property of
# the inline element set to the 'direction' property of the canvas
# element. [CSS]
This should describe what to do if the canvas element is not in a
document (and therefore has no 'direction').
It should probably fall back to 'ltr' as a last resort.
However, as an intermediate step, it might be worth falling back to
the direction property of the root element (if present) of the
canvas element's ownerDocument.
-David
--
L. David Baron http://dbaron.org/
Mozilla Corporation http://www.mozilla.com/
More information about the whatwg
mailing list