@@ -68,7 +68,14 @@ A box could be generated by:
68
68
NOTE: Other pseudo-elements such as <a>::first-letter</a> or <a>::first-line</a> do not generate
69
69
a box for layout purposes. They are additional styling information for a text node.
70
70
71
- - A <a>Text</a> node.
71
+ - A sequence of non-atomic inlines.
72
+
73
+ NOTE: As an example the following would be placed into a single box:
74
+ <pre class="lang-html">
75
+ This is a text node, <span>with some additional styling,
76
+ that may</span> break <div>FLOAT!</div>over multiple lines.
77
+ </pre>
78
+ The float would be returned as an {{Fragment/unpositionedBoxes}} for the relevant fragment.
72
79
73
80
- An anonymous box. For example an anonymous box may be inserted as a result of:
74
81
@@ -531,13 +538,13 @@ TODO add example of exclusion usage.
531
538
<pre class="idl">
532
539
partial interface ConstraintSpace {
533
540
// TODO add arguments to layoutOpportunities that make sense.
534
- ConstraintSpaceIterable layoutOpportunities(optional LayoutOpportunitiesOptions);
541
+ ConstraintSpaceIterable layoutOpportunities(optional LayoutOpportunitiesOptions options );
535
542
};
536
543
537
544
dictionary LayoutOpportunitiesOptions {
538
- optional sequence<ExclusionTag> avoid = «» ; // empty list is avoid everything. :)
539
- optional sequence<ExclusionTag> clear = «» ; // defaults to clear nothing.
540
- optional number jump; // defaults to 1em.
545
+ sequence<ExclusionTag> avoid; // defualts to empty list to avoid everything.
546
+ sequence<ExclusionTag> clear; // defaults to clear nothing.
547
+ number jump; // defaults to 1em.
541
548
};
542
549
543
550
enum LayoutDirection { "inline", "block" };
0 commit comments