Skip to content

[cssom-view] potentially scrollable should check computed value, not used value #1538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zcorpan opened this issue Jun 19, 2017 · 0 comments
Closed
Assignees

Comments

@zcorpan
Copy link
Member

zcorpan commented Jun 19, 2017

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

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.

Combining this with:

UAs must apply the overflow property set on the root element to the viewport. For HTML UAs, if this would result in the viewport having visible overflow, the UA must instead apply the overflow property set on the body element to the viewport. In either case, the used value of overflow for the element from which the value is propagated must evaluate to visible.

https://drafts.csswg.org/css-overflow-3/#overflow-propagation

means at least one of html or body will have used value 'visible'.

The spec should check the computed value instead.

cc @rune-opera

@zcorpan zcorpan self-assigned this Jun 19, 2017
triple-underscore added a commit to triple-underscore/triple-underscore.github.io that referenced this issue Jun 24, 2017
…ollable 他

[cssom-view]
Editorial: potentially scrollable is just for body elements
w3c/csswg-drafts@82ad89f4cfb8f62daa02bc85a19e5
1a59eb6b9f0

[cssom-view]
Check computed value for overflow-x/y in potentially scrollable
Fixes w3c/csswg-drafts#1538 .
w3c/csswg-drafts@2962f444c690a2f116b8dfcaa8378
5531cb65188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant