Replies: 1 comment 2 replies
-
This generally sounds like an improvement, but compatibility needs to be carefully considered, as it would be a breaking change. For example, Not only is it a breaking change when upgrading Vue, but as not all browsers support this (Safari and Firefox currently do not), it would also be a breaking change when switching browsers. Right now I think the only safe way to expose this would be a new directive, maybe An alternative would be a modifier but that is not concise syntax for such a common feature: |
Beta Was this translation helpful? Give feedback.
-
Currently
v-show="condition"
is togglingdisplay: none
via inlinestyle=""
.https://web.dev/articles/content-visibility#hiding_content_with_content-visibility_hidden
https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility#using_hidden_to_manage_visibility
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_containment#skips_its_contents
https://drafts.csswg.org/css-contain/#skips-its-contents
https://css-tricks.com/almanac/properties/c/content-visibility/#aa-content-visibility-hidden
https://caniuse.com/css-content-visibility
Beta Was this translation helpful? Give feedback.
All reactions