Skip to content

Commit 48ba2b3

Browse files
committed
[css-display-3] Clarify that 'inline-foo' and 'inline foo' compute to each other. #5575
1 parent fbe9dc9 commit 48ba2b3

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

css-display-3/Overview.bs

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ Box Layout Modes: the 'display' property
235235
Initial: inline
236236
Applies to: all elements
237237
Inherited: no
238-
Computed value: see prose in a variety of specs
238+
Computed value: a pair of keywords representing the [=inner display type|inner=] and [=outer display type|outer=] display types plus optional ''list-item'' flag, or a <> or <> keyword; see prose in a variety of specs for computation rules
239239
Animation type: not animatable
240240
241241

@@ -771,21 +771,29 @@ Precomposed Inline-level Display Values
771771
772772
inline-block
773773
774-
Behaves as ''inline flow-root''.
774+
Computes to ''inline flow-root''.
775775

776776
inline-table
777777
778-
Behaves as ''inline table''.
778+
Computes to ''inline table''.
779779

780780
inline-flex
781781
782-
Behaves as ''inline flex''.
782+
Computes to ''inline flex''.
783783

784784
inline-grid
785785
786-
Behaves as ''inline grid''.
786+
Computes to ''inline grid''.
787787
788788

789+
Note: Although these keywords and their equivalents compute to the same value,
790+
their [=specified values=] remain distinct.
791+
792+
Note: The {{Window/getComputedStyle()}} serialization rules
793+
will always output these precomposed keywords
794+
rather than the equivalent two-keyword pairs
795+
due to the [[cssom#serializing-css-values|shortest, most backwards-compatible serialization principle]].
796+
789797
commit comments
Comments
 (0)