[csswg-drafts] [cssom] getClientRects / getBoundingClientRect for pseudo elements (#6689)

WilcoFiers has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] getClientRects / getBoundingClientRect for pseudo elements ==
One of the big challenges in automated accessibility testing is to test for color contrast. And one of the biggest challenges in testing for color contrast is to figure out what is going on with pseudo elements on the page. It would be very helpful if, similar to `window.getComputedStyle` the `Element.getClientRects` and `Element.getBoundingClientRect` methods could accept an argument which tells the browser to return rect(s) of the pseudo element instead. This could look something like:

```js
const pseudoRects = elm.getClientRects(':after');
```

This would help tools like [axe-core](https://github.com/dequelabs/axe-core), and other accessibility tools, which currently just sort of have to guess what's going on with the pseudo elements based on computed styles.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6689 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 27 September 2021 14:55:11 UTC