Skip to content

Commit 2af5b05

Browse files
committed
[css-layout-api] Fix a few minor things.
1 parent 55380f5 commit 2af5b05

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

css-layout-api/Overview.bs

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ interface Fragment {
109109

110110
readonly attribute double dominantBaseline;
111111
readonly attribute double alphabeticBaseline;
112-
readonly attribute double textTopBaseline;
113-
readonly attribute double textBottomBaseline;
114-
readonly attribute double textCenterBaseline;
112+
readonly attribute double centerBaseline;
115113

116114
readonly attribute Object data;
117115
};
@@ -189,9 +187,12 @@ The {{Fragment}}'s {{Fragment/breakToken}} specifies where the {{Box}} last frag
189187
<a>current layout</a> requires a different {{Fragment/breakToken}} the author must perform
190188
<<doLayout()>> again with different arguments.
191189

192-
The {{Fragment}}'s {{Fragment/dominantBaseline}}, {{Fragment/alphabeticBaseline}},
193-
{{textTopBaseline}}, {{textCenterBaseline}}, and {{Fragment/textBottomBaseline}} attributes specify
194-
where all the baselines for the {{Fragment}} are positioned. They cannot be changed.
190+
The {{Fragment}}'s {{Fragment/dominantBaseline}}, {{Fragment/alphabeticBaseline}}, and
191+
{{Fragment/centerBaseline}} attributes specify where all the baselines for the {{Fragment}} are
192+
positioned. They cannot be changed.
193+
194+
The {{Fragment}}'s {{Fragment/data}} attribute is used by the author to pass arbitary data between
195+
the <a>child layout</a> and <a>current layout</a>. The data is <a>structured cloned</a>.
195196

196197
Constraint Spaces {#constraint-spaces}
197198
--------------------------------------
@@ -428,16 +429,11 @@ partial interface ConstraintSpace {
428429
Exclusion getLastExclusion(optional ExclusionOptions options);
429430
};
430431

431-
enum ExclusionTag { "exclusion", "float" };
432-
433-
enum ExclusionType {
434-
"none",
435-
"inline-flow", "inline-start", "inline-end", "inline-both",
436-
"block-flow", "block-start", "block-end", "block-both"
437-
};
432+
enum ExclusionTag { "fragment", "exclusion", "float" };
433+
enum ExclusionType { "none", "inline-flow", "inline-start", "inline-end", "inline-both" };
438434

439435
dictionary ExclusionOptions {
440-
ExclusionTag tag = "exclusion";
436+
ExclusionTag tag = "fragment";
441437
ExclusionType type = "none"; // default to "inline-flow" instead?
442438
};
443439

@@ -566,10 +562,10 @@ dictionary BreakTokenOptions {
566562
Object data = null;
567563
};
568564

569-
enum BreakType { "none", "line-word", "line-hyphen", "column", "page", "region" };
565+
enum BreakType { "none", "line", "column", "page", "region" };
570566
</pre>
571567

572-
Issue: The {{BreakType}}s are probably completely wrong.
568+
Issue(w3c/css-houdini-drafts#258): What type of {{BreakType}}s are needed?
573569

574570
A {{Box}} can produce multiple {{Fragment}}s. A {{Box}} may fragment in the block direction if a
575571
{{ConstraintSpace/blockFragmentationOffset}} is present in the {{ConstraintSpace}}. It may fragment

0 commit comments

Comments
 (0)