Skip to content

Support text-emphasis-position #578

@yisibl

Description

@yisibl

Old Safari and Chrome support for -webkit-text-emphasis-position. These browsers support over and under as values, but not the added left and right values required by the spec.

input:

em {
  text-emphasis-position: over right; /* Standard syntax in the specification */
}

output:

em {
 -webkit-text-emphasis-position: over;
         text-emphasis-position: over right;
}

Note

WebKit and Blink support over and under as values, but not the added left and right values required by the spec.

That is to say:

-webkit-text-emphasis-position: under ≈ text-emphasis-position: under left;
-webkit-text-emphasis-position: over  ≈ text-emphasis-position: over right;

input:

em {
  text-emphasis-position: under;
}

output:

em {
 -webkit-text-emphasis-position: under;
         text-emphasis-position: under left;
}

Demo

@zmmbreeze @ethantw Please review this.

jquery.emphasis and han.css muse be use standard grammar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions