Implement second argument of target-text()
For the target-text()
function, an optional second argument specifies what content is retrieved.
It can be:
-
content
: string value of the element, -
before
: string value of::before
element) -
after
: string value of::after
element) -
first-letter
: first letter of the element, as defined for the::first-letter
pseudo-element
For now, only target-text(content)
is implemented. We need the other values:
Specs: https://www.w3.org/TR/css-content-3/#target-text
Note: Be carreful about nesting counters in before or after elements.
HTML: issue-96.html
Result: issue-96-wrong.pdf
The result we should get: issue-96-correct.pdf