Skip to content

[css-borders] Apply zoom to initial border and outline widths#59783

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7822379
May 11, 2026
Merged

[css-borders] Apply zoom to initial border and outline widths#59783
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7822379

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 11, 2026

Initial border widths and outline width are stored zoomed in
ComputedStyle. When CSS zoom changes the effective zoom during
cascade, explicitly default these non-inherited properties so
ApplyInitial paths run with the updated zoom.

Also build StyleResolver::initial_style_ with the current
InitialZoom() so page zoom and device scale factor changes can share
the zoom-adjusted initial border and outline data. Invalidate the cached
initial style when the initial zoom can change.

Bug: 509964628
Change-Id: I559694226f6be408fe16714cd44d05dd1966e399
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7822379
Commit-Queue: Peng Zhou <pengzhou@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1628461}

Initial border widths and outline width are stored zoomed in
`ComputedStyle`. When CSS zoom changes the effective zoom during
cascade, explicitly default these non-inherited properties so
`ApplyInitial` paths run with the updated zoom.

Also build `StyleResolver::initial_style_` with the current
`InitialZoom()` so page zoom and device scale factor changes can share
the zoom-adjusted initial border and outline data. Invalidate the cached
initial style when the initial zoom can change.

Bug: 509964628
Change-Id: I559694226f6be408fe16714cd44d05dd1966e399
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7822379
Commit-Queue: Peng Zhou <pengzhou@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1628461}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit c2d14ef into master May 11, 2026
37 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7822379 branch May 11, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants