Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"schema": "blocks-engine/php-transformer/parity-fixture/v1",
"name": "html-inline-split-grid-stays-group",
"description": "A two-child split container declared as an inline CSS grid stays a core/group so its source grid tracks are not replaced by Gutenberg Columns flex geometry.",
"source_reference": {
"repo": "php-transformer",
"path": "tests/fixtures/parity/html-inline-split-grid-stays-group.json",
"notes": "The generic split-layout class is intentionally eligible for the columns recognizer. Inline grid semantics must take precedence over that structural heuristic."
},
"legacy_comparison": {
"skip": true,
"reason": "Covers current PHP transformer layout classification behavior; no downstream legacy comparison."
},
"operation": "html_transformer.transform",
"input": {
"content": "<section class=\"feature-row\" style=\"display:grid;grid-template-columns:520px 520px;gap:64px;align-items:center\"><div class=\"feature-copy\"><h2>Fast setup</h2><p>Start with a stable foundation.</p></div><div class=\"feature-visual\"><p>Preview</p></div></section>"
},
"expected_blocks": [
{ "path": "blocks.0", "name": "core/group", "attrs": { "className": "feature-row" } },
{ "path": "blocks.0.innerBlocks.0", "name": "core/group", "attrs": { "className": "feature-copy" } },
{ "path": "blocks.0.innerBlocks.1", "name": "core/group", "attrs": { "className": "feature-visual" } }
],
"expected_fallbacks": [],
"expect": [
{ "path": "status", "assert": "equals", "value": "success" },
{ "path": "serialized_blocks", "assert": "contains", "value": "<!-- wp:group {\"className\":\"feature-row\"" },
{ "path": "serialized_blocks", "assert": "not_contains", "value": "<!-- wp:columns" },
{ "path": "fallbacks", "assert": "count", "count": 0 }
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
"source_reference": {
"repo": "php-transformer",
"path": "tests/fixtures/parity/html-resolved-split-grid-stays-group.json",
"notes": "Uses a generic split-layout class that the columns recognizer accepts without resolved-style awareness. The resolved CSS grid must take precedence over the class-name heuristic."
"notes": "Uses a generic split-layout class that the columns recognizer accepts without resolved-style awareness. The stylesheet-owned CSS grid must take precedence over the class-name heuristic."
},
"legacy_comparison": {
"skip": true,
"reason": "Covers current PHP transformer resolved-layout behavior; no downstream legacy comparison."
},
"operation": "html_transformer.transform",
"input": {
"content": "<section class=\"feature-row\" style=\"display:grid;grid-template-columns:520px 520px;gap:64px;align-items:center\"><div class=\"feature-copy\"><h2>Fast setup</h2><p>Start with a stable foundation.</p></div><div class=\"feature-visual\"><p>Preview</p></div></section>"
"content": "<section class=\"feature-row\"><div class=\"feature-copy\"><h2>Fast setup</h2><p>Start with a stable foundation.</p></div><div class=\"feature-visual\"><p>Preview</p></div></section>",
"options": {
"static_css": ".feature-row{display:grid;grid-template-columns:520px 520px;gap:64px;align-items:center}"
}
},
"expected_blocks": [
{ "path": "blocks.0", "name": "core/group", "attrs": { "className": "feature-row" } },
Expand Down
Loading