Skip to content

Commit cd5d6f0

Browse files
committed
simplifying element query demo
1 parent 884f984 commit cd5d6f0

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

test/element-query.js

-34
Original file line numberDiff line numberDiff line change
@@ -122,39 +122,6 @@ export default () => `
122122
}
123123
`)}
124124
125-
/* Min-scroll-y */
126-
${element('.min-scroll-y', {minScrollY: 50}, `
127-
:self {
128-
background: greenyellow;
129-
border-color: limegreen;
130-
}
131-
`)}
132-
133-
/* Max-scroll-y */
134-
${element('.max-scroll-y', {maxScrollY: 50}, `
135-
:self {
136-
background: greenyellow;
137-
border-color: limegreen;
138-
}
139-
`)}
140-
141-
/* Min-scroll-x */
142-
${element('.min-scroll-x', {minScrollX: 50}, `
143-
:self {
144-
background: greenyellow;
145-
border-color: limegreen;
146-
}
147-
`)}
148-
149-
/* Max-scroll-x */
150-
${element('.max-scroll-x', {maxScrollX: 50}, `
151-
:self {
152-
background: greenyellow;
153-
border-color: limegreen;
154-
}
155-
`)}
156-
157-
158125
/* Square Orientation */
159126
${element('.square', {orientation: 'square'}, `
160127
:self {
@@ -176,7 +143,6 @@ export default () => `
176143
}
177144
`)}
178145
179-
180146
/* Min-aspect ratio */
181147
${element('.minaspectratio', {minAspectRatio: 16/9}, `
182148
:self {

test/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -206,5 +206,6 @@ <h3>max-aspect-ratio</h3>
206206
import scrollStyles from './element-query-scroll.js'
207207

208208
jsincss(stylesheet)
209-
jsincss(scrollStyles, ['[class*="-scroll-"]'], ['scroll'])
209+
jsincss(scrollStyles, window, ['load'])
210+
jsincss(scrollStyles, '[class*="-scroll-"]', ['scroll'])
210211
</script>

0 commit comments

Comments
 (0)