Alexander Johannesen wrote:
>>Yes. You probably need to use insert-after-button(). insert-button()
>>inserts an element at caret position and this is probably not what you
>>want to do.
>
>
> Ah, thanks for that; you're right about that. Hmm, can I also insert
> after an Xpath conext?
insert-after-button() inserts after the element which is the target of
the CSS rule which references insert-after-button().
Example:
------------------------------------
section {
display: block;
margin-left: 4ex;
}
section:before {
display: marker;
content: insert-after-button();
}
------------------------------------
can be used to insert an element after the section.
If you want to do anything more complicated than this, you need to use a
command-button() triggering a macro-command or a menu of macro-commands.
> Would you, after all that, still consider something like the :hover
> pseudo class?
I can only add this request to our ever growing wish list.