Just curious - apart from its ubiquitous use in specifying the presentation of HTML in modern web browsers, do any programs or standards utilize CSS?
-
Could you please expand on your question? I don't understand what you're asking.Michael La Voie– Michael La Voie2009-09-22 18:05:34 +00:00Commented Sep 22, 2009 at 18:05
-
You can always make an interpreter or parser for your own needs :)codingbear– codingbear2009-09-22 18:10:16 +00:00Commented Sep 22, 2009 at 18:10
13 Answers
Mozilla uses CSS to style the user interface of its products (Firefox, Thunderbird, Sunbird, etc.). It also uses CSS to bind logic to markup (-moz-binding).
Flex is also using custom CSS properties to style the interface.
Furthermore, the Qt GUI framework (written in C++) is using CSS.
Comments
You can use CSS,HTML and jQuery in Adobe Air framework to create cross platform Desktop applications also. Please check this article.
Titanium is platform for building rich desktop applications. It also uses existing web technologies including css to do that. Here is more information about it.
Comments
According to this Wikipedia article, you can apply CSS to any markup language, XML, XUL, SVG etc.
3 Comments
The Adium chat client can be skinned using CSS and I'm pretty confident this is not the only application going that way.
Now, this is not CSS in the strict sense of the way since, as pointed by previous posters, CSS was specifically designed and standardized for typically browser rendered documents (XML, XUL, SVG for instance).
Comments
Depends on what you mean by web browsers. There are print style sheets used by web browsers to output something that's printed. CSS is used for the paper by the browser, but it's still used on the printed document.
All the recognized media types: http://www.w3.org/TR/CSS2/media.html#media-types
Comments
Yes, in HTML e-mail. E-mail clients that support HTML e-mails under a renderer to display the HTML document with CSS styles applied.
Mozilla Thunderbird uses Gecko as the rendering engine (the one used in Firefox), whereas Microsoft Outlook 2007 uses its inbuilt rendering engine (different from the Trident rendering engine used in Microsoft IE).
Comments
I have seen the CSS syntax popup as a selection tool more than a styling tool recently. The most widely used example of this is jQuery's use of CSS selectors.
1 Comment
Yes. It's used in XUL, the system that Firefox and other Mozilla applications are built with. The XULRunner allows other developers to build XUL based applications; see this list on wikipedia.
Comments
Many Linux applications use an embedded HTML-rendering widget to display some text. For example Kopete, an instant messenger program, uses HTML and CSS to render skins. HTML+CSS is a cheap way to render rich text.
Comments
There are some GTK (Graphical Toolkit) style properties that are controlled with "css like" style files.
This is one example of a project that tries to use actual CSS for the GTK styling:
http://blogs.gnome.org/theming/2008/10/01/announce-gtk-css-engine-02-available/
Comments
BeeWare's Toga GUI framework (a platform-native, Python-native GUI framework) uses a CSS-like syntax in order to specify the style of widgets. It is a subset of CSS-like syntax and is not real CSS, however as defined at https://toga.beeware.org/en/latest/reference/style/pack/, there is a direct mapping of CSS and Toga's Pack layout algorithm, and any inconsistencies are considered bugs. So properties like widget.align_items sets the alignment just like CSS' align-items does in Flexbox.
It's a functional subset, but it's not for browsers.