Closed Bug 2095221 Opened 10 days ago Closed 8 days ago

[wpt-sync] Sync PR 65039 - Invalidate layout when gap rules become visible

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 65039 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/65039
Details from upstream follow.

Rune Lillesveen <futhark@chromium.org> wrote:

Invalidate layout when gap rules become visible

Layout only populates GapGeometry when HasGapRule() is true. Previously,
DiffNeedsFullLayout() only triggered full layout when column-rule-style
or row-rule-style changed from initial 'none', and only those properties
invalidated the gap-decorations diff flag.

However, HasColumnRule() and HasRowRule() also depend on rule width
being non-zero and rule color not being fully transparent (including
via currentcolor).

Add gap-decorations invalidation to column-rule-color, row-rule-color,
column-rule-width, and row-rule-width, and trigger full layout in
DiffNeedsFullLayout() when HasColumnRule() or HasRowRule() changes from
false to true on gap-decorations or currentcolor differences.

Bug: 583927736
Change-Id: Icfbcf719a582a8d45aee745c42e95ba3ec2754d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8796986
Reviewed-by: Javier Contreras \<javiercon@microsoft.com>
Commit-Queue: Rune Lillesveen \<futhark@chromium.org>
Auto-Submit: Rune Lillesveen \<futhark@chromium.org>
Commit-Queue: Javier Contreras \<javiercon@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1742307}

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests

Status Summary

Firefox

FAIL: 2

Chrome

FAIL: 2

Safari

FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.