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

Ralf Hettinger ng at ralfhettinger.de
Wed Dec 10 17:50:43 CET 2008


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?


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

- to omit all dimensional units (which will be easy) and

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


Thanks
Ralf


Am 09.12.2008 12:50 schrieb Mario Rimann:
> This is an SVN patch request.
> 
> Type: New feature / Improvement of existing feature
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=8070
> 
> Branches:
> trunk
> 
> Problem:
> Current CSS Styled Content Sysext renders images in the HTML output with
> statical pixel based sizes. This is a problem when building a fully
> scalable website where everything else is defined in EM instead of
> pixels. (Everything scales up and down - just the image keeps it's size
> which is ugly).
> 
> Solution:
> Ralf Hettinger's Patch solves this problem by adding a new option
> whether to render the image size in EM or not. If activated, the pixel
> size is multiplied with a scale factor (which is also editable via TS)
> and then rendered for the HTML output. Images will have a
> style="width:xy em" instead of fixed pixel sizes.
> 
> Notes:
> The original patch is from Ralf, I just refined it a little and write
> the RFC now as the bug was laying around since some months and I'm in
> need of a solution for this issue.
> 
> I could successfully apply and test it on TYPO3 4.2.3 without problems.
> 
> Cheers,
> Mario


More information about the TYPO3-team-core mailing list