W3C home > Mailing lists > Public > www-style@w3.org > January 2009

Re: unit expander

From: Josef Schmid <e9427749@student.tuwien.ac.at>
Date: Wed, 14 Jan 2009 19:57:07 +0100
Message-ID: <496E3583.5060307@student.tuwien.ac.at>
To: www-style@w3.org


Again, from the wrong email-address.
Sorry if this appears multiple times.

-------- Original-Nachricht --------
I wrote:
> T link-type(T,....)
> So the parser must treat this special either look-ahead
> behind link-value, or store the expected value type of the
> property and check it later.

Excuse, i tell bullshit here.
link-value(<rel-value>,<selector>) is fine.
This works like attr(<attr-name>,<type>,<value>).

To get the same possibilities, a third value can be introduced:

And of course to avoid nested functions:

AFAIR attr(.....,<selector>) was at least proposed before.

> ----
> I like the 'from' proposal because it solves different use cases
> a) access viewport widht & height form anywhere.
>    e.g. height: 70% from :root
> b) correlate lenghts with others:
>    e.g. width: 100% from (table.above)
> c) a more powerful alternative for the rem unit
>    e.g. font-size: 1.2em from .my-reference-container
> d) and likely others that doesn't come to my mind.
> ----

Cited only to remind the use-cases...
It is simply more generic as rem,ch,vw,vh,...

> bye,
>   Jos "tormentor of native-speakers" ef
Received on Wednesday, 14 January 2009 18:58:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:23 UTC