[Webkit-unassigned] [Bug 281277] New: css counter value is not incremented while adding textContent into the DOM
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 10 20:39:30 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=281277
Bug ID: 281277
Summary: css counter value is not incremented while adding
textContent into the DOM
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
URL: https://codepen.io/ffoodd/pen/bGXBaMM
OS: Unspecified
Status: NEW
Keywords: BrowserCompat
Severity: Normal
Priority: P2
Component: WebKit Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: karlcow at apple.com
CC: m_dubet at apple.com, webkit-bug-importer at group.apple.com
Created attachment 472901
--> https://bugs.webkit.org/attachment.cgi?id=472901&action=review
testcase
1. With Safari
2. Open the testcase or https://codepen.io/ffoodd/pen/bGXBaMM
3. Look at the body
Expected:
The `test` string is every second.
and the counter is incremented by 1.
Safari:
* test string is added
* counter stays at 0
Firefox/Chrome
* test string is added
* counter is incremented by one at every iteration.
The counter is defined by
```
body { counter-reset: test; }
span { counter-increment: test; }
body::after {
content: counter(test);
display: block;
}
```
and the string is added by
```
setInterval(() => {
const t = document.createElement('span');
t.textContent = 'test';
document.body.append(t);
}, 1000);
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241011/d4ef9563/attachment.htm>
More information about the webkit-unassigned
mailing list