- From: Anton Prowse <prowse@moonhenge.net>
- Date: Sat, 24 Oct 2009 10:33:25 +0200
- To: "www-style@w3.org" <www-style@w3.org>
- CC: fantasai <fantasai.lists@inkedblade.net>
fantasai wrote: > Anton Prowse wrote: >> 7.2. The ::first-letter pseudo-element >> (http://www.w3.org/TR/2009/WD-css3-selectors-20090310/#first-letter) : >> >> # The ::first-letter pseudo-element represents the first letter of >> # the first line of a block, if it is not preceded by any other >> # content (such as images or inline tables) on its line. The >> # ::first-letter pseudo-element may be used for "initial caps" and >> # "drop caps", which are common typographical effects. This type of >> # initial letter is similar to an inline-level element if its 'float' >> # property is 'none'; otherwise, it is similar to a floated element. >> >> Issue 8a: In the first sentence, what is a "block"? >> >> >> # The ::first-letter pseudo-element can be used with all such >> # elements that contain text, or that have a descendant in the same >> # flow that contains text. >> >> Issue 8b: s/such/applicable/ > > I've rearranged that section to split out the CSS-specific discussion: > http://dev.w3.org/csswg/selectors3/#first-letter I very much like the new ordering, thanks! Just one trivial point: # If the letters that would form the ::first-letter are not in the # same element, such as "'T" in <p>'<em>T..., the UA may create a # ::first-letter pseudo-element from one of the elements, both # elements, or simply not create a pseudo-element. # # [...] # # In CSS the first letter of a table-cell or inline-block cannot be # the first letter of an ancestor element. Thus, in <DIV><P # STYLE="display: inline-block">Hello<BR>Goodbye</P> etcetera</DIV> # the first letter of the DIV is not the letter "H". In fact, the DIV # doesn't have a first letter. In each of these sentences, can we insert "the HTML fragment" before the fragment? Cheers, Anton Prowse http://dev.moonhenge.net
Received on Saturday, 24 October 2009 08:35:52 UTC