Skip to content

Commit 3afc5d4

Browse files
committed
[css-backgrounds-4] Handle omitted origin keywords in background-position-*
1 parent 94bb461 commit 3afc5d4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

css-backgrounds-4/Overview.bs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Background Positioning Longhands: the 'background-position-x', 'background-posit
8888

8989
<pre class='propdef'>
9090
Name: background-position-x
91-
Value: [ center | [ left | right | x-start | x-end ] [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
91+
Value: [ center | [ left | right | x-start | x-end ]? [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
9292
Initial: left
9393
Applies to: all
9494
Inherited: no
@@ -98,10 +98,11 @@ Background Positioning Longhands: the 'background-position-x', 'background-posit
9898
</pre>
9999

100100
This property specifies the background position's horizontal component.
101+
An omitted origin keyword is assumed to be ''left''.
101102

102103
<pre class='propdef'>
103104
Name: background-position-y
104-
Value: [ center | [ top | bottom | y-start | y-end ] [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
105+
Value: [ center | [ top | bottom | y-start | y-end ]? [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
105106
Initial: left
106107
Applies to: all
107108
Inherited: no
@@ -111,10 +112,11 @@ Background Positioning Longhands: the 'background-position-x', 'background-posit
111112
</pre>
112113

113114
This property specifies the background position's vertical component.
115+
An omitted origin keyword is assumed to be ''top''.
114116

115117
<pre class='propdef'>
116118
Name: background-position-inline
117-
Value: [ center | [ start | end ] [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
119+
Value: [ center | [ start | end ]? [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
118120
Initial: not applicable (initial value comes from physical property)
119121
Applies to: all
120122
Inherited: no
@@ -124,10 +126,11 @@ Background Positioning Longhands: the 'background-position-x', 'background-posit
124126
</pre>
125127

126128
This property specifies the background position's inline-axis component.
129+
An omitted origin keyword is assumed to be ''start''.
127130

128131
<pre class='propdef'>
129132
Name: background-position-block
130-
Value: [ center | [ start | end ] [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
133+
Value: [ center | [ start | end ]? [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]#
131134
Initial: not applicable (initial value comes from physical property)
132135
Applies to: all
133136
Inherited: no
@@ -137,6 +140,7 @@ Background Positioning Longhands: the 'background-position-x', 'background-posit
137140
</pre>
138141

139142
This property specifies the background position's block-axis component.
143+
An omitted origin keyword is assumed to be ''start''.
140144

141145
<h2 id="corners">
142146
Corners</h2>

0 commit comments

Comments
 (0)