The hanging-punctuation CSS property specifies whether a punctuation mark should hang at the start or end of a line of text. Hanging punctuation may be placed outside the line box.
pub const allow_end: #(String, String)
- : A stop or comma at the end of a line hangs if it does not otherwise fit prior to justification.Stops and commas that are allowed to hang include:
pub const first: #(String, String)
- : An opening bracket or quote at the start of the first formatted line of an element hangs. This applies to: - all characters in the Unicode categories Ps, Pf, Pi - the quote marks
U+0027 APOSTROPHE (') and U+0022 QUOTATION MARK (").
pub const force_end: #(String, String)
force-end value of hanging-punctuation
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const last: #(String, String)
- : A closing bracket or quote at the end of the last formatted line of an element hangs. This applies to: - all characters in the Unicode categories Pe, Pf, Pi - the quote marks
U+0027 APOSTROPHE (') and U+0022 QUOTATION MARK (").
pub const none: #(String, String)
pub fn raw(value: String) -> #(String, String)
Enter a raw string value for hanging-punctuation
pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)
Enter a variable name to be used for hanging-punctuation.
It will be wrapped in var() and have -- prepended.