João Pedro, the hanging-punctuation
is used to place symbols such as quotation marks, period and Bullets outside the line of text, being the opposite of indent (indent pushes text in, Hanging-punctuation does not affect the alignment of text with paragraph).
Visually, the effect would be:
Without Hanging-punctuation:
I like:
Your doubts:
What is the ownership control over typography?
The property gives you control over the full alignment of the text, preventing whitespace from being inserted before (first) or after the text (after). The property then allows full alignment of the text as defined in text-align
.
What are the differences between the main accepted values?
The value "first" will insert the punctuation outside the line of the text and preceding the first line, in turn the value "after" will insert the punctuation also outside the line of the text, but after the last line.
As to the value "allow-end", this will insert the punctuation outside all lines of the text, after that line, only if the punctuation is not entered otherwise. For example, if the punctuation is inserted in the middle of a paragraph (not at the beginning or at the end), there is no reason to shift the punctuation:
- Example: Then the bard began to play and everyone shouted "Hurrah" and enjoyed the song.
In turn, the "force-end" value causes the score to be shifted across all lines, also at the end, regardless of position.
What is its usefulness and why we should use it (if we should)?
The utility is to shift the score by improving the aesthetics and reading flow. Because it is not supported by many browsers, as well as in the case of "first" it is possible to obtain the same result through the text-indent
(with negative value in the case), use is not recommended.
**Is the property supported by many browsers?
No, the property is supported by the Safari browser and only partially.
**Is it used? If so, how?
I haven’t located anything about the use of the property.
For more information, this is a great source on CSS and it’s what I used: https://tympanus.net/codrops/css_reference/hanging-punctuation/.
João, in this link here: https://css-tricks.com/almanac/properties/h/hanging-punctuation/, has an image that explains well the use of this CSS property, and also answers other questions,, as support of browsers (only Safari supports!?), however I did not understand very well, also, the difference between the values accepted, but, the link has an example code, so you could test (in a Safari browser) to see what the differences...
– Pedro Gaspar
This property today (19/10/2018) is still a draft of what you should enter one day in the
css
: Drafts.csswg.org, and as such, it is not yet supported by almost any browser: Browser Compatibility– Ricardo Pontual