Closed Bug 1579599 Opened 7 years ago Closed 7 years ago

[wpt-sync] Sync PR 18915 - CSS: counter-reset/increment inherit clears old values

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Eric Willigers <ericwilligers@chromium.org> wrote:

CSS: counter-reset/increment inherit clears old values

When we update 'counter-increment' or 'counter-reset' to 'inherit',
we now overwrite the previously resolved values, instead of
merging in the parent values.

Existing Blink fails test with
FAIL Inheritance of counter-reset replaces existing value assert_equals: expected "first 1" but got "first 1 fourth 4"
FAIL Inheritance of counter-increment replaces existing value assert_equals: expected "second 2" but got "second 2 fifth 5"

Existing Safari fails test with
FAIL Inheritance of counter-reset replaces existing value assert_equals: expected "second 0 first 1" but got "second 0 fifth 0 first 1"
FAIL Inheritance of counter-increment replaces existing value assert_equals: expected "second 2 first 0" but got "second 2 fourth 0 first 0"

Bug: 1001776
Change-Id: Ic7279a84f022f0bc156bdab1a044b3403cb2c7ab
Reviewed-on: https://chromium-review.googlesource.com/1789213
WPT-Export-Revision: 1eed2f055a355c0f5a5a412f9f9231707da9a457

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Ran 1 tests and 2 subtests OK : 1 PASS : 2
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2ad2c75d2907 [wpt PR 18915] - CSS: counter-reset/increment inherit clears old values, a=testonly
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.