|
1 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | | -<html><head><title>Flexible Box measure Module</title> |
| 2 | +<html><head><title>Flexible Box Layout Module</title> |
3 | 3 | <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED"> <!-- TODO: remove before build --> |
4 | 4 | <link rel=stylesheet href=http://dev.w3.org/csswg/default.css> |
5 | 5 | <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS]"> |
|
12 | 12 | </head><body> |
13 | 13 |
|
14 | 14 | <div class="head"> |
15 | | - <h1 id="head-box-flexible">Flexible Box measure Module</h1> |
| 15 | + <h1 id="head-box-flexible">Flexible Box Layout Module</h1> |
16 | 16 | <h2 class="no-num no-toc" id="w3c-working">[LONGSTATUS], [DATE]</h2> |
17 | 17 |
|
18 | 18 | <dl> |
@@ -42,7 +42,7 @@ <h2 class="no-num no-toc" id="w3c-working">[LONGSTATUS], [DATE]</h2> |
42 | 42 | <h2 class="no-num no-toc" id="abstract">Abstract</h2> |
43 | 43 |
|
44 | 44 | <p>The draft describes a CSS box model optimized for interface design. |
45 | | - It provides an additional measure system alongside the ones already in |
| 45 | + It provides an additional layout system alongside the ones already in |
46 | 46 | CSS. [[!CSS21]] In this new box model, the children of a box are |
47 | 47 | laid out either horizontally or vertically, and unused space can be |
48 | 48 | assigned to a particular child or distributed among the children by |
@@ -157,6 +157,21 @@ <h2 id=display-flexbox> |
157 | 157 | that is generated can't be targetted and controlled by the various flexbox |
158 | 158 | properties.</p> |
159 | 159 |
|
| 160 | + <div class=issue> |
| 161 | + <p>ISSUE: Need to reword how flexbox items are determined. The |
| 162 | + algorithm clearly operates on the box tree, as it creates anonymous boxes, |
| 163 | + but it needs to operate kinda on elements. In particular, an inline child |
| 164 | + element that contains a block should be wrapped in a single flexbox item, rather |
| 165 | + than wrapping the pre-block and post-block parts in separate anonymous blocks |
| 166 | + and then the block inside being a flexbot item on its own.</p> |
| 167 | + <p>Whatever wording is used here should be shared with the table-fixup |
| 168 | + algorithm, because it's essentially the identical problem. Perhaps we can |
| 169 | + have it operate on the element-tree and create anonymous pseudo-elements, |
| 170 | + similar to how ::outside would work? Pseudoelements don't interfere with |
| 171 | + normal selectors, so this would let us insert wrappers that work correctly |
| 172 | + without screwing up the way selectors work.</p> |
| 173 | + </div> |
| 174 | + |
160 | 175 | <p>A flexbox item creates a new BFC. The margins of a flexbox item |
161 | 176 | do not collapse with any other margin. Flexboxes "shrinkwrap" their contents |
162 | 177 | by default (when their 'width' or 'height' properties are ''auto''), similar |
|
0 commit comments