On Sun, 11 Mar 2018 07:05:54 -0700 (PDT) Thomas Passin <tbp100...@gmail.com> wrote:
> I haven't worked on anything much in-browser since before html5 came > out. So I didn't know anything about "~=", for example. Even then I > tried to only work with the simpler constructs (both javascript and > css), so I probably wouldn't have used that particular construct > anyway. The ~= operator is a Qt Stylesheet thing that let's Qt stylesheets act like HTML CSS with classes. So having a class is probably the most fundamental selector in CSS, ignoring ID, but it's a second class citizen in Qt Stylesheets, implemented by ~= which is "attribute contains". So HTML CSS p.foo { } Qt Stylesheet p[style_class ~= 'foo'] { } where style_class is arbitrary, but what Leo uses. But I'd take second class citizen over broken, which is what I think it is in Qt >= 5.8, unless it got fixed and they never cleared the bug report. Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.