-
-
Notifications
You must be signed in to change notification settings - Fork 251
basic implementation for css counters #281
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
Conversation
@MicCalo, please rebase your branch, there are some merge conflict. But after resolving conflicts, branch doesn't build. |
…s-vector to elements-list was not auto-merged)
Ups, I wasn't aware that I'm on your repo but thought I'm on my fork :-) Anyway, what do you think about this in general? Any inputs? |
I'll be glad to approve merge when you'll be ready.
Implementation of the new CSS features is very appreciated. I've checked your changes. Here are some recommendations:
|
Thanks a lot for your thoughts. I have already moved the counter stuff upwards to Now, I'm working on adding more functionality as I think the 'whole spec' except counter types could be implemented without bloating the code base. Regarding the I will definitely consider writing unit tests. I have to study your approach to see if it is possible. |
Using
Creating tests for litehtml is easy. Just make one or some html files with counters, to cover all/most cases of counters using and place html files into the
During the first run all new tests will be FAILED, just find the file Idea of tests is simple: you have html file with test and png image with correct rendering of this html page. Test just render html file with changed code and compare two images. If images are differ - the test failed. |
Alright, I would consider this done :-) Added tests, used string-ids and reverted whitespace-only changes. Please feel free to pull it directly or comment on it. |
Merged. Thank you for new feature! |
Very basic implementation for css counters.
Short intro of css counters: W3C Schools
Specification: w3.org
super simple counter usage test page: https://miccalo.github.io/super-duper-tribble/en-US/counter_test.html
Implemented:
In progress:
Missing: