Skip to content

Commit 3b5d362

Browse files
committed
Removed max-width (not compatible with pubrules) and redundant margin rule.
1 parent df66b1a commit 3b5d362

5 files changed

Lines changed: 109 additions & 39 deletions

File tree

css3-background/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ cdate = $(shell date +%Y%m%d)
1111
%.html: %.src.html
1212
@echo "Calling post-processor to generate $@..."
1313
@curl -F file=@$< -F group=CSS -F output=html -F method=file -s \
14-
-F date=$(cdate) \
14+
-F date=$(cdate) -F status=$(status) \
1515
-K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
1616
%.err: %.src.html
1717
@echo "Calling post-processor to check $<..."
1818
@curl -F file=@$< -F group=CSS -F output=err -F method=file -s \
19-
-F date=$(cdate) \
19+
-F date=$(cdate) -F status=$(status) \
2020
-K ~/.curl-w3.org http://cgi.w3.org/member-bin/process.cgi >$@
2121

2222

css3-break/Overview.src.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head profile="http://www.w3.org/2006/03/hcard">
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
55
<title>CSS Fragmentation Module Level 3</title>
6-
<link rel="stylesheet" type="text/css" href="../default.css">
6+
<link rel="stylesheet" type="text/css" href="default.css">
77
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css">
88
</head>
99
<body>
@@ -13,8 +13,8 @@ <h1 id="css-fragmentation-module">CSS Fragmentation Module Level 3</h1>
1313
<h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>
1414
<dl>
1515
<dt>This version:</dt>
16-
<!-- <dd><a href="[VERSION]">http://www.w3.org/TR/[YEAR]/WD-[SHORTNAME]-[CDATE]/</a></dd> -->
17-
<dd><a href="http://dev.w3.org/csswg/[SHORTNAME]/">http://dev.w3.org/csswg/[SHORTNAME]/</a></dd>
16+
<dd><a href="[VERSION]">http://www.w3.org/TR/[YEAR]/WD-[SHORTNAME]-[CDATE]/</a></dd>
17+
<!-- <dd><a href="http://dev.w3.org/csswg/[SHORTNAME]/">http://dev.w3.org/csswg/[SHORTNAME]/</a></dd> -->
1818

1919
<dt>Latest version:</dt>
2020
<dd><a href="http://www.w3.org/TR/[SHORTNAME]/">http://www.w3.org/TR/css3-break/</a></dd>

css3-layout/Overview.src.html

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
4646
<p><img src="diagram.png" alt="Image: four elements move to four
4747
slots in a template" longdesc="diagram.desc">
4848

49-
<p class=caption>A grid with four slots defined by 'display:
50-
"aaaaaaa" "bccccdd"'.
49+
<p class=caption>Above: a typical Web page. Below: the underlying
50+
grid template.
5151
</div>
5252

5353
<p>CSS is a simple, declarative language for creating style sheets
@@ -61,8 +61,8 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
6161
complex shapes and it allows the visual order to be different from the
6262
order of the elements in the source document.
6363

64-
<p>A '::slot' selector allows elements to be styled differently based
65-
on which slot they appear in.
64+
<p class=level4>A '::slot' selector allows elements to be styled
65+
differently based on which slot they appear in.
6666

6767
<h2 class="no-num no-toc" id=status>Status of this document</h2>
6868
<!--status-->
@@ -150,8 +150,9 @@ <h2>Introduction</h2>
150150
<p><img src="diagram.png" alt="Image: four elements move to four
151151
slots in a template" longdesc="diagram.desc">
152152

153-
<p class=caption>Four regions, called a, b, c and d, each receive a
154-
part of a document
153+
<p class=caption>Above: a typical Web page. Below: the underlying
154+
grid template. It has four slots, a, b, c and d and the grid
155+
template is defined by 'grid: "aaaaaaa" "bccccdd"'.
155156
</div>
156157

157158
<p class=mtb>The styling of a Web page, a form or a graphical user
@@ -169,11 +170,11 @@ <h2>Introduction</h2>
169170

170171
<p>The properties in this specification work by associating a
171172
<em>layout policy</em> with an element. Rather than letting an element
172-
lay out its descendants in their normal order as inline text or as
173-
blocks of text (the policies available in CSS level&nbsp;1), the
174-
policy defined in this module, called <em>template-based
175-
positioning,</em> gives an element an invisible grid for aligning
176-
descendant elements.
173+
lay out its descendants in a single flow, the policy defined in this
174+
module gives an element a <span>grid template,</span> which is a set
175+
of <span>slots</span> aligned to an invisible grid, where each slot is
176+
a <em>separate</em> flow. The descendants are given a 'flow' property
177+
to designate the slot into which they flow.
177178

