Skip to content

Commit 48b18b9

Browse files
author
dauwhe
committed
[css-inline] fix typos in hrefs reported by Reece Dunn
1 parent db3df7b commit 48b18b9

2 files changed

Lines changed: 248 additions & 455 deletions

File tree

css-inline/Overview.bs

Lines changed: 13 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,7 @@ middle | bottom | text-bottom |a href="/TR/REC-CSS2/syndata.html#percentage-unit
19491949
<p>This property affects the vertical positioning of the inline boxes generated
19501950
by an inline-level element inside a line box. The following values only have
19511951
meaning with respect to a parent inline-level element, or to a parent
1952-
block-level element, if that element generatesa href="/TR/REC-CSS2/visuren.html#anonymous">anonymous inline boxes</a>; they
1952+
block-level element, if that element generates <a href="/TR/REC-CSS2/visuren.html#anonymous">anonymous inline boxes</a>; they
19531953
have no effect if no such parent exists.
19541954

19551955
<div class="note">
@@ -2346,7 +2346,7 @@ The alignment constraints depend on the script used. In Japanese vertical writin
23462346

23472347

23482348

2349-
<p class="issue">Add content describing constraint that the block container have a baseline grid (or fixed line-height?). Can we say that the UA can treat other inline or replaced elements in the para as having line-height equal to zero when calculating the initial letter's alignment?</p>
2349+
<p class="issue">Add content describing constraint that the block container have a baseline grid (or fixed line-height?).</p>
23502350

23512351

23522352
<h3 id="selecting-drop-initials">Selecting Initial Letters</h3>
@@ -2380,9 +2380,9 @@ Only the following properties can be applied to the <code>::first-letter</code>
23802380

23812381

23822382

2383-
<h3 id="sizing-drop-initials">Creating Initial Letters: The 'initial-letter' shorthand</h3>
2383+
<h3 id="sizing-drop-initials">Creating Initial Letters: the 'initial-letter' shorthand</h3>
23842384

2385-
This <i>shorthand property</i> for 'initial-letter-drop' and 'initial-letter-size' takes two positive integer values. The first argument defines the number of lines the initial letter should sink. An N-line initial letter sinks to the Nth text baseline. The optional second argument defines how many lines the initial letter occupies. If not specified, it duplicates the first argument.
2385+
This <i>shorthand property</i> sets the 'initial-letter-drop' and 'initial-letter-size' properties. The first argument defines the number of lines the initial letter should sink. An N-line initial letter sinks to the Nth text baseline. The optional second argument defines how many lines the initial letter occupies. If not specified, it duplicates the first argument.
23862386

23872387
<pre class="propdef">
23882388
Name: <dfn id="propdef-initial-letter">initial-letter</dfn>
@@ -2395,8 +2395,6 @@ Media: visual
23952395
Computed value: ???
23962396
</pre>
23972397

2398-
<p class="note">Unlike most shorthands, omitting an argument does not result in the initial value for that argument being used.</p>
2399-
24002398

24012399
<div class="example">
24022400

