conformance · v155
v155 · margin-trim — conformance probe
7 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.
0
pass
0
fail
0
blocked
7
total
| id | contract | kind | verdict | detail |
|---|---|---|---|---|
margin-trim-block-parses |
margin-trim: block is accepted. spec ↗ | script | … | |
margin-trim-inline-parses |
margin-trim: inline is accepted, for containers laying children out in the inline direction. spec ↗ | script | … | |
margin-trim-single-edges-parse |
The single-edge values block-start, block-end, inline-start and inline-end are all accepted. spec ↗ | script | … | |
margin-trim-none-is-the-initial-value |
The initial value is none, so adding the property to a stylesheet cannot change a container that does not opt in. spec ↗ | script | … | |
margin-trim-block-removes-both-block-edges |
On a block container, margin-trim: block must remove the first child's block-start margin and the last child's block-end margin, measured from the rendered boxes. This is the behaviour, not just the parse. spec ↗ | script | … | |
margin-trim-leaves-sibling-margins-alone |
Trimming must affect only the margins that meet the container's edge. The gap between two adjacent children must be unchanged, or the property would be collapsing the layout rather than trimming it. spec ↗ | script | … | |
margin-trim-block-start-leaves-the-end-edge |
A single-edge value must trim only that edge: with block-start the trailing margin survives. spec ↗ | script | … |