File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,29 @@ interface Fragment {
311
311
312
312
readonly attribute ChildBreakToken? breakToken;
313
313
};
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
+ };
314
337
</pre>
315
338
316
339
A {{Fragment}} represents a CSS <a>fragment</a> of a {{LayoutChild}} after layout has occurred on
You can’t perform that action at this time.
0 commit comments