WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
187718
[css-counters][css-display-contents] "display: contents" breaks counter incrementing???
https://bugs.webkit.org/show_bug.cgi?id=187718
Summary
[css-counters][css-display-contents] "display: contents" breaks counter incre...
jonjohnjohnson
Reported
2018-07-16 17:46:34 PDT
CSS counters break, at least do not increment, when using "display: contents" on the elements ancestor within the "counter-reset" container. testcase ->
http://jsfiddle.net/5rcjk9gv/3/
Test case is straightforward, the first box does not use display: contents, the second box uses it on ancestors of the items that want access to the incremented counter value, but it's broken :( This isn't broken in chrome or firefox.
Attachments
Add attachment
proposed patch, testcase, etc.
jonjohnjohnson
Comment 1
2018-07-16 17:52:34 PDT
Sorry testcase url is ->
http://jsfiddle.net/5rcjk9gv/4/
jonjohnjohnson
Comment 2
2018-07-17 17:07:42 PDT
Pertinent (open) issue in csswg drafts relating to display box generation and counter interactions, though not exactly about the bug here in safari...
https://github.com/w3c/csswg-drafts/issues/674
Kyle Bavender
Comment 3
2020-01-27 06:23:51 PST
Confirmed this is still an issue with Safari as of 13.0.4. Does not match either Chrome or Firefox's behavior.
Karl Dubost
Comment 4
2024-10-10 20:50:11 PDT
The testcase in
https://jsfiddle.net/5rcjk9gv/4/
gives the same results on Safari Technology Preview 205 20621.1.2.111.4 Firefox Nightly 133.0a1 13324.10.7 Google Chrome Canary 131.0.6768.0 6768.0 with: 1 2 3 1 2 3 I'm closing. If the issue still persists this needs a new test case illustrating the problem. Please do not hesitate to open a new bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug