Skip to content

Commit cee1bff

Browse files
committed
[css-overflow-3][css-overflow-4] Shift 'overflow' on replaced elements to L4 while details are being worked out. #7144
1 parent 8082334 commit cee1bff

File tree

2 files changed

+35
-24
lines changed

2 files changed

+35
-24
lines changed

css-overflow-3/Overview.bs

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -481,25 +481,6 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
481481
Choosing the appropriate behavior for each scrolling mechanism
482482
is the responsibility of the UA.
483483

484-
ISSUE(7144): Applicability of 'overflow' to [=replaced elements=]
485-
is still being worked out.
486-
487-
On [=replaced elements=],
488-
the [=used values=]
489-
of all computed values other than ''visible''
490-
is ''overflow/clip''.
491-
Host languages should define [=UA style sheet=] rules
492-
that apply a default value of ''overflow/clip'' to such elements
493-
and set their 'overflow-clip-margin' to ''overflow-clip-margin/content-box''.
494-
495-
Note: Application of 'overflow' to [=replaced elements=] was added
496-
to allow images to paint effects outside their effective layout box;
497-
the recommended UA style sheet rules are to effect their original behavior as a default.
498-
See discussion in <a href="https://github.com/w3c/csswg-drafts/issues/7058">Issue 7059</a>
499-
and <a href="https://github.com/w3c/csswg-drafts/issues/7144">Issue 7144</a>.
500-
This is a change from <a href="https://www.w3.org/TR/CSS2/">CSS2.1</a>
501-
and is at-risk.
502-
503484
<h3 id="static-media">
504485
Overflow in Print and Other Static Media</h3>
505486

@@ -630,7 +611,7 @@ Expanding Clipping Bounds: the 'overflow-clip-margin' property</h3>
630611
Value: <<visual-box>> || <<length [0,∞]>>
631612
Initial: ''0px''
632613
Inherited: no
633-
Applies to: all elements
614+
Applies to: boxes to which 'overflow' applies
634615
Computed value: the computed <<length>> and a <<visual-box>> keyword
635616
Animation type: per computed value if the <<visual-box>> values match; otherwise discrete
636617
</pre>
@@ -651,8 +632,7 @@ Expanding Clipping Bounds: the 'overflow-clip-margin' property</h3>
651632
i.e. when the specified offset is zero.
652633

653634
If omitted,
654-
defaults to ''overflow-clip-margin/padding-box'' on non-[=replaced=] elements,
655-
or ''overflow-clip/content-box'' on [=replaced=] elements.
635+
defaults to ''overflow-clip-margin/padding-box''.
656636

657637
: <dfn><<length [0,∞]>></dfn>
658638
::

css-overflow-4/Overview.bs

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,32 @@ Scrolling and Clipping Overflow</h2>
184184

185185
Issue: Copy [[css-overflow-3#overflow-properties|Level 3 content]] when final.
186186

187+
<h3 id="overflow-control">
188+
Managing Overflow: the 'overflow-x', 'overflow-y', and 'overflow' properties</h3>
189+
190+
This level extends the 'overflow-x' and 'overflow-y' properties
191+
(and 'overflow' [=shorthand=])
192+
to apply to [=replaced elements=].
193+
194+
On [=replaced elements=],
195+
the [=used values=]
196+
of all computed values other than ''visible''
197+
is ''overflow/clip''.
198+
Host languages should define [=UA style sheet=] rules
199+
that apply a default value of ''overflow/clip'' to such elements
200+
and set their 'overflow-clip-margin' to ''overflow-clip-margin/content-box''.
201+
202+
Note: Application of 'overflow' to [=replaced elements=] was added
203+
to allow images to paint effects outside their effective layout box;
204+
the recommended UA style sheet rules are to effect their original behavior as a default.
205+
See discussion in <a href="https://github.com/w3c/csswg-drafts/issues/7058">Issue 7059</a>
206+
and <a href="https://github.com/w3c/csswg-drafts/issues/7144">Issue 7144</a>.
207+
This is a change from <a href="https://www.w3.org/TR/CSS2/">CSS2.1</a>
208+
and is at-risk.
209+
210+
ISSUE(7144): Application of 'overflow' to [=replaced elements=]
211+
is still being worked out.
212+
187213
<h3 id="overflow-clip-margin">
188214
Expanding Clipping Bounds: the 'overflow-clip-margin-*' properties</h3>
189215

@@ -1823,8 +1849,13 @@ Recent Changes</h3>
18231849
<ul>
18241850
<li>Moved in the definition of 'text-overflow' from [[CSS-UI-4]].
18251851
<li>Moved the core definition of 'scrollbar-gutter' to [[CSS-OVERFLOW-3]]
1826-
(it will be copied back here once this specification is undiffed)
1827-
and shift exploratory 'scrollbar-gutter' extension ideas into an appendix.
1852+
(it will be copied back here once this specification is undiffed)
1853+
and shift exploratory 'scrollbar-gutter' extension ideas into an appendix.
1854+
<li>Defined extension of 'overflow' and 'overflow-clip-margin' to apply to [=replaced elements=].
1855+
How exactly this works is still <a href="https://github.com/w3c/csswg-drafts/issues/7144">still under discussion</a>.
1856+
(<a href="https://github.com/w3c/csswg-drafts/issues/7144">Issue 7144</a>)
1857+
<li>Defined [=longhands=] for 'overflow-clip-margin'.
1858+
(<a href="https://github.com/w3c/csswg-drafts/issues/7245">Issue 7245</a>)
18281859
</ul>
18291860

18301861
<h3 id="changes-l3">

0 commit comments

Comments
 (0)