1919 text-align : left
2020 }
2121
22- code > ol {
22+ . pseudo- code > ol {
2323 list-style-type : decimal
2424 }
25- code > ol > li > ol {
25+ . pseudo- code > ol > li > ol {
2626 list-style-type : lower-latin
2727 }
28- code > ol > li > ol > li > ol {
28+ . pseudo- code > ol > li > ol > li > ol {
2929 list-style-type : lower-roman
3030 }
31- code ul {
31+ . pseudo- code ul {
3232 list-style-type : disc
3333 }
3434
@@ -460,14 +460,15 @@ <h3 id=adapting-layouts-to-available-space><span class=secno>2.2.
460460 /* occupy this column. */
461461 grid-columns: auto minmax(min-content, 1fr);
462462
463- /* Three rows: the first and last sized to content, the middle row receives the remaining */
464- /* space, but is never smaller than the minimum height of the board or stats areas. */
463+ /* Three rows: the first and last sized to content, the middle row receives the */
464+ /* remaining space, but is never smaller than the minimum height of the board or stats */
465+ /* areas. */
465466 grid-rows: auto minmax(min-content, 1fr) auto
466467 }
467468
468- /* Each part of the game is positioned between grid lines by referencing the starting grid line and */
469- /* then specifying, if more than one, the number of rows or columns spanned to determine the ending */
470- /* grid line, which establishes bounds for the part. */
469+ /* Each part of the game is positioned between grid lines by referencing the starting grid */
470+ /* line and then specifying, if more than one, the number of rows or columns spanned to */
471+ /* determine the ending grid line, which establishes bounds for the part. */
471472 #title { grid-column: 1; grid-row: 1 }
472473 #score { grid-column: 1; grid-row: 3 }
473474 #stats { grid-column: 1; grid-row: 2; grid-row-align: start }
@@ -528,16 +529,17 @@ <h3 id=source-independence0><span class=secno>2.3. </span>Source
528529 #grid {
529530 display: grid;
530531
531- /* The rows, columns and cells of the grid are defined visually using the grid-template property. */
532- /* Each string is a row, and each letter a cell. The max number of letters in any one string determines */
533- /* the number of columns. */
532+ /* The rows, columns and cells of the grid are defined visually using the */
533+ /* grid-template property. Each string is a row, and each letter a cell. */
534+ /* The max number of letters in any one string determines the number of */
535+ /* columns. */
534536 grid-template: "ta"
535537 "sa"
536538 "bb"
537539 "cc";
538540
539- /* Columns and rows created with the template property can be assigned a sizing function with the */
540- /* grid-columns and grid-rows properties. */
541+ /* Columns and rows created with the template property can be assigned a sizing */
542+ /* function with the grid-columns and grid-rows properties. */
541543 grid-columns: auto minmax(min-content, 1fr);
542544 grid-rows: auto auto minmax(min-content, 1fr) auto
543545 }
@@ -547,8 +549,8 @@ <h3 id=source-independence0><span class=secno>2.3. </span>Source
547549 #grid {
548550 display: grid;
549551
550- /* Again the template property defines cells of the same name, but this time positioned differently */
551- /* to better suit a landscape orientation. */
552+ /* Again the template property defines cells of the same name, but this time */
553+ /* positioned differently to better suit a landscape orientation. */
552554 grid-template: "tb"
553555 "ab"
554556 "sc";
@@ -609,9 +611,9 @@ <h3 id=grid-layering-of-elements0><span class=secno>2.4. </span>Grid
609611 #grid {
610612 display: grid;
611613
612- /* The grid-columns and rows properties also support naming grid lines which can then be used */
613- /* to position grid items. The line names are assigned on either side of a column or row */
614- /* sizing function where the line would logically exist. */
614+ /* The grid-columns and rows properties also support naming grid lines which can then */
615+ /* be used to position grid items. The line names are assigned on either side of a */
616+ /* column or row sizing function where the line would logically exist. */
615617 grid-columns:
616618 "start" auto
617619 "track-start" 0.5fr
@@ -622,11 +624,13 @@ <h3 id=grid-layering-of-elements0><span class=secno>2.4. </span>Grid
622624 "end";
623625 }
624626
625- /* Grid-column and grid-row accept a starting and optional endling line. Below the lines are referred to by name. */
626- /* Beyond any semantic advantage, the names also allow the author to avoid renumbering the grid-row and column */
627- /* properties of the grid items. This is similar to the concept demonstrated in the prior example with the */
628- /* grid-template property during orientation changes, but grid lines can also work with layered grid items that */
629- /* have overlapping cells of different shapes like the thumb and track parts in this example. */
627+ /* Grid-column and grid-row accept a starting and optional endling line. Below the lines */
628+ /* are referred to by name. Beyond any semantic advantage, the names also allow the author */
629+ /* to avoid renumbering the grid-row and column properties of the grid items. This is */
630+ /* similar to the concept demonstrated in the prior example with the grid-template */
631+ /* property during orientation changes, but grid lines can also work with layered grid */
632+ /* items that have overlapping cells of different shapes like the thumb and track parts */
633+ /* in this example. */
630634 #lower-label { grid-column: "start" }
631635 #track { grid-column: "track-start" "track-end"; grid-row-align: center }
632636 #upper-label { grid-column: "track-end"; }
@@ -1345,7 +1349,8 @@ <h4 id=computed-values-for-grid-rows-and-grid-c><span class=secno>6.5.2.
13451349</div>
13461350<script type="text/javascript">
13471351 // Returns '"a" 50px "b" 320px "c" "d" ("e" 40px)[2] (0px)[4] 50px'.
1348- window.getComputedStyle(document.getElementById("grid"), null).getPropertyValue("grid-columns")
1352+ var gridElement = document.getElementById("grid");
1353+ window.getComputedStyle(gridElement, null).getPropertyValue("grid-columns");
13491354</script></ pre >
13501355 <!--End Section: Fraction Values: 'fr'--> </ section >
13511356 <!--End Section: Defining Grid Rows and Columns--> </ section > < section
@@ -2058,24 +2063,27 @@ <h3 id=automatic-placement-of-grid-items0><span class=secno>7.5.
20582063 grid-flow: rows
20592064 }
20602065 form > * {
2061- /* Ensure that children of the grid are all valid grid items by setting display to 'block'. */
2066+ /* Ensure that children of the grid are all valid grid items by setting */
2067+ /* display to 'block'. */
20622068 display: block;
20632069 }
20642070 form > input, form > select {
2065- /* Place all controls in the "controls" column and automatically find the next available row. */
2071+ /* Place all controls in the "controls" column and automatically find the */
2072+ /* next available row. */
20662073 grid-column: "controls";
20672074 grid-row: auto
20682075 }
20692076 form > label {
2070- /* Place all labels in the "labels" column and automatically find the next available row. */
2077+ /* Place all labels in the "labels" column and automatically find the next
2078+ /* available row. */
20712079 grid-column: "labels";
20722080 grid-row: auto
20732081 }
20742082
20752083 #department {
2076- /* Auto place this item in the "oversized" column in the first row where a cell that spans three rows */
2077- /* won't overlap other explicitly placed items or cells or any items automatically placed prior to */
2078- /* this cell. */
2084+ /* Auto place this item in the "oversized" column in the first row where a cell that */
2085+ /* spans three rows won't overlap other explicitly placed items or cells or any items */
2086+ /* automatically placed prior to this cell. */
20792087 grid-column: "oversized";
20802088 grid-row: auto;
20812089 grid-row-span: 3;
@@ -2695,7 +2703,7 @@ <h3 id=grid-track-sizing-algorithm0><span class=secno>10.2. </span>Grid
26952703 < dt > < dfn
26962704 id =function-ComputeUsedBreadthOfGridTracks-algorithm > Algorithm</ dfn >
26972705
2698- < dd > < code > </ code >
2706+ < dd class = pseudo- code>
26992707 < ol >
27002708 < li id =initialize-per-grid-track-variables-for- > Initialize per < a
27012709 href ="#grid-track "> < i > Grid track</ i > </ a > variables
@@ -2906,7 +2914,7 @@ <h3 id=grid-track-sizing-algorithm0><span class=secno>10.2. </span>Grid
29062914 id =function-ResolveContentBasedTrackSizingFunctions-algorithm > Algorithm</ dfn >
29072915
29082916
2909- < dd > < code > </ code >
2917+ < dd class = pseudo- code>
29102918 < ol >
29112919 < li id =filter-all-grid-items-into-a-set-g-such- > Filter all < a
29122920 href ="#grid-item "> < i > Grid items</ i > </ a > into a set g, such that each
@@ -3175,7 +3183,7 @@ <h3 id=grid-track-sizing-algorithm0><span class=secno>10.2. </span>Grid
31753183 id =function-ResolveContentBasedTrackSizingFunctionsForItems-algorithm > Algorithm</ dfn >
31763184
31773185
3178- < dd > < code > </ code >
3186+ < dd class = pseudo- code>
31793187 < ol >
31803188 < li id =for-each-grid-track-t-t.updatedtrackbrea > For each < a
31813189 href ="#grid-track "> < i > Grid track</ i > </ a > t
@@ -3309,7 +3317,7 @@ <h3 id=grid-track-sizing-algorithm0><span class=secno>10.2. </span>Grid
33093317 < dl >
33103318 < dt > < dfn id =function-DistributeSpaceToTracks-algorithm > Algorithm</ dfn >
33113319
3312- < dd > < code > </ code >
3320+ < dd class = pseudo- code>
33133321 < ol >
33143322 < li id =sort-tracksforgrowth-by-trackgrowthconst > Sort TracksForGrowth
33153323 by TrackGrowthConstraint( t ) - CurrentBreadth( t ) ascending (where
@@ -3419,7 +3427,7 @@ <h3 id=grid-track-sizing-algorithm0><span class=secno>10.2. </span>Grid
34193427 id =function-CalculateNormalizedFractionBreadth-algorithm > Algorithm</ dfn >
34203428
34213429
3422- < dd > < code > </ code >
3430+ < dd class = pseudo- code>
34233431 < ol >
34243432 < li id =allocatedspace-the-sum-of-the-usedbreadt > allocatedSpace = the
34253433 sum of the UsedBreadth for each < a href ="#grid-track "> < i > Grid
0 commit comments