Skip to content

Commit 134b1ae

Browse files
committed
[CSS2] Remove new lines from attribute values
This happens to only be in img[alt]
1 parent 65800a7 commit 134b1ae

1 file changed

Lines changed: 26 additions & 56 deletions

File tree

css2/Overview.bs

Lines changed: 26 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,8 +2565,7 @@ a reference pixel of 1.3 mm.
25652565
</p>
25662566

25672567
<div class="figure">
2568-
<p><img src="images/pixel1.png" alt="Showing that pixels must become
2569-
larger if the viewing distance increases"></p>
2568+
<p><img src="images/pixel1.png" alt="Showing that pixels must become larger if the viewing distance increases"></p>
25702569
</div>
25712570

25722571
<p>This second image illustrates the effect of a device's resolution
@@ -2577,9 +2576,7 @@ the same area is covered by 16 dots in a higher resolution device
25772576
</p>
25782577

25792578
<div class="figure">
2580-
<p><img src="images/pixel2.png" alt="Showing that more device pixels (dots)
2581-
are needed to cover a 1px by 1px area on a high-resolution device than
2582-
on a low-res one"></p>
2579+
<p><img src="images/pixel2.png" alt="Showing that more device pixels (dots) are needed to cover a 1px by 1px area on a high-resolution device than on a low-res one"></p>
25832580
</div>
25842581

25852582

@@ -4317,8 +4314,7 @@ glyph outline may be taken into account when formatting.
43174314
precedes or follows the first letter should be included, as in:</p>
43184315

43194316
<div class="figure">
4320-
<p><img src="./images/first-letter2.png" alt="Quotes that precede the
4321-
first letter should be included."></p>
4317+
<p><img src="./images/first-letter2.png" alt="Quotes that precede the first letter should be included."></p>
43224318
</div>
43234319

43244320
<p>The ':first-letter' also applies if the first letter is in fact a
@@ -5323,8 +5319,7 @@ margins, padding, and borders of the UL elements and those of its
53235319
children LI elements. (Image is not to scale.)</p>
53245320

53255321
<div class="figure">
5326-
<p><img src="./images/boxdimeg.png" alt="Image illustrating how parent and child margins, borders,
5327-
and padding relate."></p>
5322+
<p><img src="./images/boxdimeg.png" alt="Image illustrating how parent and child margins, borders, and padding relate."></p>
53285323
</div>
53295324

53305325
<p>Note that:</p>
@@ -6215,8 +6210,7 @@ easier to define the formatting, we assume that there is an <em><dfn data-lt="an
62156210
around "Some text".
62166211
</p>
62176212
<div class="figure">
6218-
<p><img src="images/anon-block.png" alt="diagram showing the three
6219-
boxes for the example above">
6213+
<p><img src="images/anon-block.png" alt="diagram showing the three boxes for the example above">
62206214
<p class="caption">Diagram showing the
62216215
three boxes, of which one is anonymous, for the example above.
62226216
</div>
@@ -6903,8 +6897,7 @@ Consider the following example:
69036897
follows:</p>
69046898

69056899
<div class="figure">
6906-
<p><img src="./images/inline-layout.png" alt="Image illustrating the effect of line breaking on the
6907-
display of margins, borders, and padding."></p>
6900+
<p><img src="./images/inline-layout.png" alt="Image illustrating the effect of line breaking on the display of margins, borders, and padding."></p>
69086901
</div>
69096902

69106903
<ul>
@@ -7075,9 +7068,7 @@ span { float: left; width: 5em; height: 5em; border: solid blue; }
70757068
</code></pre>
70767069
<p>This fragment might look like this:</p>
70777070
<div class="figure"><p>
7078-
<img style="display:block" src="images/supercal.png" alt="Image illustrating the effect of an unbreakable piece of content
7079-
being reflowed to just after a float which left insufficient room next to it
7080-
for the content to fit.">
7071+
<img style="display:block" src="images/supercal.png" alt="Image illustrating the effect of an unbreakable piece of content being reflowed to just after a float which left insufficient room next to it for the content to fit.">
70817072
</p>
70827073
</div>
70837074
</div>
@@ -7127,8 +7118,7 @@ containing block established by the P element) after the float. This
71277118
document might be formatted as:</p>
71287119

71297120
<div class="figure">
7130-
<p><img src="./images/floateg.png" alt="Image illustrating how floating boxes interact with
7131-
margins."></p>
7121+
<p><img src="./images/floateg.png" alt="Image illustrating how floating boxes interact with margins."></p>
71327122
</div>
71337123

