Skip to content

Commit 967c9f0

Browse files
committed
[css-overflow-3] Clarify Overflow Value Propagation
The wording in CSS2.1 was more precise than the one used here, so bring it back (with editorial modernization). Closes #1905
1 parent 62c528d commit 967c9f0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

css-overflow-3/Overview.bs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,14 @@ Overflow Value Propagation</h3>
375375

376376
UAs must apply the 'overflow' property
377377
set on the root element to the viewport.
378-
For HTML UAs,
379-
if this would result in the viewport having ''visible'' overflow,
380-
the UA must instead apply the 'overflow' property
381-
set on the <{body}> element to the viewport.
382-
In either case,
383-
the used value of 'overflow' for the element from which the value is propagated
384-
must evaluate to ''visible''.
378+
When the root element is an [[!HTML]] <{html}> element
379+
(including <a href="https://html.spec.whatwg.org/multipage/introduction.html#html-vs-xhtml">XML syntax for HTML</a>),
380+
and that element has a <{body}> element as a child,
381+
user agents must instead apply the 'overflow' property
382+
from the first such child element to the viewport,
383+
if the value on the root element is ''overflow/visible''.
384+
The ''overflow/visible'' value when used for the viewport must be interpreted as ''overflow/auto''.
385+
The element from which the value is propagated must have a used value for 'overflow' of ''overflow/visible''.
385386

386387
If this application would result in the viewport having ''visible'' overflow,
387388
the UA must instead treat the viewport as having ''overflow/auto'' overflow.

0 commit comments

Comments
 (0)