@@ -2418,32 +2416,6 @@ p::first-letter {
24182416

24192417

24202418

2421-
2422-
<h3>The initial-letter-drop property</h3>
2423-
2424-
This longhand describes the line to which an initial letter “sinks.” As in the above example, the baseline of a three-line initial letter aligns to the third text baseline of the paragraph.
2425-
2426-
2427-
2428-
<pre class="propdef">
2429-
Name: <dfn id="propdef-initial-letter-drop">initial-letter-drop</dfn>
2430-
Value: normal | <<integer>>
2431-
Initial: normal
2432-
Applies to: <code>::first-letter</code> pseudo elements and inline level first child of a block container
2433-
Inherited: no
2434-
Percentages: N/A
2435-
Media: visual
2436-
Computed value: ???
2437-
</pre>
2438-
2439-
<h3>The initial-letter-size property</h3>
2440-
2441-
2442-
Some styles of drop initials do not align with the first line of text. For example, “sunken caps” both sink below the first baseline, and extend above the first line of text. In these cases, the size of the initial cap needs to be defined. The 'initial-letter-size' property specifies the size of the initial letter, as if it were an n-line drop cap.
2443-
2444-
2445-
2446-
24472419
<pre class="propdef">
24482420
Name: <dfn id="propdef-initial-letter-size">initial-letter-size</dfn>
24492421
Value: normal | <<integer>>
@@ -2457,6 +2429,8 @@ Computed value: ???
24572429

24582430

24592431

2432+
Some styles of drop initials do not align with the first line of text. For example, “sunken caps” both sink below the first baseline, and extend above the first line of text. In these cases, the size of the initial cap needs to be defined. The optional second argument of 'initial-letter' specifies the size of an initial letter, as if it were an n-line drop cap.
2433+
24602434

24612435

24622436

@@ -2468,25 +2442,20 @@ Computed value: ???
24682442

24692443
<figure>
24702444
<img src="SunkenCapA.png" width="480" alt="sunken drop initial"/>
2471-
<p class="caption">Sunken cap. The letter drops to the second line, but is the size of a three-line initial letter.</p>
2445+
<p class="caption">Sunken cap. The letter drops two lines, but is the size of a three-line initial letter.</p>
24722446
</figure>
24732447
<pre>
2474-
/* shorthand */
2448+
24752449
p::first-letter {
24762450
initial-letter: 2 3;
24772451
}
24782452

2479-
/* longhand */
2480-
p::first-letter {
2481-
initial-letter-drop: 2;
2482-
initial-letter-size: 3;
2483-
}
24842453
</pre>
24852454

24862455
</div>
24872456

24882457

2489-
If 'initial-letter-drop' is ''1'', that creates a pure raised initial letter (often called a “raised cap” or “stick-up cap.” It “sinks” to the first text baseline.
2458+
If the first argument is ''1'', that creates a pure raised initial letter (often called “raised cap” or “stick-up cap.”
24902459

24912460

24922461
<div class="example">
@@ -2496,16 +2465,11 @@ p::first-letter {
24962465
<p class="caption">Raised cap. The initial letter is the size of a 3-line initial, but does not drop.</p>
24972466
</figure>
24982467
<pre>
2499-
/* shorthand */
2468+
25002469
p::first-letter {
25012470
initial-letter: 1 3;
25022471
}
25032472

2504-
/* longhand */
2505-
p::first-letter {
2506-
initial-letter-drop: 1;
2507-
initial-letter-size: 3;
2508-
}
25092473
</pre>
25102474

25112475
</div>
@@ -2554,9 +2518,10 @@ span.initial {
25542518
initial-letter-alignment: ideographic;
25552519
}
25562520
</pre>
2557-
</div>
25582521

25592522

2523+
</div>
2524+
25602525

25612526
<h3 id="initial-letter-exclusions">Space Around Initial Letters</h3>
25622527

@@ -2577,10 +2542,6 @@ Text should be excluded around the glyph bounding boxes of the initial letters:
25772542
</figure>
25782543

25792544

2580-
<p class="note">For Western scripts, an initial letter acts as a content box bounded at the top by the cap height of the font, and at the bottom by the glyph bounding box. Borders, margins, and padding will extend from this content box.</p>
2581-
<p class="issue">The content box will need to be different for non-Western scripts. Perhaps this should be defined as part of the 'initial-letter-alignment' property.</p>
2582-
2583-
25842545
<h3 id="initial-letter-paragraphs">Interactions of initial letters with surrounding paragraphs</h3>
25852546

25862547
<h4>Raised and sunken caps</h4>
@@ -2738,7 +2699,7 @@ href="/TR/REC-CSS2/syndata.html#value-def-percentage"><span class="value-inst-pe
27382699
<td>'vertical-align'
27392700

27402701
<td>baseline | sub | super | top | text-top | central | middle | bottom |
2741-
text-bottom |a href="/TR/REC-CSS2/syndata.html#percentage-units">&lt;percentage&gt;</a> |a href="/TR/REC-CSS2/syndata.html#length-units">&lt;length&gt;</a> | inherit
2702+
text-bottom |<a href="/TR/REC-CSS2/syndata.html#percentage-units">&lt;percentage&gt;</a> |a href="/TR/REC-CSS2/syndata.html#length-units">&lt;length&gt;</a> | inherit
27422703

27432704
<td>baseline
27442705

0 commit comments

Comments
 (0)