0

i am getting this error in w3 validations is there any way to solve it i tried many ways but not able to resolve it.enter image description here

  • 1
    W3C only has this in Draft specification, so maybe that the reason why it pops the problem https://drafts.csswg.org/selectors-4/#the-focus-within-pseudo Though a few browsers supported the pseudo (https://caniuse.com/#search=focus-within) To be valid against something not yet released. I'm not sure we can do that – Toan Lu Mar 08 '19 at 05:18
  • is there any way to escape this error? – Mohammed Rabiulla RABI Mar 08 '19 at 05:29
  • simply ignore it, if it works fine then it's fine – Temani Afif Mar 08 '19 at 08:41

1 Answers1

1

The focus-within is in a draft to be release with css selector4

If you check support for it caniuse:focus-within you can see that 3 of the main browser support it on their latest versions.

W3c Validator will check against the latest Release ATM selectors 3, if you go specifically to W3C CSS Validator you can see under more options that it will only allow you to select up to version 3.

So that is the reason of the error, as by their check its actually an error.

What to do from here: it all depends

T04435
  • 12,507
  • 5
  • 54
  • 54
  • 1
    `more options that it will only allow you to select up to version 3` --> this option isn't related to the level of the feature but to CSS, it will always be CSS3 even if we have some features at Level 4 https://www.w3.org/TR/CSS/#css-levels --> `There is no CSS Level 4. Independent modules can reach level 4 or beyond, but CSS the language no longer has levels.` – Temani Afif Mar 08 '19 at 08:14