71347124
<p>Formatting would have been exactly the same if the document had
@@ -7167,9 +7157,7 @@ blocks, but behind in-flow inlines.
71677157
overlaps borders of elements in the normal flow.
71687158
</p>
71697159
<div class="figure">
7170-
<p><img src="images/float2p.png" alt="Image showing a floating image
7171-
that overlaps the borders of two paragraphs: the borders are
7172-
interrupted by the image.">
7160+
<p><img src="images/float2p.png" alt="Image showing a floating image that overlaps the borders of two paragraphs: the borders are interrupted by the image.">
71737161
</p>
71747162
<p class="caption">A floating image obscures borders
71757163
of block boxes it overlaps.
@@ -7190,8 +7178,7 @@ p { clear: left }
71907178
<p>formatting might look like this:
71917179
</p>
71927180
<div class="figure">
7193-
<p><img src="images/floatclear.png" alt="Image showing a floating
7194-
image and the effect of 'clear: left' on the two paragraphs.">
7181+
<p><img src="images/floatclear.png" alt="Image showing a floating image and the effect of 'clear: left' on the two paragraphs.">
71957182
</p>
71967183
<p class="caption">Both paragraphs have set 'clear: left', which
71977184
causes the second paragraph to be "pushed down" to a position below
@@ -7766,8 +7753,7 @@ their original position on line 2.
77667753
relative positioning of <em>outer</em>.</p>
77677754

77687755
<div class="figure">
7769-
<p><img src="./images/flow-relative.png" alt="Image illustrating the effects of relative positioning on a
7770-
box's content."></p>
7756+
<p><img src="./images/flow-relative.png" alt="Image illustrating the effects of relative positioning on a box's content."></p>
77717757
</div>
77727758

77737759
<p>Note also that had the offset of <em>outer</em> been '-24px', the
@@ -7826,9 +7812,7 @@ element to the example:
78267812
document's remaining text to flow into the vacated space:</p>
78277813

78287814
<div class="figure">
7829-
<p><img src="./images/flow-clear.png" alt="Image illustrating the effects of floating a box without
7830-
setting the clear property to control the flow of text around the
7831-
box."></p>
7815+
<p><img src="./images/flow-clear.png" alt="Image illustrating the effects of floating a box without setting the clear property to control the flow of text around the box."></p>
78327816
</div>
78337817

78347818
<p>However, if the 'clear'
@@ -7901,8 +7885,7 @@ serve as references for 'top' and
79017885
<p>This results in something like the following:</p>
79027886

79037887
<div class="figure">
7904-
<p><img src="./images/flow-abs-rel.png" alt="Image illustrating the effects of absolutely positioning a
7905-
box with respect to a containing block."></p>
7888+
<p><img src="./images/flow-abs-rel.png" alt="Image illustrating the effects of absolutely positioning a box with respect to a containing block."></p>
79067889
</div>
79077890

79087891
<p>If we do not position the <em>outer</em> box:</p>
@@ -8293,8 +8276,7 @@ may have to be created, and some inline boxes may have to be split up
82938276
and reordered before flowing.
82948277
</p>
82958278
<p>Because the Unicode algorithm has a limit of
8296-
<em title="According to unicode 3.0, chapter 3, section 12, definition BD2.
8297-
Specifically, page 58 here: http://www.unicode.org/unicode/uni2book/ch03.pdf">61 levels</em> of
8279+
<em title="According to unicode 3.0, chapter 3, section 12, definition BD2. Specifically, page 58 here: http://www.unicode.org/unicode/uni2book/ch03.pdf">61 levels</em> of
82988280
embedding, care should be taken not to use 'unicode-bidi' with a value other
82998281
than 'normal' unless appropriate. In particular, a value of 'inherit'
83008282
should be used with extreme caution. However, for elements that are,
@@ -11258,8 +11240,7 @@ For example:
1125811240
<p> The above example may be formatted as:</p>
1125911241

1126011242
<div class="figure">
11261-
<p><img src="./images/list-inout.png" alt="Difference between inside
11262-
and outside list style position"></p>
11243+
<p><img src="./images/list-inout.png" alt="Difference between inside and outside list style position"></p>
1126311244
</div>
1126411245

