RESOLVED FIXED 136345
Add 'initial' keyword support for scroll snap CSS properties
https://bugs.webkit.org/show_bug.cgi?id=136345
Summary Add 'initial' keyword support for scroll snap CSS properties
Jon Lee
Reported 2014-08-28 09:26:03 PDT
Scroll snap CSS properties need to support "initial" value
Attachments
Patch (48.52 KB, patch)
2015-03-06 14:50 PST, Brent Fulgham
dino: review+
Radar WebKit Bug Importer
Comment 1 2014-08-28 09:26:10 PDT
Brent Fulgham
Comment 2 2015-03-06 10:21:57 PST
According to CSS Scroll Snap Points Module Level 1, 6 November 2014 Draft: scroll-snap-type: none scroll-snap-points-x: none scroll-snap-points-y: none scroll-snap-destination: 0px 0px scroll-snap-coordinate: none
Brent Fulgham
Comment 3 2015-03-06 14:50:10 PST
Dean Jackson
Comment 4 2015-03-06 14:55:23 PST
Comment on attachment 248102 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248102&action=review > Source/WebCore/css/StyleBuilderCustom.h:1709 > +} > +inline void StyleBuilderCustom::applyInheritWebkitScrollSnapPointsX(StyleResolver& styleResolver) > +{ > + styleResolver.style()->setScrollSnapPointsX(styleResolver.parentStyle()->scrollSnapPointsX() ? std::make_unique<ScrollSnapPoints>(*styleResolver.parentStyle()->scrollSnapPointsX()) : nullptr); Maybe you want some blank lines to separate methods here. > Source/WebCore/css/StyleBuilderCustom.h:1721 > +#endif > + > + Two lines.
Brent Fulgham
Comment 5 2015-03-06 14:58:21 PST
Comment on attachment 248102 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248102&action=review >> Source/WebCore/css/StyleBuilderCustom.h:1709 >> + styleResolver.style()->setScrollSnapPointsX(styleResolver.parentStyle()->scrollSnapPointsX() ? std::make_unique<ScrollSnapPoints>(*styleResolver.parentStyle()->scrollSnapPointsX()) : nullptr); > > Maybe you want some blank lines to separate methods here. OK! >> Source/WebCore/css/StyleBuilderCustom.h:1721 >> + > > Two lines. OK!
Brent Fulgham
Comment 6 2015-03-06 15:37:12 PST
The test failures on mac/mac-wk2 are because I forgot to rebaseline the scroll-snap-property-computed-styles test after correcting the 'initial' case. I'll correct while landing.
Brent Fulgham
Comment 7 2015-03-06 15:40:20 PST
Note You need to log in before you can comment on or make changes to this bug.