Changeset 211282 in webkit


Ignore:
Timestamp:
Jan 27, 2017 7:58:05 AM (7 years ago)
Author:
Wenson Hsieh
Message:

Unreviewed, update scroll snapping demos to use current Module 1 spec

  • demos/scroll-snap/index.html:

Adopt the new CSS properties scroll-snap-type and scroll-snap-align.

Location:
trunk/Websites/webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/webkit.org/ChangeLog

    r211251 r211282  
     12017-01-27  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Unreviewed, update scroll snapping demos to use current Module 1 spec
     4
     5        * demos/scroll-snap/index.html:
     6
     7        Adopt the new CSS properties scroll-snap-type and scroll-snap-align.
     8
    192017-01-26  Wenson Hsieh  <wenson_hsieh@apple.com>
    210
  • trunk/Websites/webkit.org/demos/scroll-snap/index.html

    r189835 r211282  
    124124        #snap-scroll-container {
    125125            -webkit-scroll-snap-type: mandatory;
    126             scroll-snap-type: mandatory;
     126            scroll-snap-type: x mandatory;
    127127            -webkit-scroll-snap-points-x: repeat(100%);
    128128            scroll-snap-points-x: repeat(100%);
    129129        }
    130130
     131        #snap-scroll-container > .child {
     132            scroll-snap-align: start;
     133        }
     134
    131135        #snap-scroll-container-coordinates {
    132136            -webkit-scroll-snap-type: mandatory;
    133             scroll-snap-type: mandatory;
     137            scroll-snap-type: x mandatory;
    134138        }
    135139
     
    137141            -webkit-scroll-snap-coordinate: 0% 0%;
    138142            scroll-snap-coordinate: 0% 0%;
     143            scroll-snap-align: start;
    139144        }
    140145
     
    142147            width: 402px;
    143148            -webkit-scroll-snap-type: mandatory;
    144             scroll-snap-type: mandatory;
     149            scroll-snap-type: x mandatory;
    145150            -webkit-scroll-snap-destination: 50% 50%;
    146151            scroll-snap-destination: 50% 50%;
     
    150155            -webkit-scroll-snap-coordinate: 50% 50%;
    151156            scroll-snap-coordinate: 50% 50%;
     157            scroll-snap-align: center;
    152158        }
    153159
     
    182188        #snap-scroll-container-2D-rotated {
    183189            -webkit-scroll-snap-type: mandatory;
    184             scroll-snap-type: mandatory;
     190            scroll-snap-type: both mandatory;
    185191            -webkit-scroll-snap-destination: 50% 50%;
    186192            scroll-snap-destination: 50% 50%;
     
    197203            width: 400px;
    198204            height: 400px;
     205            scroll-snap-align: center;
    199206        }
    200207
Note: See TracChangeset for help on using the changeset viewer.