W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2017

Re: [csswg-drafts] [css-values] Should viewport units still depend on scrollbar width for overflow:scroll?

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 30 Aug 2017 08:05:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-325914966-1504080268-sysbot+gh@w3.org>
The problem is that this introduce styling state that depends on other styling state. In particular, changing the overflow on the scroll root would mean recomputing every viewport unit in the document (even the ones higher up in the tree!).

Gecko relied on reconstructing the whole layout tree when this happenned, which happened to restyle the whole document.

As can be seen in http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=5339, this is now broken since the optimizations in https://bugzilla.mozilla.org/show_bug.cgi?id=1344398 landed, and on the new style system, which decouples styling from layout tree building, it's similarly broken.

GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1766#issuecomment-325914966 using your GitHub account
Received on Wednesday, 30 August 2017 08:05:32 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:17 UTC