Changeset 272742 in webkit
- Timestamp:
- Feb 11, 2021, 11:33:25 AM (5 years ago)
- Location:
- trunk/Websites/webkit.org
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/webkit.org/ChangeLog
r272089 r272742 1 2021-02-11 Martin Robinson <mrobinson@igalia.com> 2 3 scroll-snap demo should use new spec 4 https://bugs.webkit.org/show_bug.cgi?id=184046 5 6 Reviewed by Wenson Hsieh. 7 8 Update the scroll-snap demo to reflect the modern specification. This 9 demo isn't currently linked from the site, but if it's every linked again 10 it will now reflect the current specification. 11 12 This maintains the old CSS so that the demo continues to work with 13 old versions of Safari. 14 15 * demos/scroll-snap/index.html: Update the descriptions in the demo to reflect 16 the newest version of the specification. 17 1 18 2021-01-29 Beth Dakin <bdakin@apple.com> 2 19 -
trunk/Websites/webkit.org/demos/scroll-snap/index.html
r211282 r272742 292 292 </div> 293 293 <p>The CSS for the above container is:</p> 294 <pre>-webkit-scroll-snap-type: mandatory;<br>-webkit-scroll-snap-points-x: repeat(100%);</pre> 294 <pre>scroll-snap-type: x mandatory;</pre> 295 <p>The CSS for each of the container’s children is:</p> 296 <pre>scroll-snap-align: start;</pre> 295 297 296 298 <!-- Scroll snapping container using coordinates --> … … 350 352 </div> 351 353 <p>The CSS for the above container is:</p> 352 <pre> -webkit-scroll-snap-type:mandatory;</pre>354 <pre>scroll-snap-type: x mandatory;</pre> 353 355 <p>The CSS for each of the container’s children is:</p> 354 <pre> -webkit-scroll-snap-coordinate: 0% 0%;</pre>356 <pre>scroll-snap-align: start;</pre> 355 357 356 358 <!-- Centered scroll snapping container using coordinates --> … … 410 412 </div> 411 413 <p>The CSS for the above container is:</p> 412 <pre> -webkit-scroll-snap-type: mandatory;<br>-webkit-scroll-snap-destination: 50% 50%;</pre>414 <pre>scroll-snap-type: x mandatory;</pre> 413 415 <p>The CSS for each of the container’s children is:</p> 414 <pre> -webkit-scroll-snap-coordinate: 50% 50%;</pre>416 <pre>scroll-snap-align: center;</pre> 415 417 416 418 <!-- Centered scroll snapping container in 2D --> … … 424 426 </div> 425 427 <p>The CSS for the above container is:</p> 426 <pre> -webkit-scroll-snap-type: mandatory;<br>-webkit-scroll-snap-destination: 50% 50%;</pre>428 <pre>scroll-snap-type: both mandatory;</pre> 427 429 <p>The CSS for each of the container’s children is:</p> 428 <pre> -webkit-scroll-snap-coordinate: 50% 50%;</pre>430 <pre>scroll-snap-align: center;</pre> 429 431 430 432 <!-- Centered scroll snapping container in 2D, rotated --> … … 438 440 </div> 439 441 <p>The CSS for the above container is:</p> 440 <pre> -webkit-scroll-snap-type: mandatory;<br>-webkit-scroll-snap-destination: 50% 50%;<br>-webkit-transform: rotate(30deg);</pre>442 <pre>scroll-snap-type: both mandatory;<br>transform: rotate(30deg);</pre> 441 443 <p>The CSS for each of the container’s children is:</p> 442 <pre> -webkit-scroll-snap-coordinate: 50% 50%;</pre>444 <pre>scroll-snap-align: center;</pre> 443 445 444 446 <p id="nasa">Images from <a target="_blank" href="https://www.nasa.gov/multimedia/imagegallery/iotd.html">NASA’s image of the day gallery</a>.</p>
Note:
See TracChangeset
for help on using the changeset viewer.