Jump to content
  • 0

box-shadow не проходит валидацию


hedgehog
 Share

Question

Здравствуйте. Пытаюсь приобщиться к CSS3, но не могу пройти валидацию. Имеется код:

.box-shadowed {box-shadow: 2px 3px 4px 2px #888;}

W3C ругается: Ошибка разбора [empty string]. Если убрать растяжение тени, то все ок, но тень растягивать мне нужно :)

.box-shadowed {box-shadow: 2px 3px 4px #888;}

Это баг w3c парсера или я что-то делаю не так?

Если указать любой из параметров тени как ноль без размеров - тоже ругается.

.box-shadowed {box-shadow: 0 0 4px #888;}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

по первой ссылке:

The fourth length is a spread distance. Positive values cause the shadow shape to expand in all directions by the specified radius. Negative values cause the shadow shape to contract.

по второй ссылке четвертый элемент не указан, но судя по заголовку - это черновик 2005го года. вопрос остается открытым :)

Edited by hedgehog
Link to comment
Share on other sites

  • 0

Ага, похоже на баг валидатора. Возможно, как-то связано с этим (судя по симптомам). Можно дописать туда же в багзиллу, авось обратят внимание и поправят.

Хотя при том бардаке, что творится в CSSной рабочей группе (производители браузеров наперебой толкают в стандарт свои проприетарные рюшечки, а основополагающий модуль синтаксиса 8 лет лежит в глухом черновике, и т.п.) это еще мелочь. Вообще само понятие "валидации CSS3" (при безверсионной-то модели развития!) в таких условиях вызывает у меня обоснованные сомнения...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy