We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd0e373 commit f802317Copy full SHA for f802317
test/unit/features/directives/style.spec.js
@@ -277,4 +277,22 @@ describe('Directive v-bind:style', () => {
277
expect(style.marginLeft).toBe('40px')
278
}).then(done)
279
})
280
+
281
+ it('should not merge for different adjacent elements', (done) => {
282
+ const vm = new Vue({
283
+ template: '<div>' +
284
+ '<section style="color: blue" v-if="!bool"></section>' +
285
+ '<div></div>' +
286
+ '<section style="margin: 0" v-if="bool"></section>' +
287
+ '</div>',
288
+ data: {
289
+ bool: false
290
+ }
291
+ }).$mount()
292
+ waitForUpdate(() => {
293
+ vm.bool = true
294
+ }).then(() => {
295
+ expect(vm.$el.children[1].style.color).not.toBe('blue')
296
+ }).then(done)
297
+ })
298
0 commit comments