@@ -210,29 +210,33 @@ Background Image Layers: the 'background-tbd' shorthand property</h3>
210210 <a href="https://github.com/w3c/csswg-drafts/issues/9083">issue 9083</a> .
211211
212212 <div class="example" id="background-layer-example">
213- This example sets three background layers,
214- the first one including the image, position and repetition,
215- the second including the image, position, and size,
216- and the third one only consisting of the image.
213+ This example sets two background layers later in the cascade.
214+ By using 'background-tbd' , the previously set 'background-color'
215+ won't be overridden.
217216
218217 <pre class="lang-css">
218+ p {
219+ background-color: green;
220+ }
221+
219222 p {
220223 background-tbd:
221- url(a.png) top left no-repeat,
222- url(b.png) center / 100% 100% no-repeat,
223- url(c.png);
224+ url(a.png) top left,
225+ url(b.png) top left no-repeat;
224226 }
225227 </pre>
226228 </div>
227229
228230 <div class="invalid example" id="invalid-background-layer-example">
229231 This example tries to set the background color in addition to
230- the background image. For that to work, 'background' needs
231- to be used instead of 'background-tbd' .
232+ the background image. But for that to work,
233+ 'background' needs to be used instead of 'background-tbd' .
234+ So the 'background-tbd' declaration will be dropped.
232235
233236 <pre class="lang-css">
234237 p {
235- background-tbd: url(c.png) white;
238+ background: url(pass.png) green; /* valid */
239+ background-tbd: url(fail.png) red; /* invalid */
236240 }
237241 </pre>
238242 </div>
0 commit comments