Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Mar 2022, Alexey Torgashin via fpc-pascal wrote: Currently if I run "extractcssclasses" with Bootstrap 4 (or 5) CSS file (not minified) I get it work for more than 30 seconds, then I stopped it, too long. Correct, there was an infinite loop. Is now fixed. Michael. _

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Mar 2022, Michael Van Canneyt via fpc-pascal wrote: On Mon, 28 Mar 2022, Alexey Torgashin via fpc-pascal wrote: I will add some options to interpret "*zoom" as a property name, but they will off by default. OK thanks. Can you try now with CSS (usual or minified) from https:/

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-28 Thread Alexey Torgashin via fpc-pascal
Currently if I run "extractcssclasses" with Bootstrap 4 (or 5) CSS file (not minified) I get it work for more than 30 seconds, then I stopped it, too long. Output file (parameter "--output=4.txt") not created. CPU Core i3. Linux x64. AT ___ fpc-pascal

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-28 Thread Michael Van Canneyt via fpc-pascal
On Mon, 28 Mar 2022, Alexey Torgashin via fpc-pascal wrote: I will add some options to interpret "*zoom" as a property name, but they will off by default. OK thanks. Can you try now with CSS (usual or minified) from https://getbootstrap.com/ ? See 'download' which gives file bootstrap-5.1.3

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-28 Thread Alexey Torgashin via fpc-pascal
I will add some options to interpret "*zoom" as a property name, but they will off by default. OK thanks. Can you try now with CSS (usual or minified) from https://getbootstrap.com/ ? See 'download' which gives file bootstrap-5.1.3-dist.zip . Complex places: .link-dark:hover, .link-dark:

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-27 Thread Michael Van Canneyt via fpc-pascal
On Sun, 27 Mar 2022, Michael Van Canneyt via fpc-pascal wrote: On Sun, 27 Mar 2022, Alexey Torgashin via fpc-pascal wrote: "*zoom", really ? That's not even valid CSS syntax. I checked 2 EBNF grammars: neither will allow this. I checked the W3 spec: Confirms this is simply not valid synt

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-27 Thread Michael Van Canneyt via fpc-pascal
On Sun, 27 Mar 2022, Alexey Torgashin via fpc-pascal wrote: "*zoom", really ? That's not even valid CSS syntax. I checked 2 EBNF grammars: neither will allow this. I checked the W3 spec: Confirms this is simply not valid syntax. But "*.nnn" is valid one. https://css-tricks.com/almanac/sele

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-27 Thread Alexey Torgashin via fpc-pascal
"*zoom", really ? That's not even valid CSS syntax. I checked 2 EBNF grammars: neither will allow this. I checked the W3 spec: Confirms this is simply not valid syntax. But "*.nnn" is valid one. https://css-tricks.com/almanac/selectors/u/universal/ So if the "*" has meaning in one context, it

Re: [fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-27 Thread Michael Van Canneyt via fpc-pascal
On Sun, 27 Mar 2022, Alexey Torgashin via fpc-pascal wrote: @Michael Van Canneyt I didn't test but I hope this package can parse this _minified_ CSS file? Minified or not is normally not relevant for parsing. Attached on the forum https://forum.lazarus.freepascal.org/index.php/topic,5885

[fpc-pascal] New FCL-CSS package in the GitLab repo

2022-03-27 Thread Alexey Torgashin via fpc-pascal
@Michael Van Canneyt I didn't test but I hope this package can parse this _minified_ CSS file? Attached on the forum https://forum.lazarus.freepascal.org/index.php/topic,58853.msg438550.html#msg438550 It has many tricks. E.g. @media blocks (@media supports nested blocks, not only 1 level), e.