Closed Bug 2086682 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64165 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327781

Categories

(Core :: Layout: Generated Content, Lists, and Counters, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327781

WebKit export from bug: CSSCounterStyleRule.<!---->name setter does not update the name getter or cssText

<pre>
CSSCounterStyleRule.name setter does not update the name getter or cssText

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

StyleRuleCounterStyle stored the counter style name twice: in its own m_name
and in CSSCounterStyleDescriptors::m_name. CSSCounterStyleRule::setName()
only updated the descriptors' copy, while the name getter and cssText read the
rule's copy. After rule.name = &quot;bar&quot;, rule.name and rule.cssText still
reported the old name, while the counter style registry (which keys on the
descriptors' name) used the new one.

Drop StyleRuleCounterStyle::m_name and have name() return the descriptors'
name, so there is a single source of truth. Also remove the now-unneeded name
parameter from StyleRuleCounterStyle::create() and the unused
StyleRuleCounterStyle::setName().

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327781">https://bugs.webkit.org/show_bug.cgi?id=327781</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/324049@main">https://commits.webkit.org/324049@main</a>
</pre>

Component: web-platform-tests → Layout: Generated Content, Lists, and Counters
Product: Testing → Core

CI Results

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

Total 20 tests and 4 subtests

Status Summary

Firefox

OK : 1
PASS: 4[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, GitHub] 23[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 4

Safari

OK : 1
PASS: 1
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

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