Reverse selector ordering... why?

44 views
Skip to first unread message

Frifox

unread,
Mar 10, 2010, 5:16:07 PM3/10/10
to xCSS - OO CSS framework
To make things simple, lets assume my master xcss to be:
------------------------
#wrapper {
self {
...
}
.header {
...
}
.footer {
...
}
}


All is good and I expect the end result to be:
------------------------
#wrapper {
...
}
#wrapper .header {
...
}
#wrapper .footer {
...
}


but instead i get
------------------------
#wrapper .footer {
...
}
#wrapper .header {
...
}
#wrapper {
...
}


I'm developing a site with total CSS line count being 1.5k+ lines, and
in some cases the order DOES matter. Is there any specific reason why
xCSS prints the parsed CSS backwards?

Anton Pawlik

unread,
Mar 11, 2010, 5:35:04 AM3/11/10
to xc...@googlegroups.com
if you need to push something to the top you just need to add a (,) to the selector. ive explande the reason many times please search the forum.

Andrew

unread,
Sep 13, 2012, 4:19:36 PM9/13/12
to xc...@googlegroups.com
I've search the forum for "order", "ordering", "selectors" and "select" and didn't find the reason. Can you point me to the post that answers their question?

Thanks
Reply all
Reply to author
Forward
0 new messages