Closed Bug 1932009 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 49251 - [Gap Decorations]: Introduce ColumnRuleWidth on ComputedStyle

Categories

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

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Sam Davis Omekara (from Dev Box) <samomekarajr@microsoft.com> wrote:

[Gap Decorations]: Introduce ColumnRuleWidth on ComputedStyle

This CL introduces a new data structure to extend the ColumnRuleWidth
property for the gap decorations feature. Previously, the
column-rule-width property could hold only a single width value.
However, with the gap decorations feature, this property can now hold
multiple values. The CL utilizes the GapDataList template data
structure to store these values in the computed style object.
Additionally, sites that expect a single width value have been updated
to call GetLegacyValue(), which returns the single width.

The CL also updates the parsing logic to return nullptr when no values
are present, allowing the use of the default value.

The code is exercised through the gap-decorations-width-computed.html
test.

Bug: 357648037
Change-Id: I5a28f332c57b16f90d7647c4b601b6eb32f7bb6d

Reviewed-on: https://chromium-review.googlesource.com/5967393
WPT-Export-Revision: 29e612958736cc14f2eebc2742bf956b3a7f07b5

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

CI Results

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

Total 1 tests and 8 subtests

Status Summary

Firefox

OK : 1
PASS: 2
FAIL: 6

Chrome

OK : 1
PASS: 2
FAIL: 6

Safari

OK : 1
PASS: 2
FAIL: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /css/css-gaps/tentative/parsing/gap-decorations-width-computed.html [wpt.fyi]
    • Property column-rule-width value '2px 4px 6px': FAIL (Chrome: FAIL, Safari: FAIL)
    • Property column-rule-width value 'repeat(4, 2px)': FAIL (Chrome: FAIL, Safari: FAIL)
    • Property column-rule-width value 'repeat(auto, 10px)': FAIL (Chrome: FAIL, Safari: FAIL)
    • Property column-rule-width value 'repeat(calc(5 + 3), 10px)': FAIL (Chrome: FAIL, Safari: FAIL)
    • Property column-rule-width value 'repeat(5, 10px calc(10px + 0.5em))': FAIL (Chrome: FAIL, Safari: FAIL)
    • Property column-rule-width value 'repeat(auto, min(5px, 10px)) repeat(5, 10px) calc(10px + 0.5em)': FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2c58a9927b34 [wpt PR 49251] - [Gap Decorations]: Introduce ColumnRuleWidth on ComputedStyle, a=testonly https://hg.mozilla.org/integration/autoland/rev/e48c6e6ed430 [wpt PR 49251] - Update wpt metadata, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1ae3fe1baada [wpt PR 49251] - [Gap Decorations]: Introduce ColumnRuleWidth on ComputedStyle, a=testonly https://hg.mozilla.org/integration/autoland/rev/fe692d6849c2 [wpt PR 49251] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.