@@ -246,9 +246,9 @@ interface Fragment {
246
246
attribute double inlineOffset;
247
247
attribute double blockOffset;
248
248
249
- readonly attribute ChildBreakToken? breakToken ;
249
+ readonly attribute any data ;
250
250
251
- readonly attribute double alignmentBaseline ;
251
+ readonly attribute ChildBreakToken? breakToken ;
252
252
};
253
253
</pre>
254
254
@@ -326,9 +326,6 @@ be changed.
326
326
If the <a>current layout</a> requires a different {{Fragment/breakToken}} the author must perform
327
327
{{LayoutChild/layoutNextFragment()}} again with different arguments.
328
328
329
- The {{Fragment}} 's {{Fragment/alignmentBaseline}} attribute specify where the alignment baseline is
330
- positioned relative to the block start of the fragment. It cannot be changed.
331
-
332
329
Note: In a future level of the specification there may be a way to query for additional baseline
333
330
information, for example where the alphabetic or center baseline is positioned.
334
331
@@ -348,6 +345,8 @@ interface ConstraintSpace {
348
345
readonly attribute double percentageBlockSize;
349
346
350
347
readonly attribute BlockFragmentationType blockFragmentationType;
348
+
349
+ readonly attribute any data;
351
350
};
352
351
353
352
dictionary ConstraintSpaceOptions {
@@ -362,7 +361,7 @@ dictionary ConstraintSpaceOptions {
362
361
363
362
BlockFragmentationType blockFragmentationType = "none";
364
363
365
- boolean alignmentBaseline = false ;
364
+ any data = null ;
366
365
};
367
366
368
367
enum BlockFragmentationType { "none", "page", "column", "region" };
@@ -495,8 +494,7 @@ This tells the <a>child layout</a> to produce a {{Fragment}} starting at the poi
495
494
Issue: Explain resuming the author defined layout.
496
495
497
496
<div class="example">
498
- This example shows a simple inline layout which places child fragments in the inline direction. It
499
- places each of its on a line, aligning their baselines.
497
+ This example shows a simple inline layout which places child fragments in the inline direction.
500
498
501
499
This example also demonstrates using the previous {{Fragment/breakToken}} of a {{Fragment}} to
502
500
produce the next fragment for the {{LayoutChild}} .
@@ -523,7 +521,6 @@ registerLayout('basic-inline', class extends Layout {
523
521
524
522
let currentLine = [];
525
523
let usedInlineSize = 0;
526
- let maxBaseline = 0;
527
524
528
525
let lineOffset = 0;
529
526
let maxLineBlockSize = 0;
@@ -532,7 +529,6 @@ registerLayout('basic-inline', class extends Layout {
532
529
const nextLine = function() {
533
530
currentLine = [];
534
531
usedInlineSize = 0;
535
- maxBaseline = 0;
536
532
537
533
lineOffset += maxLineBlockSize;
538
534
maxLineBlockSize = 0;
@@ -581,15 +577,10 @@ registerLayout('basic-inline', class extends Layout {
581
577
currentLine.push(fragment);
582
578
fragment.inlineOffset = usedInlineSize;
583
579
584
- if (fragment.alignmentBaseline > maxBaseline) {
585
- maxBaseline = fragment.alignmentBaseline;
586
- }
587
-
588
580
// Go through each of the fragments on the line and update their
589
581
// block offsets.
590
582
for (let fragmentOnLine of currentLine) {
591
- fragmentOnLine.blockOffset = lineOffset +
592
- maxBaseline - fragmentOnLine.alignmentBaseline;
583
+ fragmentOnLine.blockOffset = lineOffset;
593
584
594
585
const lineBlockSize =
595
586
fragmentOnLine.blockOffset + fragmentOnLine.blockSize;
@@ -1116,7 +1107,6 @@ dictionary FragmentResultOptions {
1116
1107
double blockSize = 0;
1117
1108
sequence<Fragment> childFragments = [];
1118
1109
BreakTokenOptions breakToken = null;
1119
- double alignmentBaseline = null;
1120
1110
};
1121
1111
1122
1112
dictionary IntrinsicSizesResultOptions {
@@ -1382,8 +1372,6 @@ following steps:
1382
1372
{{FragmentResultOptions/breakToken}} .
1383
1373
1384
1374
TODO: storage of the break token.
1385
-
1386
- - TODO: baselines.
1387
1375
</div>
1388
1376
1389
1377
### Utility Algorithms ### {#utility-algorithms}
@@ -1514,11 +1502,6 @@ When the user agent wants to <dfn>run a generator</dfn> given |generator|, and |
1514
1502
- {{Fragment/breakToken}} being a new {{ChildBreakToken}} representing
1515
1503
|layoutChild|'s internal break token.
1516
1504
1517
- - {{Fragment/alignmentBaseline}} being |internalFragment|'s <a>alignment
1518
- baseline</a> if |childConstraintSpace| had
1519
- {{ConstraintSpaceOptions/alignmentBaseline}} set to <b> true</b> , otherwise
1520
- just null.
1521
-
1522
1505
4. If |result| is null (that is neither of the above branches was taken), return
1523
1506
failure, and abort all these steps.
1524
1507
0 commit comments