CSS3 punctuation-trimProperty
Example
In a p element, place opening punctuation at the beginning of each line:
p
{
punctuation-trim:start;
}
{
punctuation-trim:start;
}
Browser Support
![]()
![]()
![]()
![]()
![]()
No mainstream browser supports the punctuation-trim property.
Attribute definition and usage instructions
The punctuation-trim property specifies whether punctuation should be trimmed when it appears at the beginning of a line, or when adjacent to another full-width opening or closing punctuation character.
| Default value: | none |
|---|---|
| Inherited: | yes |
| version: | CSS3 |
| JavaScript Syntax: | object.style.punctuationTrim="start" |
Syntax
punctuation-trim: none|start|end|allow-end|adjacent;
| Value | Description |
|---|---|
| none | Do not trim opening or closing punctuation marks |
| start | Place opening punctuation at the beginning of each line. |
| end | Trim closing punctuation at the end of each line. |
| allow-end | If it would otherwise not fit before, trim the closing punctuation at the end of each line. |
| adjacent | Trim opening punctuation if the previous adjacent character is a full-width opening, middle, or closing punctuation mark, or an ideographic space. Trim closing punctuation if the next adjacent character is a full-width closing or middle punctuation mark, or an ideographic space. |