From 7fd0270a4de93bdfb0eb31ac528d403697f23932 Mon Sep 17 00:00:00 2001 From: fantasai Date: Thu, 13 Sep 2018 22:20:33 -0700 Subject: [PATCH] [css-text-4] Add line-padding property. #1973 --- css-text-4/Overview.bs | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/css-text-4/Overview.bs b/css-text-4/Overview.bs index 1d84104ca7e..bc5f8019bd6 100644 --- a/css-text-4/Overview.bs +++ b/css-text-4/Overview.bs @@ -936,6 +936,60 @@ Spacing Issue: Add final level 3 word-spacing, letter-spacing +

+Line Start/End Padding: the 'line-padding' property

+ +
+	Name: line-padding
+	Value: <>
+	Initial: 0
+	Applies to: inline boxes
+	Inherited: yes
+	Percentages: N/A
+	Computed value: absolute length
+	
+ + Whereas 'letter-spacing' adjusts spacing + between typographic letter units + and does not apply at the start or end of a line, + this property adjusts spacing only at the start/end of a line. + The extra spacing is applied only + by the innermost inline box + at the start/end of the line box, + and is inserted between that inline box’s content edge + and the adjacent inline-level content + (text run or atomic inline). + This extra space is not a justification opportunity. + +
+ Given the following HTML and CSS: + + p { line-padding: 0.5em; line-height: 1; text-align: center } + span { background: black; color: white; } + em { background: green; color: white; } + + <p><span>Here is <em>some text</em></p> + + + If it renders such that there is a break between “some” and “text”, + line-padding will be inserted such that + an extra 0.5em of inline background will be visible + on each side of each line: + on the first line, black on the left and green on the right, + and on the second line, green on both sides. + + +
+			Here is some
+			text
+		
+
+

Character Class Spacing: the 'text-spacing' property