Skip to content

Commit f6f1c74

Browse files
committed
[css-inline-3] Add propdef table for 'line-height'. Still referencing 2.1 for definition.
1 parent fea29a1 commit f6f1c74

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

css-inline-3/Overview.bs

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Alignment Point: 'alignment-baseline' longhand</h4>
254254
These values are not allowed in the 'vertical-align' shorthand.
255255

256256
<h4 id="baseline-shift-property">
257-
Alignment Shift: 'baseline-shift' longhand</h4>
257+
Alignment Shift: the 'baseline-shift' longhand</h4>
258258

259259
<pre class="propdef">
260260
Name: baseline-shift
@@ -298,6 +298,32 @@ Alignment Shift: 'baseline-shift' longhand</h4>
298298

299299
Issue: We would prefer to remove this, and are looking for feedback from SVG user agents as to whether it's necessary.
300300

301+
<h4 id="line-height-property">
302+
Line Spacing: the 'line-height' property</h4>
303+
304+
<pre class="propdef">
305+
Name: line-height
306+
Value: normal | <<number>> || <<length-percentage>>
307+
Initial: normal
308+
Applies to: inline boxes
309+
Inherited: yes
310+
Percentages: computed relative to ''1em''
311+
Computed value: the specified keyword, a number, or a computed <<length>> value
312+
</pre>
313+
314+
<dl dfn-type=value dfn-for=line-height>
315+
<dt><dfn>normal</dfn>
316+
<dt><dfn><<number>></dfn>
317+
<dt><dfn><<length-percentage>></dfn>
318+
<dd>See <a href="https://www.w3.org/TR/CSS2/visudet.html#line-height">CSS2&sect;10.8.1</a>.
319+
</dl>
320+
321+
ISSUE: Fill out this definition so that it fully replaces CSS2.
322+
323+
ISSUE: The fact that percentages compute to lengths is annoying.
324+
See also href="https://github.com/w3c/csswg-drafts/issues/3118">Issue 3118</a>
325+
and <a href="https://github.com/w3c/csswg-drafts/issues/2165">Issue 2165</a>.
326+
301327
<h2 id="inline-box-dimensions">
302328
Drawing Inline Boxes</h2>
303329

@@ -498,7 +524,7 @@ Creating Initial Letters: the 'initial-letters' property</h3>
498524
Applies to: certain inline-level boxes and <css>::first-letter</css> and inside <css>::marker</css> boxes (<a href="#first-most-inline-level">see prose</a>)
499525
Inherited: no
500526
Percentages: N/A
501-
Computed value: the keyword ''normal'' or a number paired with an integer
527+
Computed value: the keyword ''initial-letters/normal'' or a number paired with an integer
502528
Animation type: by computed value type
503529
</pre>
504530

@@ -940,7 +966,7 @@ Sizing Initial Letters</h3>
940966
<h4 id="initial-letter-shaping">
941967
Shaping and Glyph Selection</h4>
942968

943-
When 'initial-letters' is not ''normal'',
969+
When 'initial-letters' is not ''initial-letters/normal'',
944970
shaping <em>should</em> still occur across the box's boundaries,
945971
see [[css-text-3#boundary-shaping]].
946972
For example, if the first letter of the Farsi word “پس”

0 commit comments

Comments
 (0)