You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-backgrounds-4/Overview.bs
+37-104
Original file line number
Diff line number
Diff line change
@@ -31,15 +31,9 @@ Backgrounds</h2>
31
31
<h3 id="the-background-position">
32
32
Background Positioning: the 'background-position' shorthand property</h3>
33
33
34
-
<pre class='propdef'>
34
+
<pre class="propdef shorthand">
35
35
Name: background-position
36
36
Value: <<position>>#
37
-
Initial: top left
38
-
Applies to: all
39
-
Inherited: no
40
-
Percentages: refer to size of background positioning area <em>minus</em> size of background image
41
-
Media: visual
42
-
Computed value: A list, each item consisting of: a pair of offsets and an origin, each offset given as a combination of an absolute length and a percentage
43
37
</pre>
44
38
45
39
See [[CSS3BG]] for definition.
@@ -86,56 +80,48 @@ Background Positioning Longhands: the 'background-position-x', 'background-posit
86
80
87
81
Issue: This section is still being worked out. The tricky thing is making all the start/end keywords work sanely.
88
82
89
-
<pre class='propdef'>
83
+
<pre class="propdef">
90
84
Name: background-position-x
91
-
Value: [ center | [ left | right | x-start | x-end ]? [ <var><percentage></var> | <var><length></var> ]? ]#
85
+
Value: [ center | [ left | right | x-start | x-end ]? <<length-percentage>>? ]#
92
86
Initial: left
93
-
Applies to: all
94
87
Inherited: no
95
88
Percentages: refer to width of background positioning area <em>minus</em> width of background image
96
-
Media: visual
97
89
Computed value: A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword
98
90
</pre>
99
91
100
92
This property specifies the background position's horizontal component.
101
93
An omitted origin keyword is assumed to be ''left''.
102
94
103
-
<pre class='propdef'>
95
+
<pre class="propdef">
104
96
Name: background-position-y
105
-
Value: [ center | [ top | bottom | y-start | y-end ]? [ <var><percentage></var> | <var><length></var> ]? ]#
97
+
Value: [ center | [ top | bottom | y-start | y-end ]? <<length-percentage>>? ]#
106
98
Initial: left
107
-
Applies to: all
108
99
Inherited: no
109
100
Percentages: refer to height of background positioning area <em>minus</em> height of background image
110
-
Media: visual
111
101
Computed value: A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword
112
102
</pre>
113
103
114
104
This property specifies the background position's vertical component.
115
105
An omitted origin keyword is assumed to be ''top''.
116
106
117
-
<pre class='propdef'>
107
+
<pre class="propdef">
118
108
Name: background-position-inline
119
-
Value: [ center | [ start | end ]? [ <var><percentage></var> | <var><length></var> ]? ]#
109
+
Value: [ center | [ start | end ]? <<length-percentage>>? ]#
120
110
Initial: not applicable (initial value comes from physical property)
121
-
Applies to: all
122
111
Inherited: no
123
112
Percentages: refer to inline-size of background positioning area <em>minus</em> inline-size of background image
124
-
Media: visual
125
113
Computed value: A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword
126
114
</pre>
127
115
128
116
This property specifies the background position's inline-axis component.
129
117
An omitted origin keyword is assumed to be ''background-position-inline/start''.
130
118
131
-
<pre class='propdef'>
119
+
<pre class="propdef">
132
120
Name: background-position-block
133
-
Value: [ center | [ start | end ]? [ <var><percentage></var> | <var><length></var> ]? ]#
121
+
Value: [ center | [ start | end ]? <<length-percentage>>? ]#
134
122
Initial: not applicable (initial value comes from physical property)
135
-
Applies to: all
136
123
Inherited: no
137
124
Percentages: refer to size of background positioning area <em>minus</em> size of background image
138
-
Media: visual
139
125
Computed value: A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword
0 commit comments