W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [cssom] Throwing on invalid pseudo-elements in getComputedStyle is not web-compatible (#6501)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Aug 2021 16:27:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-896970830-1628699237-sysbot+gh@w3.org>
Both of the cases of `getComputedStyle(something, "height")` I found come from [here](https://github.com/vercel/next.js/blob/fa01a1593e4ba56357c04bcb506e5e41b038d836/packages/next/client/index.tsx#L769) (which does nothing btw, that line of code is just useless, I'll send a PR to remove it). So at least returning an empty style there seems ok.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6501#issuecomment-896970830 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 11 August 2021 16:27:20 UTC

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