w3c/csswg-drafts

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

Open

#1526 aperta il 13 giu 2017

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)HTML (545 fork)batch import
Help Wantedcssom-view-1

Metriche repository

Star
 (3546 star)
Metriche merge PR
 (Merge medio 87g 7h) (24 PR mergiate in 30 g)

Descrizione

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.

Guida contributor