Skip to content

Commit

Permalink
Updated CSS Scroll Snap 2
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Jul 20, 2024
1 parent 04e9f63 commit 0fcfb50
Showing 1 changed file with 23 additions and 70 deletions.
93 changes: 23 additions & 70 deletions tests/css-scroll-snap-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,6 @@ export default {
stability: 'experimental',
},
properties: {
'scroll-start': {
links: {
dev: '#scroll-start',
},
tests: [
'auto',
'start',
'end',
'center',
'left',
'right',
'top',
'bottom',
'100px',
'10%',
'100px 10%',
],
},
'scroll-start-target': {
links: {
dev: '#scroll-start-target',
Expand All @@ -34,58 +16,6 @@ export default {
'auto',
],
},
'scroll-start-x': {
links: {
dev: '#scroll-start-longhands-physical',
},
tests: [
'auto',
'start',
'end',
'center',
'100px',
'10%',
],
},
'scroll-start-y': {
links: {
dev: '#scroll-start-longhands-physical',
},
tests: [
'auto',
'start',
'end',
'center',
'100px',
'10%',
],
},
'scroll-start-inline': {
links: {
dev: '#scroll-start-longhands-logical',
},
tests: [
'auto',
'start',
'end',
'center',
'100px',
'10%',
],
},
'scroll-start-block': {
links: {
dev: '#scroll-start-longhands-logical',
},
tests: [
'auto',
'start',
'end',
'center',
'100px',
'10%',
],
},
},
selectors: {
':snapped': {
Expand Down Expand Up @@ -119,4 +49,27 @@ export default {
tests: ':snapped-block',
},
},
interfaces: {
SnapEvent: {
links: {
dev: '#snap-events',
mdnGroup: 'DOM',
},
tests: ['snapTargetBlock', 'snapTargetInline'],
interface: function() {
return new SnapEvent('scrollsnapchange');
},
},
Element: {
links: {
tr: '#interface-globaleventhandlers',
dev: '#interface-globaleventhandlers',
mdnGroup: 'DOM',
},
tests: ['onsnapchanged', 'onsnapchanging'],
interface: function(style) {
return document.body;
},
}
},
};

0 comments on commit 0fcfb50

Please sign in to comment.