# Shared test vectors for `strip_css_hooks`, read by
# scripts/tests/test_element_groups.py and tests/common/element_groups.rs.
# Same format as tests/element_groups_vectors.txt.

@@ class_attribute_is_removed
<path class="edgePath x" d="M0 0"/>
@@ stripped
<path d="M0 0"/>
@@ end

@@ important_style_is_removed_and_the_attribute_stays
<rect fill="#f96" style="fill:#f96 !important"/>
@@ stripped
<rect fill="#f96"/>
@@ end

@@ plain_style_is_kept
<svg style="max-width: 10px;"><rect style="fill:red"/></svg>
@@ stripped
<svg style="max-width: 10px;"><rect style="fill:red"/></svg>
@@ end

@@ class_and_important_style_together
<g class="node default hot"><rect class="basic label-container" fill="#f96" stroke="#333" style="fill:#f96 !important;stroke:#333 !important" x="1"/></g>
@@ stripped
<g><rect fill="#f96" stroke="#333" x="1"/></g>
@@ end

@@ text_content_is_not_a_tag
<text x="1"> class="a" style="x !important"</text>
@@ stripped
<text x="1"> class="a" style="x !important"</text>
@@ end

@@ a_tag_inside_a_comment_is_stripped_too
<!-- <g class="a"> --><g class="a"/>
@@ stripped
<!-- <g> --><g/>
@@ end

@@ other_attributes_ending_in_class_are_kept
<g data-class="a" xclass="b" class="c"/>
@@ stripped
<g data-class="a" xclass="b"/>
@@ end

@@ empty_class_is_removed
<g class=""><rect/></g>
@@ stripped
<g><rect/></g>
@@ end
