SWE-Rebench v2 hard task
harbor run -t ibragim-badertdinov/ubugeeei-prod__vize-1265harbor download ibragim-badertdinov/ubugeeei-prod__vize-1265fix(atelier_ssr): v-show on a non-root element with an existing style attr/:style binding emits a duplicate style attribute, breaking display:none hiding
crates/vize_atelier_ssr/src/codegen/element/plain.rs:490 (process_v_show_on_element unconditionally appends a standalone style="display: none;" chunk; its element param is unused)crates/vize_atelier_ssr/src/codegen/element/plain.rs:245-254 (collect_element_directive_attr — the single-root/inherit_attrs path that correctly merges into one style binding via _mergeProps; reference for the fix)process_v_show_on_element (used on every non-fallthrough-root element) emits a standalone style="display: none;" chunk instead of merging v-show into the element's existing style. When the element already has a static style attribute or a :style binding, the generated HTML contains TWO style attributes. The HTML parser keeps the FIRST, so display:none is dropped and v-show fails to hide the element (or, in the :style case, the display:none chunk renders first and the bound style is silently dropped). The sibling single-root path already merges correctly via _mergeProps, proving the element-level path is the buggy one.
<template>
<div class="wrapper">
<span style="color:red" v-show="ok">x</span>
</div>
</template>
<span style="color:red"${((_ctx.ok) ? "" : " style=\"display: none;\"")}>
// when ok===false -> <span style="color:red" style="display: none;">x</span> ; browser keeps the first, display:none ignored
<span v-show="ok" :style="{ color }"> likewise emits two style attributes.
Vue's SSR ssrTransformShow rewrites v-show into the single style binding (style=[existing, expr ? null : {display:'none'}]) so there is exactly one style attribute.
In process_v_show_on_element (plain.rs:479-493), inspect the element for an existing static style attr or :style binding and merge (expr ? null : { display: 'none' }) into a single style binding, reusing the merge logic already present in the single-root path (collect_element_directive_attr, plain.rs:245-254).
No new interfaces are introduced.