[Mapcss] (Pseudo-)Classes interrogations
Chris Browet
cbro at semperpax.com
Sun Jul 18 21:29:43 BST 2010
In Potlach.css, I see this:
/* Change the road colour based on dynamically set "highlighted" tag (see
> earlier) */
>
> way .highlighted { color: pink; }
>
> /* Interactive editors may choose different behaviour when a user
> mouses-over or selects
> an object. Potlatch 2 supports these but the stand-alone Halcyon viewer
> does not */
>
> way :hover { z-index: 2; width: eval('_width+10'); color: #ffff99; }
>
Firstly, I don't get the 'dynamically set "highlighted" tag (see earlier)'.
"highlighted" do not seem to be defined anywhere.Or is it meant to be
defined by a "{set .highlighted;}" on a ad-hoc basis?
Secondly, the 0.2 spec refers to a ":active" pseudo, while potlach.css uses
":selected". Which one is right. Both?
Thirdly, the 0.2 spec refers to a ":closed" pseudo, while potlach.css uses
":area". Which one is right. Both?
Fourthly, potlach.css seems to use a bunch of pseudo-classes not in the
spec. It would be nice to add them (and their meaning) to the spec as they
are added to potlach.
- Chris -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/mapcss/attachments/20100718/075f5cab/attachment.html>
More information about the Mapcss
mailing list