W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

Re: [csswg-drafts] [cssom] getComputedStyle for ::before::marker or ::after::marker (#4456)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Mon, 28 Oct 2019 16:59:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-547044723-1572281963-sysbot+gh@w3.org>
Regarding these two options:
getComputedStyle(elt, "::before::marker")
getComputedStyle(elt, "::before", "::marker")

My first concern for the second case is that it is bad for compatibility/progressive enhancement: existing browsers will silently ignore the final parameter & just return the `::before` styles, with no way to catch the difference.

However, now that I actually [test it](https://codepen.io/AmeliaBR/pen/ZEEJeWm), it seems like the results for unrecognized selector strings aren't actually useful for catching the difference, either! See discussion in #3980.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4456#issuecomment-547044723 using your GitHub account
Received on Monday, 28 October 2019 16:59:27 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:55 UTC