[Webkit-unassigned] [Bug 243539] New: getComputedStyle(elt, pseudoElt) accepting all pseudo-elements with fewer than 2 preceding colons
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 4 06:20:20 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=243539
Bug ID: 243539
Summary: getComputedStyle(elt,pseudoElt) accepting all
pseudo-elements with fewer than 2 preceding colons
Product: WebKit
Version: Safari 15
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: zlip.792 at gmail.com
Hi Team,
Another test case from Chrome Bugs, where all browsers are different and I just wanted to share the latest share of Safari 15.6 on macOS 12.5:
Test Case - https://jsfiddle.net/rdb1jz8n/show
Chrome Bug - https://bugs.chromium.org/p/chromium/issues/detail?id=1197620
*** STEPS TO REPRODUCE ***
1) Run Test Case
2) Go to Console [Safari Developer Tools] and Run following:
getComputedStyle(document.getElementById("a"), "selection").color
getComputedStyle(document.getElementById("a"), ":selection").color
<> EXPECTED RESULTS:
"rgb(0, 0, 0)"
"rgb(0, 0, 0)"
<> ACTUAL RESULTS:
"rgb(255, 0, 0)"
"rgb(255, 0, 0)"
_________
All other browsers output:
Firefox Nightly 105 -> "rgb(0, 0, 0)" & "" (for first and second case respectively)
Chrome Canary 105 -> "rgb(255, 0, 0)" for both and matching Safari right now
______
Appreciate if we can align with web-spec and fix this across all browsers. If it is duplicate then please mark and if it is fixed upstream then please also mark duplicate in reference to other.
Thanks!
--
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/20220804/6dbb6e32/attachment-0001.htm>
More information about the webkit-unassigned
mailing list