Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Validator can't parse .dfn-panel.activated. #321

Closed
mikewest opened this issue Apr 15, 2016 · 20 comments
Closed

CSS Validator can't parse .dfn-panel.activated. #321

mikewest opened this issue Apr 15, 2016 · 20 comments

Comments

@mikewest
Copy link
Member

Bikeshed's definition panel CSS includes the rule .dfn-panel.activated. That throws the following error in the live pubrules checker:

[generator.unrecognize] Parse Error (https://w3c.github.io/webappsec-credential-management/WD.html, line 29 in '.dfn-panel.activated')

The CSS is legal, validator or not.

@mikewest
Copy link
Member Author

Oh, I see. It's not choking on the rule itself. It's choking on calc(...).

I'd prefer not to add an exception for every WebAppSec spec. Think this is something y'all could either fix or globally exempt?

@deniak
Copy link
Member

deniak commented Apr 15, 2016

I'm not sure when calc() will be properly supported in the CSS validator so in the meantime, I suggest to use the exception system.

@mikewest
Copy link
Member Author

This means that every bikeshed spec will need to talk to you about getting an exception before publication. That seems like a lot of overhead, both for you and for spec authors who will be confused by error messages that don't actually represent errors.

@deniak
Copy link
Member

deniak commented Apr 15, 2016

We can easily ignore specific types of error reported by the CSS validator (in this case generator.unrecognize) for all the specs. One drawback is it will ignore real errors as well.

@mikewest
Copy link
Member Author

So far, the validator has prevented me from publishing both specs I've tried. Neither time has been due to a valid error (see #319 for the other one). In my personal set of ancedotes, this hasn't been a helpful check.

@deniak
Copy link
Member

deniak commented Apr 15, 2016

This issue will be fix if we resolve to skip the CSS validator until it's updated (see #322). @plehegar what do you think?

@mikewest
Copy link
Member Author

mikewest commented Apr 18, 2016

Ping! I'm interested in seeing some resolution here; I have a number of Bikeshed-driven specs whose /TR version I'd like to refresh. :)

@deniak
Copy link
Member

deniak commented Apr 19, 2016

I'm being told the CSS validator will very soon be able to handle calc() properly.

@plehegar
Copy link
Member

I suggest ignoring the CSS validator for the next 10 days. If it's still giving errors away after that, we'll need to start ignoring the CSS validator altogether.

@mikewest
Copy link
Member Author

@plehegar: I'm fine with that. I'd simply like to be able to submit some updates to /TR without landing exemptions for each spec. :) @deniak, WDYT?

@deniak
Copy link
Member

deniak commented Apr 20, 2016

@mikewest : I talked to @plehegar and what I meant is let's wait 10 days to see if the validator gets patched. After that, if it still fails on calc(), we'll disable the CSS validator for all the specs.
In the meantime, I'm happy to publish your specs on Tuesdays or Thursdays.

@plehegar
Copy link
Member

plehegar commented Apr 20, 2016

To give more background: I've been told that the calc problem would be fixed within 10 days in the css validator, so let's not try to make changes we would have to undo after in that timeframe. The truth is that we're catching more false positive errors in the css validation than real errors nowadays so the value of having the css validation step is clearly negative at the moment. If we can't change that within the 10 days, my proposal is to deactivate the css validation step entirely.

@ylafon
Copy link
Member

ylafon commented Apr 21, 2016

Should be fixed

@mikewest
Copy link
Member Author

It does, thank you. :)

@mikewest
Copy link
Member Author

mikewest commented May 6, 2016

Reopening: the CSS validator now fails on left: calc(-1 * (3.5rem - 26px)); (and on a number of SVG attributes that I think we agreed to simply ignore for the moment?): https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fw3c.github.io%2Fwebappsec-secure-contexts%2FWD.html&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en

This is basically teaching me never to upgrade Bikeshed, which certainly shouldn't be the lesson. :)

@ylafon: Where should I be filing bugs against the validator?

@mikewest mikewest reopened this May 6, 2016
@ylafon
Copy link
Member

ylafon commented May 6, 2016

@mikewest https://github.com/w3c/css-validator/issues but I just fixed the calc() issue with the latest commit. Thx for the report!

@ylafon
Copy link
Member

ylafon commented May 10, 2016

Note that SVG properties are not part of http://www.w3.org/TR/2015/NOTE-css-2015-20151013/ maybe it's a bug.

@deniak
Copy link
Member

deniak commented May 19, 2016

Closing this ticket as calc() is now correctly implemented in the CSS validator. The SVG properties are not defined by the CSS WG. We might need to add special exceptions to ignore the errors for these properties.

@tabatkins
Copy link
Member

The SVG properties are defined by the SVGWG; there's no requirement that all CSS must be defined by the CSSWG. They're valid and well-defined properties, and need to be supported by the validator. (This is currently blocking publication of Media Queries 4, will block CSS Syntax as soon as I publish that again, and will continue to block anything that uses Bikeshed's railroad-diagram support.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants