![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Are you sure they didn't refine the definition of "letter"? A summation symbol isn't a letter. What happens when you substitute an actual letter? |
#3
| |||
| |||
|
|
Harlan Messinger schrieb: Are you sure they didn't refine the definition of "letter"? A summation symbol isn't a letter. What happens when you substitute an actual letter? Is it "GREEK CAPITAL LETTER SIGMA" or "N-ARY SUMMATION"? |
#4
| |||
| |||
|
|
Harlan Messinger schrieb: Are you sure they didn't refine the definition of "letter"? A summation symbol isn't a letter. What happens when you substitute an actual letter? Is it "GREEK CAPITAL LETTER SIGMA" or "N-ARY SUMMATION"? |
#5
| |||
| |||
|
|
Johannes Koch wrote: Harlan Messinger schrieb: Are you sure they didn't refine the definition of "letter"? A summation symbol isn't a letter. What happens when you substitute an actual letter? Is it "GREEK CAPITAL LETTER SIGMA" or "N-ARY SUMMATION"? Exactly! The Greek capital does, but the summation symbol does not. !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" html head meta http-equiv="Content-Type" content="text/html;charset=utf-8" meta http-equiv="content-language" content="en-us" title>template</title style type="text/css" div.nav:first-letter {font-size:3ex;color:#b22222} /style /head body div class="nav">Σ First letter as a Greek capital should be larger and red</div /body /html |
#6
| |||
| |||
|
|
Interesting. Seems Firefox 3.5 only apply the css to letters and not other chars? All other browser of current version seems to do the summation sign. Which behavior is correct? |
#7
| |||
| |||
|
|
On Jul 25, 5:05 am, "Jonathan N. Little" <lws4... (AT) centralva (DOT) net wrote: Johannes Koch wrote: Harlan Messinger schrieb: Are you sure they didn't refine the definition of "letter"? A summation symbol isn't a letter. What happens when you substitute an actual letter? Is it "GREEK CAPITAL LETTER SIGMA" or "N-ARY SUMMATION"? Exactly! The Greek capital does, but the summation symbol does not. !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" html head meta http-equiv="Content-Type" content="text/html;charset=utf-8" meta http-equiv="content-language" content="en-us" title>template</title style type="text/css" div.nav:first-letter {font-size:3ex;color:#b22222} /style /head body div class="nav">Σ First letter as a Greek capital should be larger and red</div /body /html Thanks all! (didn't see replies in google groups) Yes it's n-ary summation. Interesting. Seems Firefox 3.5 only apply the css to letters and not other chars? All other browser of current version seems to do the summation sign. Which behavior is correct? |
|
According to Wikipedia, http://en.wikipedia.org/wiki/Acid3 Safari is the browser that passes acid3. Should i wait for Firefox to change behavior or should i change my website? |
#8
| |||
| |||
|
|
Xah Lee wrote: Interesting. Seems Firefox 3.5 only apply the css to letters and not other chars? All other browser of current version seems to do the summation sign. Which behavior is correct? That will come down to your interpretation of the word "letter". |
|
Is "A" a letter? Is "8" a letter? if "+" a letter? I would say "yes" to only the first. |
#9
| |||
| |||
|
|
Johannes Koch wrote: Harlan Messinger schrieb: "Jonathan N. Little" wrote Is it "GREEK CAPITAL LETTER SIGMA" or "N-ARY SUMMATION"? Seems Firefox 3.5 only apply the css to letters and not other chars? |
|
All other browser of current version seems to do the summation sign. Which behavior is correct? The behavior exhibited by Firefox 3.5. (After all, that's why it's called "first-letter", not "first-character" or "first-symbol". The specification even calls for special treatment, consistent with traditional treatment in the print world, for first letters that are preceded by punctuation, and so forth. See http://www.w3.org/TR/CSS2/selector.html#first-letter |
#10
| |||
| |||
|
|
Swifty wrote: Xah Lee wrote: Interesting. Seems Firefox 3.5 only apply the css to letters and not other chars? All other browser of current version seems to do the summation sign. Which behavior is correct? That will come down to your interpretation of the word "letter". In part, yes. The CSS "specifications" are vague in this matter. In a sense, the meaning of "letter" might be the easiest part. The "specs" (CSS 2.0 which is official but not recommended by anyone; CSS 2.1 which is often cited as de-facto standar but itself forbids that, nominally; and the excuse for a draft sketch CSS 3.0 Selectors, all saying essentially the same in this matter) refer to Unicode properties in the discussion of punctuation characters. Thus, it would be very natural to interpret the word "letter"as referring to the Unicode characters that have a General Category value beginning with "L", for "Letter", thus including ideographs, syllable characters, and far more characters than most of us ever heard of. The summation sign is surely not a letter in that sense; its General Categoryis "Symbol, Math". Is "A" a letter? Is "8" a letter? if "+" a letter? I would say "yes" to only the first. That is correct. And "8" is a digit. But what other letters and digits are there? The additional difficulties include these: 1) The CSS "specs" say that :first-letter also includes any leading punctuation character, which is somewhat odd - if a line begins with a quotation mark and a letter, then these two are included into the pseudo-element :first-letter. 2) The CSS "specs" also say: "The ':first-letter' also applies if the first letter is in fact a digit, e.g., the "6" in "67 million dollars is a lot of money."" That's weird, really, and it raises the question what constitutes a digit.. (Anything with General Category value beginning with "N", for "Number" - which is a lot more than most of us would think.) 3) For further confusion, they say: "Some languages may have specific rules about how to treat certain letter combinations. In Dutch, for example, if the letter combination "ij" appears at the beginning of a word, both letters should be considered within the :first-letter pseudo-element." That's really wild. It makes things language-dependent and even language version dependent; e.g., it's an open question whether "ch" in Spanish is one letter in some sense. (And what about English "th"?) And it leaves things wide open - are browsers really supposed to know the rules of all written languages in such matters? What _are_ the rules, really? Let's end this with one more foolishness: "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." Is that just idle babbling, or is it supposed to be part of a specification? Oh, wait... they also "specify": "The :first-letter pseudo-element must select 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" So if we have #%&*Foo at the start of a line, then :first-letter is the "F", right? Is this supposed to be useful? -- Yucca,http://www.cs.tut.fi/~jkorpela/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |