[TYPO3-core] RFC #8070: Feature: CSS styled content / scalable rendering of images
Ralf Hettinger
ng at ralfhettinger.de
Thu Dec 11 10:20:26 CET 2008
Am 11.12.2008 09:06 schrieb Martin Kutschker:
[...]
> But hey, now you're here I have a question: in the PHP code the default
> scaling factor is 1, but in the TS configuration it defaults to 0.1. Why
> the difference?
Good question.
I remember that I thought the patch should be revised (meaning I wanted
to do that if I find the time), that's why I did file it in BT but
didn't send it to the "holy list" yet ;)
Since Mario is in need for this snippet, he might want to take care a
bit and have a look at it...
>> Still and additionally, I would think that there is more room for
>> optimization/configuration and things aren't perfect yet by just using
>> em units. Though em will at least lead to scalable layouts with scalable
>> content images, there should furthermore be the option
>
> You could also use ex, but it probably wouldn't make much difference.
I must admit I never used ex before. Thanks for the hint.
> But the change should be easy. Anyway, to be forward compatible I advise
> not to use any boolean switches like useEM, but something like
> "dimUnit", "dimensionUnit" or simply "unit". The possible values are
> "px" (the default), "em" and "ex".
That would be a good thing, agreed.
>> - to omit all dimensional units (which will be easy) and
>
> You mean you want to use simply the intrinsic dimensions of the image
> and neither use the sytle nor width/height attributes?
Exactly. Have a look at www.barmer.de (has been awarded with german
BIENE award for accessibility and I'm impressed by the idea - try to
"simulate" a very small resolution like 800px in width in total and
watch the images scale down automatically) - they do it that way (if
this was TYPO3, it would require a very decent configuration, though...)
>> - maybe some approach to output percentage units (I'm not sure if this
>> would make any sense and how it could be calculated reasonably - any
>> ideas or experiences here?)
>
> Percentage of what? I don't think that size of the surrounding container
> will get you any reasonable results with generated code. Maybe if you
> have columns with a fixed pixels size, but then the % doesn't make sense
> either.
This as well is an idea (maybe more a wild guess) which came to mind
after watching the above mentioned site and peeking at the CSS.
Thank you very much for your input!
Ralf
More information about the TYPO3-team-core
mailing list