Skip to content

Commit 0fc04e5

Browse files
committed
[css-layout-api] Add very bad text around LineFragments
1 parent 183af99 commit 0fc04e5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

css-layout-api/Overview.bs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,29 @@ interface Fragment {
311311

312312
readonly attribute ChildBreakToken? breakToken;
313313
};
314+
315+
/* NOTE EVERYTHING BELOW HERE IS SPECULATIVE */
316+
interface LineFragment : Fragment {
317+
readonly attribute sequence<LineFragmentSegment> segments;
318+
};
319+
320+
interface LineFragmentSegment {
321+
readonly attribute LineFragmentSegmentType type;
322+
readonly attribute LineFragmentSegmentBreakType breakType;
323+
readonly attribute FontMetrics? metrics;
324+
readonly attribute double inlineOffset;
325+
};
326+
327+
enum LineFragmentSegmentType {
328+
"word-break",
329+
"atomic-inline",
330+
/* TODO add others here, not sure yet. */
331+
};
332+
333+
enum LineFragmentSegmentBreakType {
334+
"something"
335+
/* TODO add others here, not sure yet. */
336+
};
314337
</pre>
315338

316339
A {{Fragment}} represents a CSS <a>fragment</a> of a {{LayoutChild}} after layout has occurred on

0 commit comments

Comments
 (0)