OK, I see you point on nesting. But http://www.w3.org/TR/REC-CSS2/selector.html#q1 says that if you have : in selector, only few things can stand behind that, for example:
element:first-child element:link element:visited element:active element:hover element:focus So, having element:verdana is illegal in any case. On Jan 15, 3:24 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > In Sass, the text nested beneath a selector can be either selectors or > properties. For example: > > #main > color: red > p > color: blue > > This means that Sass has to figure out which a given line is. The > general rule is that if it looks like a property, we treat it as such, > and otherwise unless it obviously can't be a selector we treat it as a > selector. Since "font-family:verdana" is a valid CSS selector > (specifically, one that selects "verdana" elements in the namespace > "font-family"), we can't really treat it as a malformed property. > > - Nathan > > [EMAIL PROTECTED] wrote: > > I am not sure I understand how font-family:verdana is valid selector. > > First of all, it's not selector, it's property. Selector is > > "p,pre,br,ul,li,div,a,span" (http://www.w3.org/TR/REC-CSS2/ > > syndata.html) > > > He should understand that "font-family:verdana" is actually "font- > > family: verdana" (add space) or at least he should parse it to css as > > a comment: > > /* WARNING: skipped property font-family:verdana */ > > > On Jan 14, 1:55 am, "Nathan Weizenbaum" <[EMAIL PROTECTED]> wrote: > > >> I'm not sure there's a good way around this. Sass ignores selectors without > >> content beneath them, and something like font-family:verdana is actually a > >> valid selector. > > >> On Jan 12, 2008 11:06 AM, [EMAIL PROTECTED] < > > >> [EMAIL PROTECTED]> wrote: > > >>> I you convert big big css too sass, you might be for very long night, > >>> example you have one smart part that goes like this: > >>> ------------------------------------ > >>> p,pre,br,ul,li,div,a,span { > >>> font-family:verdana ; > >>> font-size:10pt; > >>> } > >>> ------------------------------------ > > >>> ok, coverting is easy: > >>> ------------------------------------ > >>> p,pre,br,ul,li,div,a,span > >>> font-family:verdana > >>> font-size:10pt > >>> ------------------------------------ > > >>> When you try to render that, it renders whole big css file except > >>> those lines. No warnings, no errors, nothing, code simply disappears. > > >>> What was wrong, no space between font-family: and verdana and no space > >>> between font-size: and 10pt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
