Skip to content

Commit 5de5a15

Browse files
committed
[css-display] Add ruby values.
1 parent 426ea7e commit 5de5a15

2 files changed

Lines changed: 82 additions & 33 deletions

File tree

css-display/Overview.bs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Setting the layout mode: the 'display-inside' property</h3>
8686
If the element's computed 'display-outside' value is ''inline-level'',
8787
the element is an inline element,
8888
and lays out its contents using inline layout. [[!CSS21]]
89-
If the element's computed 'display-outside' value is ''table-row-group'', ''table-header-group'', ''table-footer-group'', ''table-row'', ''table-column-group'', or ''table-column'',
89+
If the element's computed 'display-outside' value is an <a>layout-specific display role</a>,
9090
this elements acts as normal for its given 'display-outside' value.
9191
Otherwise, this value computes to ''display-inside/block''.
9292

@@ -105,6 +105,10 @@ Setting the layout mode: the 'display-inside' property</h3>
105105
<dt><dfn>grid</dfn>
106106
<dd>
107107
The element lays out its contents using grid layout. [[!CSS3-GRID-LAYOUT]]
108+
109+
<dt><dfn>ruby</dfn>
110+
<dd>
111+
The element lays out its contents using ruby layout. [[!CSS3RUBY]]
108112
</dl>
109113

110114

@@ -151,8 +155,23 @@ Interacting with the layout mode: the 'display-outside' property</h3>
151155
<dd>
152156
The element is an internal table element,
153157
and participates in a table layout context. [[!CSS21]]
158+
These values are all <a>layout-specific display roles</a>.
159+
160+
<dt><dfn>ruby-base</dfn>, <dfn>ruby-text</dfn>, <dfn>ruby-base-container</dfn>, <dfn>ruby-text-container</dfn>
161+
<dd>
162+
The element is an internal ruby element,
163+
and participates in a ruby layout context. [[!CSS3RUBY]]
164+
These values are all <a>layout-specific display roles</a>.
154165
</dl>
155166

167+
Some values of 'display-outside' are specialized for particular formatting contexts,
168+
and don't have meaning outside of those specific contexts.
169+
These values are called <dfn title="layout-specific display role">layout-specific display roles</dfn>.
170+
Generally, a <a>layout-specific display role</a> will generate wrapper boxes around itself
171+
to ensure that it ends up in the correct formatting context,
172+
if it's not placed in an appropriate formatting context;
173+
the details of this are specified by each layout mode.
174+
156175
<p class='issue'>
157176
Do we need special bits about some of the interactions with 'display-inside'?
158177
For example, how ''display:inline-level block;'' works?

0 commit comments

Comments
 (0)