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

Re: unit expander

From: Josef <josef.schmid@student.tuwien.ac.at>
Date: Wed, 14 Jan 2009 18:57:43 +0100
Message-ID: <496E2797.5010404@student.tuwien.ac.at>
To: www-style@w3.org
CC: Giovanni Campagna <scampa.giovanni@gmail.com>

> Hi, Giovanni!

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 Thursday, 15 January 2009 10:19:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:24 UTC