-
Notifications
You must be signed in to change notification settings - Fork 102
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
Validate HTML of test fixtures in CI #422
Conversation
This is a definitely a good idea. I agree that we'll probably want to implement our own parser/linter. Because we'll want control over which properties are supported. I think it probably does make sense to tie this is with a user-facing CSS parsing feature. FYI, on that topic:
|
Also, I really don't like linters where you have to go into the console log of the action runner to identify what is wrong. A linter should place a comment in the PR on the line where the error is. |
This is all good info, thanks. I'm going to dive a bit into this but unsure how far I get. (Work is going to be busy over the next month again) |
Edit: This crate seems much better suited for our potential needs: |
Closing this as it is not viable in its current form, but the issues spotted has been merged in #423 instead |
@Weibye I'm sure |
I did find scraper which is a higher level API on top of I'll tinker with |
Objective
Fix #421
Context
aspect-ratio
andmargin-inline-start
causing a lot of false negatives. Thus this PR is not usable in its current state.Feedback wanted
I think this clearly demonstrates the value of this lint / validation but we need a validation tool that is equally up to date with specs as our codebase. We should add support for what we need upstream, find other crates to build upon within the rust ecosystem or roll our own. We do want HTML & CSS import / export functionality somewhere down the line so maybe this would tie into that.
For the short term I suggest we cherry pick the fixes to the fixtures and get them merged in on a new branch.