Skip to content

Commit

Permalink
[css-overflow-3][css-overflow-4] Shift 'overflow' on replaced element…
Browse files Browse the repository at this point in the history
…s to L4 while details are being worked out. #7144
  • Loading branch information
fantasai committed Dec 31, 2022
1 parent 8082334 commit cee1bff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 24 deletions.
24 changes: 2 additions & 22 deletions css-overflow-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -481,25 +481,6 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
Choosing the appropriate behavior for each scrolling mechanism
is the responsibility of the UA.

ISSUE(7144): Applicability of 'overflow' to [=replaced elements=]
is still being worked out.

On [=replaced elements=],
the [=used values=]
of all computed values other than ''visible''
is ''overflow/clip''.
Host languages should define [=UA style sheet=] rules
that apply a default value of ''overflow/clip'' to such elements
and set their 'overflow-clip-margin' to ''overflow-clip-margin/content-box''.

Note: Application of 'overflow' to [=replaced elements=] was added
to allow images to paint effects outside their effective layout box;
the recommended UA style sheet rules are to effect their original behavior as a default.
See discussion in <a href="https://github.com/w3c/csswg-drafts/issues/7058">Issue 7059</a>
and <a href="https://github.com/w3c/csswg-drafts/issues/7144">Issue 7144</a>.
This is a change from <a href="https://www.w3.org/TR/CSS2/">CSS2.1</a>
and is at-risk.

<h3 id="static-media">
Overflow in Print and Other Static Media</h3>

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

If omitted,
defaults to ''overflow-clip-margin/padding-box'' on non-[=replaced=] elements,
or ''overflow-clip/content-box'' on [=replaced=] elements.
defaults to ''overflow-clip-margin/padding-box''.

: <dfn><<length [0,∞]>></dfn>
::
Expand Down
35 changes: 33 additions & 2 deletions css-overflow-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,32 @@ Scrolling and Clipping Overflow</h2>

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

<h3 id="overflow-control">
Managing Overflow: the 'overflow-x', 'overflow-y', and 'overflow' properties</h3>

This level extends the 'overflow-x' and 'overflow-y' properties
(and 'overflow' [=shorthand=])
to apply to [=replaced elements=].

On [=replaced elements=],
the [=used values=]
of all computed values other than ''visible''
is ''overflow/clip''.
Host languages should define [=UA style sheet=] rules
that apply a default value of ''overflow/clip'' to such elements
and set their 'overflow-clip-margin' to ''overflow-clip-margin/content-box''.

Note: Application of 'overflow' to [=replaced elements=] was added
to allow images to paint effects outside their effective layout box;
the recommended UA style sheet rules are to effect their original behavior as a default.
See discussion in <a href="https://github.com/w3c/csswg-drafts/issues/7058">Issue 7059</a>
and <a href="https://github.com/w3c/csswg-drafts/issues/7144">Issue 7144</a>.
This is a change from <a href="https://www.w3.org/TR/CSS2/">CSS2.1</a>
and is at-risk.

ISSUE(7144): Application of 'overflow' to [=replaced elements=]
is still being worked out.

<h3 id="overflow-clip-margin">
Expanding Clipping Bounds: the 'overflow-clip-margin-*' properties</h3>

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

<h3 id="changes-l3">
Expand Down

0 comments on commit cee1bff

Please sign in to comment.