Changes

Jump to: navigation, search

Tantek-Mozilla-Projects

2,447 bytes added, 07:14, 22 January 2011
CSS3 UI: text-overflow incorporated
*** touchevents
*** general concept of hit-testing so that elementFromPoint can be defined in terms of it (feedback fron annevk).
====== text-overflow ======
* '''text-overflow'''. incorporated '[https://developer.mozilla.org/En/CSS/text-overflow text-overflow]', since it's more a UI/overflow thing than a typesetting thing. There are at least 3 implementations (IE, WebKit, Opera), and has a bug against Firefox: [https://bugzilla.mozilla.org/show_bug.cgi?id=312156 312156]
** Wanted for post-FF4; mats will be working on it, needs spec
** W3C: http://dev.w3.org/csswg/css3-text/#text-overflow
*** http://www.w3.org/blog/CSS/2009/11/25/resolutions_84 for bidi discussions
** DevMo: https://developer.mozilla.org/En/CSS/text-overflow
** Webkit: http://developer.apple.com/library/safari/documentation/appleapplications/reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-SW24
** Microsoft/IE: http://msdn.microsoft.com/en-us/library/ms531174(VS.85).aspx
** write test cases for 'ellipsis' and 'clip' (default value) and confirm cross-browser support.
** Details that [https://bugzilla.mozilla.org/show_bug.cgi?id=312156#c21 RoC wants]:
*** What style the ellipsis has (font, color, etc) ... does it come from the text or does it come from the element with text-overflow on it?
**** need test case to see what Webkit, IE, Opera do
**** first thought: comes from the text that is ellipsed.
*** does text-overflow inherit by default or not?
**** Inherited: no
*** how does it work with text-align:right, does the ellipsis go on the left?
**** text-align does not affect text-overflow
*** how does it work with bidi text, e.g. a line of Hebrew?
**** it works in the inline-flow direction
*** What about mixed bidi text e.g. English followed by Hebrew? Can bidi text make the ellipsis appear at the beginning of the line? I'm particuarly interested in the case of an LTR word followed by an RTL word that doesn't fit, e.g. <pre>english WERBEH</pre>where only "english HEB" fits, where should the ellipsis go?
**** "english …BEH" presumably
*** what happens if there's replaced content near the end of the line, say an image?
**** the image would wrap to the next line. but if there is white-space:nowrap, then...
*** Do you get the ellipsis or does the image overflow?
**** Images never cause ellipsis (in current implementations) per https://bugzilla.mozilla.org/show_bug.cgi?id=312156#c28
*** If an ellipsis, where does the ellipsis go?
**** it goes instead of the image and any text you have to remove in order to make the ellipsis fit.
Canmove, confirm
2,679
edits

Navigation menu