Comparing style sheet languages (was: font size)

Håkon Wium Lie wrote:
> People who are interested in comparing language and syntax from
> various style sheet mechanisms may be interested in:

A very interesting document!

: Challengo: Set H1's font size to the double of the root element's font size.

CSS3 would just need a unit relative to the Root element's EM -- say, 'rem' -- 
to do this quite easily:

    H1 { font-size: 1rem; }

: Challenge: Place the left content edge of a BLOCKQUOTE element 1em to the left
:            of the middle of the canvas.

That can be done in CSS:

       position: absolute;
       left: 50%;
       margin-left: 1em;

Ian Hickson
``The inability of a user agent to implement part of this specification due to
the limitations of a particular device (e.g., non interactive user agents will
probably not implement dynamic pseudo-classes because they make no sense
without interactivity) does not imply non-conformance.'' -- Selectors, Sec13

Received on Saturday, 6 April 2002 12:05:40 UTC