Version: (using KDE KDE 3.5.2) Installed from: Gentoo Packages There is a non-standard CSS extension by Mozilla called @-moz-document which allows custom stylesheets to make domain-specific modifications. This tends to be useful since several sites use generic names so that a custom stylesheet for one site is likely to break other web sites. Usage is like the following: @-moz-document domain(kde.com) { body { background: #ddd !important; color: #123 !important; } } In Mozilla (and derivations; Firefox, K-Meleon, etc) this will make the changes apply only to kde.org, thus keeping the rest of the Web sane for either their defaults or other specific changes.
Are you talking about the user custom stylesheet, not one retrieved from the webserver?
Yes, exactly
You do realise that, if we add this, it won't be called "-moz", but "-khtml", right?
Actually I've already considered this idea, but I thought it would fit better in together with domain specific JS (grease konqui), than in the user stylesheet.
First off, yeah it'd be fine changing to -khtml. It's not that big of a problem... just change existing userContent.css' floating around to -khtml instead of -moz. Trivial change, really And secondly, I don't really care for a Javascript implementation myself. I never learned Javascript and I like CSS just fine ;P
Would love to have this.
I would really love to see support for this. I'm curious as to what the status is on this request? Is this request to be denied and all domain-specific styles should be added through KonqJS (Which makes this more complicated than it has to be) or is this going to be considered in the near future? Thanks for any updates.
I'd love to have it in konqueror. With excellent css support in konqueror, this feature is a need! It also enables me to cut unwanted advertisement and other unwanted blocks of html code.
http://developer.mozilla.org/en/docs/CSS:@-moz-document @-moz-document url url-prefix domain
Anyone still following this bug may be interested to know the syntax finally made it into a W3C draft at the end of last year(!), so there's still hope it might be implemented one day: http://www.w3.org/TR/css3-conditional/#at-document
Dear user, KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6. Please migrate to use a QWebEngine based HTML component. We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes. For security issues, please see: https://kde.org/info/security/ Sorry that we did not fix this issue during the life-time of KHTML. Greetings Christoph Cullmann