diff --git a/conformance/layout/position-requires-fixed/case.json b/conformance/layout/position-requires-fixed/case.json index 2c8ec75..5dbb470 100644 --- a/conformance/layout/position-requires-fixed/case.json +++ b/conformance/layout/position-requires-fixed/case.json @@ -4,6 +4,6 @@ "source": "source.medui", "expected": { "valid": false, - "diagnostics": [{ "code": "MEDUI-E051", "line": 7, "column": 9 }] + "diagnostics": [{ "code": "MEDUI-E054", "line": 7, "column": 9 }] } } diff --git a/spec/component-model.md b/spec/component-model.md index 9df2055..8155812 100644 --- a/spec/component-model.md +++ b/spec/component-model.md @@ -69,8 +69,11 @@ one would require the case schema to carry charset-package inputs, so that a cas sets exist before asserting that one does not. Node IDs are unique after synthetic row-background nodes are included. `position` requires fixed -dimensions and removes the node from flow. Positioned nodes must remain in their containing box and -must not overlap other non-background nodes. Images render at intrinsic dimensions. Text keys must +dimensions and removes the node from flow; a positioned node whose `width` or `height` is `Fill` +reports `MEDUI-E054`, which is distinct from layout overflow (`MEDUI-E051`) because nothing has +overflowed — the node's geometry simply cannot be resolved. Positioned nodes must remain in their +containing box and must not overlap other non-background nodes. Images render at intrinsic +dimensions. Text keys must exist for every approved locale, and every static or bounded-dynamic text value must fit its box in the worst approved case. Unknown theme tokens (`MEDUI-E030`), text keys (`MEDUI-E031`), CV checks (`MEDUI-E071`), and members outside a closed set (`MEDUI-E034`) fail compilation. Unknown diff --git a/spec/diagnostics.md b/spec/diagnostics.md index d56d14e..f3a4d7f 100644 --- a/spec/diagnostics.md +++ b/spec/diagnostics.md @@ -49,5 +49,6 @@ fails at every precision. | `MEDUI-E051` | layout | layout overflow | | `MEDUI-E052` | layout | surface exceeded | | `MEDUI-E053` | semantics | dynamic text escapes its charset | +| `MEDUI-E054` | layout | positioned node without fixed dimensions | | `MEDUI-E070` | safety | safety-critical node has no requirement | | `MEDUI-E071` | safety | unknown CV check |