[Webkit-unassigned] [Bug 271718] New: CSSOM selector text serialization misbehaves when there are more than 8192 tokens
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 26 12:45:39 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=271718
Bug ID: 271718
Summary: CSSOM selector text serialization misbehaves when
there are more than 8192 tokens
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: qianlangchen at apple.com
Created attachment 470609
--> https://bugs.webkit.org/attachment.cgi?id=470609&action=review
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.
--
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/20240326/db6402a9/attachment.htm>
More information about the webkit-unassigned
mailing list