https://bugzilla.wikimedia.org/show_bug.cgi?id=53505

--- Comment #3 from Gabriel Wicke <gwi...@wikimedia.org> ---
With a href set this actually works as expected in FF and Chrome:

<html><head>
<style>
body {
    counter-reset: numberedlink;
}
a[typeof~="mw:ExtLink"]:empty:after {
    content: "[" counter(numberedlink) "]";
    counter-increment: numberedlink;
}
</style>
</head>
<body>
<a href="test" typeof="mw:ExtLink"></a>
<a href="test" typeof="mw:ExtLink">not empty</a>
<a href="test" typeof="mw:ExtLink"></a>
<a href="test" typeof="mw:ExtLink"></a>
<a href="test" typeof="mw:ExtLink"></a>
</body>
</html>

So it seems that we can actually implement auto-numbered links in pure CSS.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to