WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
271718
CSSOM selector text serialization misbehaves when there are more than 8192 tokens
https://bugs.webkit.org/show_bug.cgi?id=271718
Summary
CSSOM selector text serialization misbehaves when there are more than 8192 to...
Qianlang Chen
Reported
2024-03-26 12:45:39 PDT
Created
attachment 470609
[details]
Test case: Open to see instructions If a CSS rule is something like a1, a2, a3, a4, ......., a8190, a8191, a8192, a8193 { color: blue; } Where there are more than 8192 whitespace-separated tokens in the selector text, then that rule's `cssText` getter returns a serialized text that's missing some of the tokens, for instance something like a1, a2, a3, a4, ......., a8190, a8191 { color: blue; } (To clarify, the ellipses are NOT literal and actually include all the aXXX tokens) This behavior does not replicate on Firefox or Chrome. The specs (
https://drafts.csswg.org/cssom/
) does not seem to suggest there be any maximum limit of selector text length CSSOM should support. See attached for a downloadable HTML test case.
Attachments
Test case: Open to see instructions
(58.05 KB, text/html)
2024-03-26 12:45 PDT
,
Qianlang Chen
no flags
Details
Video demo: tokens start to disappear after having 8193 of them
(3.91 MB, video/mp4)
2024-03-26 12:46 PDT
,
Qianlang Chen
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Qianlang Chen
Comment 1
2024-03-26 12:46:33 PDT
Created
attachment 470610
[details]
Video demo: tokens start to disappear after having 8193 of them
Radar WebKit Bug Importer
Comment 2
2024-03-26 13:45:43 PDT
<
rdar://problem/125437578
>
Qianlang Chen
Comment 3
2024-03-27 14:16:41 PDT
This bug likely relates to
https://webkit.org/b/229218
(Style rules declared after a rule whose selector has over 8192 components are not shown correctly)
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