As docs say WYM expects for class date for p tag something like:
- Code: Select all
/* PARA: Date */
.date p{
color: #ccf;
/* background-color: #ff9; border: 2px solid #ee9; */
}
However if you look closely this definition is by all matter against CSS, actually the selector is wrong. It does not select para with class date, but the para that has ancestor of date class.
The proper one is p.date, but if I try use something like:
- Code: Select all
/* PARA: Date */
p.date{
color: #ccf;
/* background-color: #ff9; border: 2px solid #ee9; */
}
this doesn't work at all. Moreover I get JS errors (so the parser is not even error proof).
I dunno how it was possible to overlook such thing or what were original intentions of the author, but IMHO something is wrong.
Can we except a fix that will let CSS parser to parse proper CSS class definitions such as above and also ones that does not contain line breaks, i.e.:
- Code: Select all
/* LI: Icon */ li.icon { background-image: url(icon.png) no-reapeat top left; }
Now I'm really stuck because I'm forced to define available classes in 2 places in the site CSS and in the WYM startup scripts, just because WYM doesn't understand proper CSS definitions.
BTW. I tried to register myself at TRAC to submit bug report, however the registration page seems to be disabled.