w3c/csswg-drafts

[cssom-view] "Elements and viewports have an associated scrol..."

Open

#1,526 创建于 2017年6月13日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)HTML (3,546 star) (545 fork)batch import
Help Wantedcssom-view-1

描述

https://drafts.csswg.org/cssom-view/#terminology

Elements and viewports have an associated scrolling box if has a scrolling mechanism or it overflows its content area and the used value of the overflow-x or overflow-y property is hidden. [CSS3-BOX]

An element is potentially scrollable if all of the following conditions are true:​

The element has an associated CSS layout box. The element is not the HTML body element, or it is and the root element’s used value of the overflow-x or overflow-y properties is not visible. The element’s used value of the overflow-x or overflow-y properties is not visible. Note:​ An element that is potentially scrollable might not have a scrolling box. For instance, it could have overflow set to auto but not have its content overflowing its content area.

The definition of scrolling box looks wrong. Certainly scroll and auto should also cause a scrolling box.

The definition of potentially scrollable also looks wrong w.r.t. overflow: clip.

贡献者指南