1126511246
<p>In right-to-left text, the markers would have been on the right
@@ -11470,8 +11451,7 @@ properties</a> ('margin-top',
1147011451
relationships between the sheet, page box, and page margins:</p>
1147111452

1147211453
<div class="figure">
11473-
<p><img src="./images/page-info.png" alt="Illustration of sheet, page
11474-
box, margin, and page area."></p>
11454+
<p><img src="./images/page-info.png" alt="Illustration of sheet, page box, margin, and page area."></p>
1147511455
</div>
1147611456

1147711457
<div class="example"><p>
@@ -12106,8 +12086,7 @@ body {
1210612086
}
1210712087
</pre>
1210812088
<div class="figure">
12109-
<p><img src="images/bg-repeat.png" alt="A centered background image,
12110-
with copies repeated up and down the padding and content areas.">
12089+
<p><img src="images/bg-repeat.png" alt="A centered background image, with copies repeated up and down the padding and content areas.">
1211112090
</p>
1211212091
<p class="caption">One copy of the background image is centered, and
1211312092
other copies are put above and below it to make a vertical band behind
@@ -14276,8 +14255,7 @@ wrapper box. (Where the table element's values are not used on the
1427614255
table and table wrapper boxes, the initial values are used instead.)
1427714256

1427814257
<div class="figure">
14279-
<p><img src="images/table_container.png" alt="A table with a caption above
14280-
it">
14258+
<p><img src="images/table_container.png" alt="A table with a caption above it">
1428114259

1428214260
<p class="caption">Diagram of a table with a caption above it.
1428314261
</div>
@@ -14416,8 +14394,7 @@ figure on the left, or to shift the cell to avoid the visual
1441614394
overlap, as in the figure on the right.
1441714395

1441814396
<div class="figure">
14419-
<p><img src="images/table-overlap.png" alt="One table with overlapping
14420-
cells and one without"> <p class="caption">Two possible
14397+
<p><img src="images/table-overlap.png" alt="One table with overlapping cells and one without"> <p class="caption">Two possible
1442114398
renderings of an erroneous HTML table.
1442214399
</div>
1442314400
</div>
@@ -14518,8 +14495,7 @@ first row spans into this row. The following HTML code and style rules
1451814495
<p>might be formatted as follows:
1451914496

1452014497
<div class="figure">
14521-
<p><img src="images/tbl-empty.png" alt="Table with three empty cells
14522-
in bottom row">
14498+
<p><img src="images/tbl-empty.png" alt="Table with three empty cells in bottom row">
1452314499

1452414500
<p class="caption">Table with empty cells in the bottom row.
1452514501
</div>
@@ -14822,8 +14798,7 @@ cells that have 'vertical-align: baseline' is used to set the baseline
1482214798
of the row. Here is an example:
1482314799

1482414800
<div class="figure">
14825-
<p><img src="images/cell-align.png" alt="Example of vertically
14826-
aligning the cells">
14801+
<p><img src="images/cell-align.png" alt="Example of vertically aligning the cells">
1482714802

1482814803
<p class="caption">Diagram showing the effect of various values of
1482914804
'vertical-align' on table cells.
@@ -14993,8 +14968,7 @@ td.special { border: inset 10pt } /* The top-left cell */
1499314968
</pre>
1499414969

1499514970
<div class="figure">
14996-
<p><img src="images/tbl-spacing.png" alt="A table with
14997-
border-spacing">
14971+
<p><img src="images/tbl-spacing.png" alt="A table with border-spacing">
1499814972

1499914973
<p class="caption"> A table with 'border-spacing' set to a
1500014974
length value. Note that each cell has its own border, and the table
@@ -15099,8 +15073,7 @@ bottom border.
1509915073
determining if the table overflows some ancestor (see 'overflow').</p>
1510015074

1510115075
<div class="figure">
15102-
<p><img src="images/tbl-width.png" alt="Schema showing the widths of
15103-
cells and borders and the padding of cells">
15076+
<p><img src="images/tbl-width.png" alt="Schema showing the widths of cells and borders and the padding of cells">
1510415077

1510515078
<p class="caption">Schema showing the widths of cells and borders
1510615079
and the padding of cells.
@@ -15199,8 +15172,7 @@ td.cell6 { border: 5px solid green; }
1519915172
<p>would produce something like this:
1520015173

1520115174
<div class="figure">
15202-
<p><img src="images/tbl-border-conflict.png" alt="An example of a
15203-
table with collapsed borders">
15175+
<p><img src="images/tbl-border-conflict.png" alt="An example of a table with collapsed borders">
1520415176

1520515177
<p class="caption">An example of a table with collapsed borders.
1520615178
</div>
@@ -15210,8 +15182,7 @@ td.cell6 { border: 5px solid green; }
1521015182
<p>Here is an example of hidden collapsing borders:
1521115183

1521215184
<div class="figure">
15213-
<p><img src="images/CSStbl3.png" alt="Table
15214-
with two omitted borders">
15185+
<p><img src="images/CSStbl3.png" alt="Table with two omitted borders">
1521515186

1521615187
<p class="caption"> Table with two omitted internal borders.
1521715188
</div>
@@ -16596,8 +16567,7 @@ attributes have not been specified.</p>
1659616567

1659716568
<div class="lang-html example">
1659816569
<div class="figure">
16599-
<p><img src="images/table1.png" alt="Image of a table created in MS
16600-
Word"><p class="caption"> Image of a table with header cells ("San
16570+
<p><img src="images/table1.png" alt="Image of a table created in MS Word"><p class="caption"> Image of a table with header cells ("San
1660116571
Jose" and "Seattle") that are not in the same column or row as the
1660216572
data they apply to.
1660316573
</div>

0 commit comments

Comments
 (0)