- From: Koji Ishii <kojii@chromium.org>
- Date: Wed, 19 Apr 2017 14:06:46 +0900
- To: public-test-infra <public-test-infra@w3.org>
Received on Wednesday, 19 April 2017 05:07:56 UTC
Hi all, Sorry if this was discussed before, but is there a recommended way to force layout in a test? A common use case is to test invalidation of a CSS properties, such as: <style> #e { a-css-property: abc; } </style> <div id=e></div> <script> window.onload = function () { /* force layout here */ e.style.aCssProperty = 'xyz'; } </script> and this should render the same as: <style> #e { a-css-property: xyz; } </style> In Blink and WebKit, it's known that `document.body.offsetTop` forces layout, and this technique is used in some internal tests. Since such tests are useful for other implementations too, I wonder if there's a good way to make such tests interoperable and upstream to wpt. Opinions appreciated in advance.
Received on Wednesday, 19 April 2017 05:07:56 UTC