Skip to content

Apply all three values of the CSS margin shorthand - #4430

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:vogella/margin-three-values
Open

vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:vogella/margin-three-values

Conversation

@vogella

@vogella vogella commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

The three-value form of the margin shorthand fell through into the two-value case because of a missing break, so margin: 10 15 20 ended up with a bottom margin of 10 instead of 20. This adds the break and a MarginTest case for three values, which the existing tests did not cover.

@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

   861 files  ±0     861 suites  ±0   1h 4m 20s ⏱️ + 19m 31s
 8 382 tests +1   8 140 ✅ +1  242 💤 ±0  0 ❌ ±0 
21 015 runs  +3  20 338 ✅ +3  677 💤 ±0  0 ❌ ±0 

Results for commit c2d2e82. ± Comparison against base commit 6052a83.

♻️ This comment has been updated with latest results.

The three-value case of `margin` was missing its `break` and fell through into the two-value case, so `margin: a b c` set the bottom margin to `a` instead of `c`.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@vogella
vogella force-pushed the vogella/margin-three-values branch from 0c3ef91 to c2d2e82 Compare October 5, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant