jQuery.emphasis.js

A lightweight javascript fallback for CSS3 text-emphasis. Depends on jQuery >= 1.10.

Tested on IE 8+, Chrome, Firefox 4+, Safari 5+, Opera 12+, Mobile Safari(iOS 5+)

Getting Started

Include jquery and emphasis plugin into html like this:

<script src="jquery-1.10.2.min.js"></script>
<script src="jquery.emphasis.js"></script>
<script>
$('em').emphasis('dot');
</script>

.emphasis(text-emphasis)

text-emphasis
Type: String
A string representing text-emphasis style.
For example: filled, dotted, filled sesame red, "@" #069. You can also use value none to remove the style.
It's using navigator.language || navigator.browserLanguage to define which language was used. And it's not supporting vertical writing-mode.

.emphasis(text-emphasis, text-emphasis-position)

text-emphasis
Type: String
A string representing text-emphasis style.
text-emphasis-position
Type: String
A string representing text-emphasis-position style. Currently it's not support "right" and "left" in vertical writing-mode.

Know issues

If you find more issue, welcome to report it.