[Webkit-unassigned] [Bug 263960] [CSSOM] Stylesheet::insertRule shoud return index on successful insertion

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 31 02:44:45 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=263960

--- Comment #2 from Matthieu Dubet <m_dubet at apple.com> ---
It's already the case 

https://github.com/WebKit/WebKit/blob/399d66f88e336da795cf2ed2836dee80af046b19/Source/WebCore/css/CSSStyleSheet.cpp#L367


And addRule returns -1 per spec

https://drafts.csswg.org/cssom/#insert-a-css-rule:~:text=index%20as%20arguments.-,Return%20%2D1.,-Authors%20should%20not

-- 
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/20231031/85735dff/attachment.htm>


More information about the webkit-unassigned mailing list