[TYPO3-core] RFC #8070: Feature: CSS styled content / scalable rendering of images

Martin Kutschker masi-no at spam-typo3.org
Thu Dec 11 09:06:26 CET 2008


Ralf Hettinger schrieb:
> Hi guys,
> 
> I'm quite happy to recognize that you like the idea. And thank you,
> Mario, for pushing this forward.
> 
> The patch is by now being tested by myself in two productive
> environments and hasn't encountered any problems so far, so... can I +1
> my own patch?

Usually of course not, but as Mario posted the patch and stated he
tested it, you probably can do it in this case.

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?

> 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.
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".

> - 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?

> - 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.

Masi


More information about the TYPO3-team-core mailing list