Skip to content

Support the full CSS font-weight grammar - #4369

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/css-font-weight
Sep 11, 2026
Merged

vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/css-font-weight

Conversation

@vogella

@vogella vogella commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The CSS engine only understood the literal bold for font-weight; every other value, including 600 or bolder, cleared the bold bit. In the font shorthand a bare number was always read as a size and lighter as a family name, so both dropped the weight silently.

font-weight now accepts 1 to 1000 plus normal, bold, bolder and lighter, with the relative keywords resolved against the inherited weight. SWT fonts have no weight axis, so 600 and above select the bold face and everything below the regular one. In the shorthand a bare 100 to 900 is a weight. This makes stylesheets written against standard CSS behave as expected instead of ending up lighter than intended.

Only the literal 'bold' had an effect, every other value cleared the bold
bit, so 'font-weight: 600' rendered lighter than bold. In the font
shorthand a bare number was taken as a size and 'lighter' as a family
name, so both lost their weight.

font-weight now accepts 1 to 1000 plus normal, bold, bolder and lighter.
SWT fonts have no weight axis, so 600 and above select a bold face. In
the shorthand a bare 100 to 900 is a weight.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   861 files  + 3     861 suites  +3   54m 32s ⏱️ - 1m 27s
 8 330 tests +16   8 087 ✅ +16  243 💤 ±0  0 ❌ ±0 
20 859 runs  +48  20 189 ✅ +48  670 💤 ±0  0 ❌ ±0 

Results for commit 34c5706. ± Comparison against base commit 9cc61ad.

@vogella
vogella merged commit 076a5b2 into eclipse-platform:master Sep 11, 2026
18 checks passed
@vogella
vogella deleted the lv/css-font-weight branch September 11, 2026 08:49
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