[webvtt] Unclear how specificity of ::cue() and ::cue-region() should be calculated (#499)

dd8 has just created a new issue for https://github.com/w3c/webvtt:

== Unclear how specificity of ::cue() and ::cue-region() should be calculated ==
Should the selectors passed as an argument be taken into consideration or ignored when calculating specificity?

```
::cue /* a=0 b=0 c=1 */
::cue(div) /* is this a=0 b=0 c=1  or a=0 b=0 c=2 */
::cue-region /* a=0 b=0 c=1 */
::cue-region(#first) /* is this a=0 b=0 c=1  or a=1 b=0 c=1 */
```

Looking at 'Calculating a selector’s specificity' in selectors-4 doesn't make things clear since pseudo classes that take selectors as parameters are special-cased:
https://drafts.csswg.org/selectors/#specificity-rules

Please view or discuss this issue at https://github.com/w3c/webvtt/issues/499 using your GitHub account


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

Received on Saturday, 16 October 2021 12:55:36 UTC