Skip to content

Commit ed0d4ca

Browse files
committed
[css-backgrounds] Clarify background-attachment: local
1 parent a34cfaf commit ed0d4ca

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

css-backgrounds/Overview.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<meta content="CSS Backgrounds and Borders Module Level 3"
1313
name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2013-12-18 name=dcterms.date>
15+
<meta content=2013-12-23 name=dcterms.date>
1616
<meta content="Bert Bos" name=dcterms.creator>
1717
<meta content="Elika J. Etemad" name=dcterms.creator>
1818
<meta content="Brad Kemper" name=dcterms.creator>
@@ -42,12 +42,12 @@
4242

4343
<h1>CSS Backgrounds and Borders Module Level 3</h1>
4444

45-
<h2 class="no-num no-toc">Editor's Draft 18 December 2013</h2>
45+
<h2 class="no-num no-toc">Editor's Draft 23 December 2013</h2>
4646

4747
<dl>
4848
<dt>This version:
4949

50-
<dd><!-- <a href="http://www.w3.org/TR/2013/CR-css3-background-20131218/">http://dev.w3.org/csswg/css3-background/</a> -->
50+
<dd><!-- <a href="http://www.w3.org/TR/2013/CR-css3-background-20131223/">http://dev.w3.org/csswg/css3-background/</a> -->
5151
<a
5252
href="http://dev.w3.org/csswg/css3-background/">http://dev.w3.org/csswg/css3-background/</a>
5353

@@ -1018,10 +1018,14 @@ <h3 id=the-background-attachment><span class=secno>3.5. </span>Affixing
10181018

10191019
<dd>The background is fixed with regard to the element's contents: if the
10201020
element has a scrolling mechanism, the background scrolls with the
1021-
element's contents. In this case, the background behind the element's
1022-
border (if any) scrolls as well, even though the border itself does not
1023-
scroll with the contents. The UA may, however, treat the ‘<code
1024-
class=css>border-box</code>’ value of ‘<a
1021+
element's contents, and the <a
1022+
href="#background-painting-area"><i>background painting area</i></a> and
1023+
<a href="#background-positioning-area"><i>background positioning
1024+
area</i></a> are relative to the scrollable area of the element rather
1025+
than to the border framing them. In this case, the background behind the
1026+
element's border (if any) scrolls as well, even though the border itself
1027+
does not scroll with the contents. The UA may, however, treat the
1028+
<code class=css>border-box</code>’ value of ‘<a
10251029
href="#background-clip"><code
10261030
class=property>background-clip</code></a>’ as ‘<code
10271031
class=css>padding-box</code>’ in cases where ‘<a

css-backgrounds/Overview.src.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,13 @@ <h3 id="the-background-attachment">Affixing Images: the 'background-attachment'
598598
element.</span>
599599
<dt><dfn>local</dfn></dt>
600600
<dd>The background is fixed with regard to the element's contents:
601-
if the element has a scrolling mechanism, the background scrolls
602-
with the element's contents. In this case, the background behind
603-
the element's border (if any) scrolls as well, even though the
604-
border itself does not scroll with the contents. The UA may,
605-
however, treat the ''border-box'' value of 'background-clip' as
601+
if the element has a scrolling mechanism,
602+
the background scrolls with the element's contents,
603+
and the <i>background painting area</i> and <i>background positioning area</i>
604+
are relative to the scrollable area of the element rather than to the border framing them.
605+
In this case, the background behind the element's border (if any) scrolls as well,
606+
even though the border itself does not scroll with the contents.
607+
The UA may, however, treat the ''border-box'' value of 'background-clip' as
606608
''padding-box'' in cases where 'background-attachment' is ''local''
607609
and the contents of the element scroll.</dd>
608610
<dt><dfn>scroll</dfn></dt>

0 commit comments

Comments
 (0)