Skip to content

Master style fix ged#1971

Merged
mcm-odoo merged 1 commit into
masterfrom
master-style-fix-ged
Jul 1, 2026
Merged

Master style fix ged#1971
mcm-odoo merged 1 commit into
masterfrom
master-style-fix-ged

Conversation

@ged-odoo

@ged-odoo ged-odoo commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

updateStyle only re-applies style properties whose string value changed.
This is unsafe with CSS shorthands: re-setting a shorthand (e.g.
`background`, `margin`) resets the longhands it covers, so a following
longhand override with an unchanged value would be skipped by the diff
and silently clobbered.

For instance, `background: <dynamic>; background-color: red;` would lose
its red background-color whenever the dynamic part changed.

Fix: once any property has been re-applied, re-apply every following
property too (declaration order), matching a fresh setStyle.
@ged-odoo ged-odoo force-pushed the master-style-fix-ged branch from 1fbf0be to 37020e8 Compare July 1, 2026 13:07
@mcm-odoo mcm-odoo merged commit 0bf448b into master Jul 1, 2026
2 checks passed
@mcm-odoo mcm-odoo deleted the master-style-fix-ged branch July 1, 2026 13:15
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.

2 participants