WebKit Bugzilla
Attachment 359159 Details for
Bug 191816
: [css-scroll-snap] scroll-snap-align not honored on child with non-visible overflow
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testcase
scroll-snap-overflow.html (text/html), 895 bytes, created by
Frédéric Wang (:fredw)
on 2019-01-15 08:03:36 PST
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Frédéric Wang (:fredw)
Created:
2019-01-15 08:03:36 PST
Size:
895 bytes
patch
obsolete
><!DOCTYPE html> ><html> > <head> > <title>Scroll snap overflow</title> > <meta charset="utf-8"/> > <meta name="viewport" content="width=device-width"> > <style> > .container { > overflow-y: auto; > width: 200px; > height: 200px; > background: lightgreen; > -webkit-overflow-scrolling: touch; > scroll-snap-type: y mandatory; > } > .container > div { > width: 100px; > height: 100px; > margin: 50px; > background: blue; > scroll-snap-align: start; > } > div.scrollableChild { > overflow: hidden; > background: red; > } > </style> > </head> > <body> > <p>It should be possible to scroll the following container vertically so that it snaps to the red child:</p> > <div class="container"> > <div></div> > <div class="scrollableChild"></div> > <div></div> > </div> > </body> ></html>
<!DOCTYPE html> <html> <head> <title>Scroll snap overflow</title> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width"> <style> .container { overflow-y: auto; width: 200px; height: 200px; background: lightgreen; -webkit-overflow-scrolling: touch; scroll-snap-type: y mandatory; } .container > div { width: 100px; height: 100px; margin: 50px; background: blue; scroll-snap-align: start; } div.scrollableChild { overflow: hidden; background: red; } </style> </head> <body> <p>It should be possible to scroll the following container vertically so that it snaps to the red child:</p> <div class="container"> <div></div> <div class="scrollableChild"></div> <div></div> </div> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 191816
: 359159 |
360715
|
360748
|
361053