Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24d24feba3fde81

Jump to content

Talk:Comparison of stylesheet languages

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 15 years ago by Korval

I'm not really sure what the purpose of this page is. It basically just talks (very shortly) about the history of CSS and XSL.

At reversion 2010-11-12 the paragraph that starts " CSS, as of version 2.1, is best used for styling documents that are to be shown on "screen media". " wronged. truth is that the language to structure a document (markup language) limits document to a media. for example HTML may style at 'screen media' best, but the fault is lack parsers to transform a code CSS to a width. Other languages to struct document, example XUL " The XUL box model is a significant imporvement over the HTML layout model, which is mostly vertical. " from https://developer.mozilla.org/en/XUL_School —Preceding unsigned comment added by Andrewjfs (talkcontribs) 04:16, 13 November 2010 (UTC)Reply

The markup language used for a document does not limit it to a particular medium. I write pretty much every non-trivial document in DocBook, and there are perfectly capable transforms that allow it to be the source for book media or screen media. Or eBook media. And so on. If you wanted, you could write a transform from DocBook to XUL.
Also, the reason why CSS is best suited for screen media has nothing to do with transforming CSS to a width. It has to do with the lack of structures needed for pages. It has no way to deal with forced page breaks, page references (referring to an item on page X), headers/footers/footnotes, and any number of other things that paged media styling fundamentally relies upon. There is work in CSS 3.0 to improve paged media handling, but this is still in development. Korval (talk) 23:12, 15 November 2010 (UTC)Reply