![]() |
#76 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,127
Karma: 18492793
Join Date: Dec 2010
Device: Kindle PW2
|
You also might find the Blitz CSS template useful for testing purposes.
|
![]() |
![]() |
![]() |
#77 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,900
Karma: 3265462
Join Date: Nov 2009
Device: many
|
Interesting ...
FWIW, that stylesheet uses things beyond the css 3.0 spec including @supports like the following: Code:
@supports (height: 100vh) { /* Can be used for containers and images but Should be used in combination with .portrait if used for img */ .h-100 { height: 99vh; /* Trying to avoid blank page after */ } .h-90 { height: 90vh; } .h-80 { height: 80vh; } .h-70 { height: 70vh; } .h-60 { height: 60vh; } .h-50 { height: 50vh; } .h-40 { height: 40vh; } .h-30 { height: 30vh; } .h-20 { height: 20vh; } .h-10 { height: 10vh; } } I will have to add support for it to the cssparser as it only supports css 3.0. |
![]() |
![]() |
![]() |
#78 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,900
Karma: 3265462
Join Date: Nov 2009
Device: many
|
Okay it turned out to be easy to add @supports to qcssparser (and to fix a typo in nestlevels). These changes were pushed to master.
|
![]() |
![]() |
![]() |
#79 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,900
Karma: 3265462
Join Date: Nov 2009
Device: many
|
Okay as of today's master in Sigil/src/Query:
- added a way to catch exceptions and report parser errors in the resulting CSelection so it can be checked by the caller (so hopefully no more aborts or segfaults) - fixed a bug in the *of-type related selectors - added support for :root pseudo selector - added support for :lang() which properly groks inheritance rules. - filtered out psuedoelements that do not actually help select a node or that require user intervention like :hover, :before, :after, etc So hopefully Query is now in a much better place than it started. It passes all my basic tests now but I am going to create a standalone testing app to stress test my version of gumbo query and remove the simple testing added to main.cpp in Sigil. That will probably take a while but should prove useful in finding bugs and query limitations. I have added @supports and fixed a few bugs in cssparser2 and qcssparser. If anyone wants me to post these improved versions, just let me know. Quote:
|
|
![]() |
![]() |
![]() |
#80 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,900
Karma: 3265462
Join Date: Nov 2009
Device: many
|
Hi All,
I have assembled a decent Selector test set and found many bugs and created a number of fixes in the gumbo query code. I also made minor changes to the cssparser code. To make these more generally available, I have created two new Sigil-Ebook github repos with both source sets and reverted them to their original licenses so they can more easily exchange bug fixes and changes with their original projects. cssparser - Is now available at: https://github.com/Sigil-Ebook/cssparser - It is now under its original LGPL v2.1 license and sigil-query - It is now available at: https://github.com/Sigil-Ebook/sigil-query - It is now under its original MIT License Both are pure C++ that does not need or use Qt. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
alphabetizing stylesheet, check book, and remove unused styles | rjwse@aol.com | Calibre | 9 | 01-29-2020 07:48 PM |
Pseudo classes to be deleted as unused classes | Leonatus | Sigil | 2 | 09-23-2018 10:12 AM |
"unused stylesheet class" is actually used | AlanHK | Sigil | 6 | 06-20-2017 05:42 PM |
Search and Replace; delete "author" name from "serie" | roosten | Library Management | 6 | 12-17-2015 12:38 PM |
Cleaning a stylesheet of unused styles | roger64 | Sigil | 49 | 06-13-2012 06:23 AM |