Ok, came up with another braintwister.
I've got an html document full of abbr tags with title attributes for abbreviations, eg.
<abbr title="Residential Gateway">RG</abbr>
How do I deal with this cleanly in Prince? For example how would I say that the first instance of an abbr with a certain title is expanded by saying
abbr:after {
content: "(" attr(title) ") ";
}
, but not the subsequent ones?
Would there be a way to go even further with this by saying that you only want the first abbreviation with a certain title 'in each page' to be expanded, so that you can remind users once per page what an abbreviation means?
Probably not feasible but if somebody has some genius insight that would be great
I've got an html document full of abbr tags with title attributes for abbreviations, eg.
<abbr title="Residential Gateway">RG</abbr>
How do I deal with this cleanly in Prince? For example how would I say that the first instance of an abbr with a certain title is expanded by saying
abbr:after {
content: "(" attr(title) ") ";
}
, but not the subsequent ones?
Would there be a way to go even further with this by saying that you only want the first abbreviation with a certain title 'in each page' to be expanded, so that you can remind users once per page what an abbreviation means?
Probably not feasible but if somebody has some genius insight that would be great