/    Sign up×
Community /Pin to ProfileBookmark

can you validate filter: ?

When trying to use this code

[code=html]* a:hover {
filter: blur (
add: 0;
direction: 45;
strength: 3;
);
height: 0;
}
[/code]

I get these errors using W3 CSS validator

[code]Line: 161 Context : a:hover
Property filter doesn’t exist : blur

Line: 162 Context : a:hover
Parse Error – ( add: 0;

Line: 167
Parse Error – : 45; strength: 3; ); height: 0; }
[/code]

Is there a way to make this validate?

to post a comment
CSS

11 Comments(s)

Copy linkTweet thisAlerts:
@FangSep 29.2005 — No
Copy linkTweet thisAlerts:
@kenderauthorSep 29.2005 — Well, thank you for that in depth analysis of my problem and concise feedback, I will cherish the time spent on resolving this issue with fond memories and great sorrow at my loss.
Copy linkTweet thisAlerts:
@FangSep 29.2005 — The long answer:

If it is not in the [URL=http://www.w3.org/Style/CSS/#specs]W3C CSS Specs[/URL] it will not validate.
Copy linkTweet thisAlerts:
@d4p41nSep 29.2005 — ? the answer from [B]fang[/B] wasn't really deep.

But maybe i have an idea what this error could mean.

in css, there are some codes which only special browser understand.

for example:

  • - Mozilla
    [CODE]-moz-opacity:[/CODE]

  • - Internet Explorer
    [CODE]filter:[/CODE]


  • as you can see [B]filter[/B] is a special command for internet explorer. therefor i guess the w3c validator is thrown this error.

    i guess the the best way is to draw (create) two images and show the none bluered image when you are not above the link and another (blured) image which you above the link.

    best regards,

    d4p41n
    Copy linkTweet thisAlerts:
    @NogDogSep 29.2005 — If it's not [url=http://www.w3.org/TR/CSS21/propidx.html][b]here[/b][/url], then it's not an attribute defined as part of the CSS-2 specification, so it's not going to validate as such. (And it makes me wonder sometimes if IE6 might actually have decent CSS support by now if MS hadn't spent so much development time on all those filters. :rolleyes: )
    Copy linkTweet thisAlerts:
    @kenderauthorSep 29.2005 — thanks everyone for the info, and the help, it is really frustrating that IE allows something that isnt standardized.. but MS was always like that, werent they
    Copy linkTweet thisAlerts:
    @kenderauthorSep 29.2005 — though i do find it funny, that that page, NogDog, uses tables ?

    so outmoded!
    Copy linkTweet thisAlerts:
    @KravvitzSep 29.2005 — Umm... it's actually displaying tabular information. Wouldn't a table be the most semantically correct element to mark it up?
    Copy linkTweet thisAlerts:
    @LeruraSep 29.2005 — [URL=http://www.ssi-developer.net/css/visual-filters.shtml]http://www.ssi-developer.net/css/visual-filters.shtml[/URL]
    Copy linkTweet thisAlerts:
    @David_HarrisonSep 29.2005 — Tables are great for tabular data, it's what they were designed for, using them for layout though (like you do on [url=http://kender.org/]your site[/url] ?), that's when they're not so good.

    <mini-plug>

    http://www.hddkillers.com/100805/list.php

    </mini-plug>
    Copy linkTweet thisAlerts:
    @felgallSep 29.2005 — CSS entries such as filter and -moz-opacity are proprietary addons that are only recognised by the specific browsers that they are addons for. Using a different browser such as Opera, Safari, Konqueror (or any of the hundreds of others) will mean that the effect that the addon is supposed to generate will not be seen. You can tell when you use such browser specific code because it will fail validation.
    ×

    Success!

    Help @kender spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...