Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: LayoutTests/fast/overflow/layout-overflow-not-affected-by-visual-overflow.html

Issue 959643002: Remove the overflowchanged event with a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <p>
3 This tests that layout overflow is computed correctly, even if the element
4 is not near the top-left corner of its ancestors and has visual overflow.
5 See crbug.com/254002.
6 </p>
7 <p id="result">PASS</p>
8 <div id="test"></div>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
12
13 document.getElementById('test').addEventListener('overflowchanged', function (e) {
14 // This element has no children. How could it possibly have layout overf low?
15 if (e.verticalOverflow || e.horizontalOverflow)
16 document.getElementById('result').innerHTML = 'FAIL';
17 }, false /* capture */);
18 </script>
19 <style>
20 #test {
21 width: 100px;
22 height: 100px;
23 background: yellow;
24 overflow: hidden;
25 box-shadow: 0px 0px 0px 1px #000; /* causes visual overflow */
26 }
27 </style>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698