Skip to content

Commit 4a71f42

Browse files
committed
[css-overflow] Add computed value logic for overflow and contain: paint
1 parent a32b4da commit 4a71f42

2 files changed

Lines changed: 161 additions & 677 deletions

File tree

css-overflow/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ type: dfn; spec:css-multicol-1; text:overflow column
2828
<pre class="anchors">
2929
url: http://www.w3.org/TR/2008/CR-css3-marquee-20081205/#the-overflow-style; type: property; text: overflow-style;
3030
url: http://dev.w3.org/csswg/selectors-3/#subject; type: dfn; text: subject;
31+
url: http://dev.w3.org/csswg/css-containment/#propdef-contain; type: property; text: contain
32+
url: http://dev.w3.org/csswg/css-containment/#paint-containment; type: dfn; text: paint containment
3133
</pre>
3234
<style>
3335
table.source-demo-pair {
@@ -420,6 +422,15 @@ Introduction</h2>
420422
then computed values are the cascaded values
421423
with ''overflow/visible'' changed to ''overflow/auto''.
422424
</li>
425+
<li>
426+
Otherwise, if both cascaded values are ''overflow/visible''
427+
and the computed value of 'contain' is
428+
one that activates <a>paint containment</a>
429+
(e.g. ''contain:strict''
430+
or ''contain: paint''
431+
or ''contain: layout paint''…),
432+
then the computed values of both 'overflow-x' and 'overflow-y'
433+
are changed to ''overflow/clip''.</li>
423434
<li>
424435
Otherwise, the computed values are as specified.
425436
</li>

0 commit comments

Comments
 (0)