Skip to content

Commit fec2915

Browse files
committed
Allow styling 'overflow' on ::nth-fragment(), as discussed at face-to-face meeting afternoon of 2012-08-13.
1 parent 7158f78 commit fec2915

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

css3-overflow/Overview.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,14 @@ <h4 id=style-of-fragments><span class=secno>4.1.2. </span>Styling of
564564
</div>
565565

566566
<p> Styling an ‘<code class=css>::nth-fragment()</code>’ pseudo-element
567-
with the ‘<code class=property>overflow</code>’ property has no
568-
effect; the computed value of ‘<code class=property>overflow</code>
569-
for the fragment box remains the same as the computed value of overflow
570-
for the element.
567+
with the ‘<code class=property>overflow</code>’ property does take
568+
effect; if a <a href="#fragment-box"><i>fragment box</i></a> has a
569+
computed value of ‘<code class=property>overflow</code>’ other than
570+
<code class=css>fragments</code>’ then that fragment box is the last
571+
fragment. However, overriding ‘<code class=css>overflow</code>’ on the
572+
first fragment does not cause the <a href="#fragment-box"><i>fragment
573+
box</i></a> not to exist; whether there are fragment boxes at all is
574+
determined by the computed value of overflow for the element.
571575

572576
<p> Styling an ‘<code class=css>::nth-fragment()</code>’ pseudo-element
573577
with the ‘<code class=property>content</code>’ property has no effect;

css3-overflow/Overview.src.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,14 @@ <h4 id="style-of-fragments">Styling of fragments</h4>
442442

443443
<p>
444444
Styling an ''::nth-fragment()'' pseudo-element with the 'overflow'
445-
property has no effect;
446-
the computed value of 'overflow' for the fragment box
447-
remains the same as the computed value of overflow for the element.
445+
property does take effect;
446+
if a <i>fragment box</i> has a
447+
computed value of 'overflow' other than ''fragments''
448+
then that fragment box is the last fragment.
449+
However, overriding ''overflow'' on the first fragment
450+
does not cause the <i>fragment box</i> not to exist;
451+
whether there are fragment boxes at all is determined by
452+
the computed value of overflow for the element.
448453
</p>
449454

450455
<p>

0 commit comments

Comments
 (0)