- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Fri, 24 Apr 2020 17:45:47 +0000
- To: public-css-archive@w3.org
Seems to me this could cause a cycle in quirks mode: ```css html, body:scrolling-element { overflow: auto } body { overflow: visible } ``` If `body` is the `:scrolling-element`, then it gets `overflow: auto`. But then it becomes [potentially scrollable](https://drafts.csswg.org/cssom-view/#potentially-scrollable), so it stops being the [scrollingElement](https://drafts.csswg.org/cssom-view/#dom-document-scrollingelement). So then it stops matching `:scrolling-element`, and gets `overflow: visible` instead. But then it stops being potentially scrollable, so it becomes the scrollingElement again! Maybe `:scrolling-element` could only work in non-quirks mode, but then it basically becomes `:root:not(:quirks-mode)`. What's the use-case for that? -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5000#issuecomment-619156051 using your GitHub account
Received on Friday, 24 April 2020 17:45:48 UTC