Skip to content

Commit 847fee6

Browse files
committed
[css-backgrounds-4] Add propdef table for 'background-position' so we can add keywords to it.
1 parent 6aa37b4 commit 847fee6

File tree

2 files changed

+102
-43
lines changed

2 files changed

+102
-43
lines changed

css-backgrounds-4/Overview.bs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,37 @@ Introduction</h2>
2323
as this will reduce the effort of keeping them in sync
2424
(source diffs will be accurate in reflecting the differences).
2525

26+
<h2 id="backgrounds">
27+
Backgrounds</h2>
28+
29+
<h3 id="the-background-position">
30+
Background Positioning: the 'background-position' property</h3>
31+
32+
<pre class='propdef'>
33+
Name: backround-position
34+
Value: <<position>>#
35+
Initial: top left
36+
Applies to: all
37+
Inherited: no
38+
Percentages: refer to size of background positioning area <em>minus</em> size of background image
39+
Media: visual
40+
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
41+
</pre>
42+
43+
See [[CSS3BG]] for definition.
44+
<p>Where
45+
<pre class=prod><dfn><var>&lt;position&gt;</var></dfn> = [
46+
[ left | center | right | top | bottom | <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]
47+
|
48+
[ left | center | right | <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]
49+
[ top | center | bottom | <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]
50+
|
51+
[ center | [ left | right ] [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ] &amp;&amp;
52+
[ center | [ top | bottom ] [ <var>&lt;percentage&gt;</var> | <var>&lt;length&gt;</var> ]? ]
53+
]</pre>
54+
55+
<p class="issue">Add logical keywords
56+
2657
<h2 id="corners">
2758
Corners</h2>
2859

@@ -104,7 +135,7 @@ Corner Shape and Size: the 'corners' shorthand</h3>
104135
Name: corners
105136
Value: <<'corner-shape'>> || <<'border-radius'>>
106137
Initial: see individual properties
107-
Applies to: <a>grid containers</a>
138+
Applies to: see individual properties
108139
Inherited: see individual properties
109140
Percentages: see individual properties
110141
Media: visual

0 commit comments

Comments
 (0)