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

Side by Side Diff: content/test/data/accessibility/css/fixed-with-scrolling.html

Issue 2956053005: Keep track of fixed positioning in accessibility tree.
Patch Set: GetSimpleRelativeBounds, add failing test for fixed with transform Created 3 years, 5 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
OLDNEW
(Empty)
1 <!--
2 @BLINK-ALLOW:pageLocation*
3 @BLINK-ALLOW:scrollY=*
4 @WAIT-FOR:After
5 -->
6 <!DOCTYPE html>
7 <html>
8 <head>
9 <style>
10 body {
11 margin: 0;
12 padding: 0;
13 }
14 .big {
15 height: 1000px;
16 }
17 .fixed {
18 position: fixed;
19 left: 100px;
20 top: 100px;
21 }
22 </style>
23 </head>
24 <body>
25 <div class="big">Before</div>
26 <div class="fixed">Fixed</div>
27 <div id="after"></div>
28 <script>
29 // Wait for a short timeout to ensure the initial accessibility tree
30 // contains the unscrolled layout. Then scroll the page, and change
31 // the accessible text of an element to contain the text "After" to
32 // signal that the test is done running.
33 //
34 // NOTE: We use aria-label to trigger the test being done rather than
35 // adding text to the page, because adding text to the page triggers
36 // layout, and triggering layout would actually force an update of a
37 // fixed-position element! The purpose of this test is to ensure that
38 // fixed-position elements work correctly when scrolling, so we need to
39 // make sure we only scroll and not layout again.
40 window.setTimeout(function() {
41 window.scrollTo(0, 50);
42 document.getElementById("after").setAttribute("aria-label", "After");
43 }, 100);
44 </script>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698