Skip to content

Commit a679cd1

Browse files
committed
[css-overflow-3][css-images-4] Remove object-overflow and define overflow on replaced elements. w3c#7144
1 parent 683bde2 commit a679cd1

2 files changed

Lines changed: 21 additions & 51 deletions

File tree

css-images-4/Overview.bs

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,54 +2110,6 @@ Sizing Objects: the 'object-fit' property {#the-object-fit}
21102110
and then uses the values of several attributes on the root <code>&lt;svg></code> element to determine how to draw itself.
21112111

21122112

2113-
Overflowing Objects: the 'object-overflow' property {#the-object-overflow}
2114-
--------------------------------------------------------------------------
2115-
2116-
<pre class=propdef>
2117-
Name: object-overflow
2118-
Value: clip | visible
2119-
Initial: clip
2120-
Applies to: replaced elements
2121-
Inherited: no
2122-
Percentages: n/a
2123-
Computed value: as specified
2124-
Animation type: discrete
2125-
</pre>
2126-
2127-
The 'object-overflow' property specifies
2128-
how replaced elements render any content
2129-
that overflows their [=content box=].
2130-
2131-
<dl dfn-type=value dfn-for=object-overflow>
2132-
: <dfn>clip</dfn>
2133-
:: The box's content is clipped to its [=content box=],
2134-
and the UA must not allow the content to be scrolled by any means
2135-
to display the overflowing content.
2136-
2137-
Note: Replaced elements can render their contents in any way they wish;
2138-
for example, the content <em>itself</em> might be scrollable
2139-
and provide scrollbars and similar affordances,
2140-
such as the contents of an HTML <{iframe}> element.
2141-
But if that content rectangle overflows the content box
2142-
of the element,
2143-
<em>it</em> must not expose the overflowing parts of itself
2144-
in any way.
2145-
2146-
: <dfn>visible</dfn>
2147-
:: There is no special handling of overflow;
2148-
that is, the box’s content is rendered outside the box
2149-
if positioned there.
2150-
The box is not a [=scroll container=].
2151-
2152-
Any content that as a result
2153-
is rendered outside of the [=content box=]
2154-
is treated as [=ink overflow=].
2155-
</dl>
2156-
2157-
<div class=example>
2158-
Issue: example here, showing a combo with object-view-box to get an image of something with a built-in shadow to render the shadow outside of the box.
2159-
</div>
2160-
21612113

21622114

21632115
Image Processing {#image-processing}

css-overflow-3/Overview.bs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
337337
Name: overflow-x, overflow-y
338338
Value: visible | hidden | clip | scroll | auto
339339
Initial: ''visible''
340-
Applies to: block containers [[!CSS2]], flex containers [[!CSS3-FLEXBOX]], and grid containers [[!CSS3-GRID-LAYOUT]]
340+
Applies to: block containers [[!CSS2]], flex containers [[!CSS3-FLEXBOX]], grid containers [[!CSS3-GRID-LAYOUT]], and [=replaced=] elements
341341
Inherited: no
342342
Percentages: N/A
343-
Computed value: as specified, except with ''visible''/''clip'' computing to ''overflow/auto''/''hidden'' (respectively) if one of 'overflow-x' or 'overflow-y' is neither ''visible'' nor ''clip''
343+
Computed value: usually specified value, but see text
344344
Animation type: discrete
345345
</pre>
346346

@@ -375,6 +375,11 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
375375
the box’s content is rendered outside the box if positioned there.
376376
The box is not a <a>scroll container</a>.
377377

378+
If the element is [=replaced=],
379+
any overflow is [=ink overflow=].
380+
(Otherwise, it might be [=ink overflow=] or [=scrollable overflow=],
381+
depending on what precisely is overflowing.)
382+
378383
<dt><dfn>hidden</dfn>
379384
<dd>
380385
This value indicates that
@@ -432,6 +437,15 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
432437
if there is overflow.
433438
</dl>
434439

440+
On non-[=replaced=] elements,
441+
the ''visible''/''overflow/clip'' values of 'overflow'
442+
compute to ''overflow/auto''/''hidden'' (respectively)
443+
if one of 'overflow-x' or 'overflow-y' is neither ''visible'' nor ''overflow/clip''.
444+
445+
On [=replaced elements=],
446+
all values other than ''visible''
447+
compute to ''overflow/clip''.
448+
435449
If the computed value of 'overflow' on a <a>block box</a>
436450
is neither ''overflow/visible'' nor ''overflow/clip'' nor a combination thereof,
437451
it [=establishes an independent formatting context=] for its contents.
@@ -440,6 +454,7 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
440454
(or ''visibility/collapse'' when it has the same effect as ''visibility/hidden''),
441455
and 'overflow' is either ''overflow/scroll'' or ''overflow/auto'',
442456
then:
457+
443458
* The user agent must not make any scrolling mechanism visible.
444459
To the extent that the scrolling mechanism that would normally be visible
445460
in the absence of ''visibility: hidden'' affects layout,
@@ -614,7 +629,10 @@ Expanding Clipping Bounds: the 'overflow-clip-margin' property</h3>
614629
::
615630
Specifies the box edge to use as the [=overflow clip edge=] origin,
616631
i.e. when the specified offset is zero.
617-
Defaults to ''overflow-clip-margin/padding-box'' if omitted.
632+
633+
If omitted,
634+
defaults to ''overflow-clip-margin/padding-box'' on non-[=replaced=] elements,
635+
or ''overflow-clip/content-box'' on [=replaced=] elements.
618636

619637
: <dfn><<length [0,∞]>></dfn>
620638
::

0 commit comments

Comments
 (0)