File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff 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
316339A {{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