178179
<p>Because layouts on the Web have to adapt to different window and
179180
paper sizes, the rows and columns of the grid can be made fixed or
@@ -193,12 +194,12 @@ <h2>Introduction</h2>
193194
in complex ways and have to stay aligned (and not wrap, for example)
194195
when the window is resized.
195196

196-
<li>Paged displays (e.g., printed media) where each page is divided
197-
in fixed areas for different kinds of content.
197+
<li class=level4>Paged displays (e.g., printed media) where each
198+
page is divided in fixed areas for different kinds of content.
198199

199-
<li>Complex pages with multiple regions, where the style of the text
200-
does not only depend on the type of element it comes from, but also
201-
on the region it is displayed in.
200+
<li class=level4>Complex pages with multiple regions, where the
201+
style of the text does not only depend on the type of element it
202+
comes from, but also on the region it is displayed in.
202203
</ul>
203204

204205
<p>Template-based positioning is an alternative to absolute
@@ -2002,8 +2003,14 @@ <h2>Floating elements inside templates</h2>
20022003
<li>Page-based floats &ndash; In paged media (see [[!CSS3PAGE]]), if
20032004
the value of 'float' specifies that the element floats to the top or
20042005
bottom of the page (in a horizontal writing mode) or the left or
2005-
right of the page (in a vertical writing mode), the 'position'
2006-
property doesn't apply.
2006+
right of the page (in a vertical writing mode), the slot act as the
2007+
page. (I.e., the element floats to the top, bottom, etc. of the
2008+
slot, not of the page.
2009+
2010+
<li>Footnotes &ndash; Likewise, the footnote area for elements with
2011+
'float: footnote' is at the bottom of the slot, not of the page. The
2012+
@footnote at-rule can position the footnote area at other places,
2013+
such as the top, but always inside the slot.
20072014

20082015
<li>Normal floats &ndash; In other cases, the element floats
20092016
normally within its containing block, which in this case is its slot

css3-layout/new.src.html

Lines changed: 79 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,8 +1653,8 @@ <h3 id="slot-sizes">
16531653

16541654
<pre>div {
16551655
height: 16em;
1656-
grid: "a.b"/*
1657-
"ac."/* }</pre>
1656+
grid: "a.b" / *
1657+
"ac." / * }</pre>
16581658
</div>
16591659

16601660
<li>
@@ -1712,10 +1712,11 @@ <h3 id="slot-sizes">
17121712
largest <var>PREFH</var> of all slots in the row.
17131713

17141714
<div class=example>
1715-
<p>For example, the second row in this grid
1715+
<p>For example, the third row in this grid
17161716

17171717
<pre>grid: "a.c.." / 5em
1718-
"....b" / fit-content</pre>
1718+
"a...."
1719+
"....b"</pre>
17191720

17201721
<p>must not be taller than the height (<span>block
17211722
dimension</span>) of slot b. The first row contains a slot that
@@ -1774,7 +1775,7 @@ <h3 id="slot-sizes">
17741775
<div class=example>
17751776
<p>For example, there would be multiple solutions for this grid:
17761777

1777-
<pre>&lt;DIV STYLE="float: left; grid: "a.b">
1778+
<pre>&lt;DIV STYLE="float: left; grid: 'a.b'">
17781779
&lt;P STYLE="flow: a">Two words
17791780
&lt;P STYLE="flow: b">Only three words
17801781
&lt;/DIV></pre>
@@ -1905,9 +1906,9 @@ <h2 id=positioning>
19051906

19061907
<p>The second way is to absolutely position elements using four
19071908
<em>grid lines</em> to specify the positions of the four margin
1908-
edges of the element. Like other positioned elements (''absolute''
1909-
or ''relative'', see [[!CSS21]]), these elements can overlap each
1910-
other and the 'z-index' property applies to them.
1909+
edges of the element. As positioned elements [[!CSS21]], these
1910+
elements can overlap each other and the 'z-index' property applies
1911+
to them.
19111912

19121913

19131914

@@ -2097,9 +2098,9 @@ <h3>
20972098
P {grid-row: a; grid-column: d}
20982099
</pre>
20992100

2100-
<p>are valid and mean that any P spans the same rows as slot a and
2101-
spans the same columns as slot c. (In this case, that means it
2102-
coincides with slot b.)
2101+
<p>mean that any P spans the same rows as slot a and spans the same
2102+
columns as slot c. (In this case, that means it coincides with slot
2103+
b.)
21032104
</div>
21042105

21052106
<p>If the value is given as ''<var>&lt;grid-track&gt;</var>'' and
@@ -2131,6 +2132,70 @@ <h3>
21312132
'max-content'.
21322133

21332134

2135+
<h3>
2136+
Absolute positioning using a grid: 'top', 'right', 'bottom', 'right'</h3>
2137+
2138+
<p class=issue>Instead of introducing properties 'grid-column' and
2139+
'grid-row' that override 'top', 'right', 'bottom' and 'right', it
2140+
might be better to extend those properties.
2141+
2142+
<table class=propdef-extra>
2143+
<tr>
2144+
<th>Name:
2145+
<td><dfn>top</dfn>, <dfn>right</dfn>, <dfn>bottom</dfn>, <dfn>left</dfn>
2146+
<tr>
2147+
<th><a href="#values">Value</a>:
2148+
<td><var>&lt;identifier&gt;</var> | '*' | <var>&lt;integer&gt;</var>
2149+
</table>
2150+
2151+
<p>The new values for these properties refer to <em>grid lines</em>
2152+
of the element's <span>grid ancestor</span> as follows:
2153+
2154+
<p>An identifier or '*' refers to an edge of the slot of that name:
2155+
the top edge if used on 'top', the right edge if used on 'right',
2156+
the bottom edge if used on 'bottom', and the left edge if used on
2157+
'left'. ('*' refers to the <span>default slot.</span>)
2158+
2159+
<div class=example>
2160+
<p>For example, these rules
2161+
2162+
<pre>
2163+
DIV {grid: "ab"
2164+
"cd"}
2165+
P {position: absolute; top: a; left: d}</pre>
2166+
2167+
<p>mean that any P is positioned with its top at the top of the
2168+
first row and its left at the left of the second column, i.e., at
2169+
the top left corner of slot b. In other words, the declarations
2170+
'top: b; left: b' would have meant the same thing.
2171+
</div>
2172+
2173+
<div class=example>
2174+
<p>This example positions all four sides of an element at grid
2175+
lines, so that the element will exactly overlap a given slot. (This
2176+
assumes 'width' and 'height' have their default value of ''auto'.)
2177+
2178+
<pre>
2179+
DIV {grid: "aaa"
2180+
"bbb"}
2181+
DIV H2 {position: absolute; top: a; right: a;
2182+
bottom: a; left: a}</pre>
2183+
</div>
2184+
2185+
<p>A number value refers to row grid lines (on 'top' and 'bottom')
2186+
or to column grid lines (on 'left' and 'right').
2187+
2188+
<p class=issue>Use negative number to count from the right/bottom?
2189+
Then 'left: 1; right: -1' would make the element as wide as the
2190+
grid, no matter how many columns it had.
2191+
2192+
<p>A number '0' is an error.
2193+
2194+
<p>If the value refers to a slot or grid line that does not exist in
2195+
the <span>grid ancestor,</span> or if there is no grid ancestor, the
2196+
value is treated as ''auto''.
2197+
2198+
21342199

21352200
<h3 id=grid-position>
21362201
The 'grid-position' shorthand property</h3>
@@ -2400,7 +2465,7 @@ <h2 id=slot-layout>
24002465

24012466
<div class=example>
24022467
<p>The next three figures illustrate the placement and orientation of
2403-
the <i>grid element</i>'s rows, columns, and <i>grid items</i> using
2468+
the <i title="grid element">grid element's</i> rows, columns, and <i>grid items</i> using
24042469
different writing modes on the <i>grid element</i>. In each of the
24052470
figures, the markup shown in the following example is used to place
24062471
<i>grid item</i> A in column 1, row 1, and <i>grid item</i> B in
@@ -2409,7 +2474,7 @@ <h2 id=slot-layout>
24092474
its row and column.
24102475
<i>Grid item</i> B is aligned in each figure to the ending edges of
24112476
its row and column.
2412-
<pre class="example">&lt;style type="text/css"&gt;
2477+
<pre>&lt;style type="text/css"&gt;
24132478
#grid { display: grid; grid-columns: 1fr 1fr; grid-rows: 1fr 1fr }
24142479
#A { grid-column: 1; grid-row: 1; grid-column-align: start; grid-row-align: start }
24152480
#B { grid-column: 2; grid-row: 2; grid-column-align: end; grid-row-align: end }
@@ -2583,7 +2648,7 @@ <h3 id=vertical-alignment>
25832648

25842649
<dl>
25852650

2586-
<dt>''bottom''
2651+
<dt>bottom
25872652

25882653
<dd>The content of the slot is aligned to the bottom of the slot:
25892654
the bottom margin edge of the anonymous block coincides with the

default.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
body {
2121
counter-reset: exampleno figure issue;
22-
margin: 0 auto !important;
23-
max-width: 50em;
2422
}
2523

2624
/* Pagination */

0 commit comments

Comments
 (0)