Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329636

Summary: Evaluate width and height CSS properties to scale images
Product: z_Archived Reporter: Florian Thienel <florian>
Component: MylynAssignee: Florian Thienel <florian>
Status: CLOSED FIXED QA Contact: David Williams <david_williams>
Severity: normal    
Priority: P3 CC: d_a_carver
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Florian Thienel CLA 2010-11-07 13:57:09 EST
Is: Images are always scaled to their full width (for block elements, maximum is the width of the editor) or their full height (for inline elements, maximum is the height of the current line).

Should: The width and height CSS properties should be evaluated (if set) to scale the image. For these properties, also the attr() expression should be supported to be able to set width and height through XML attributes.
Comment 1 David Carver CLA 2010-11-07 18:48:28 EST
Well, DocBook also has scale, and scaleFit attributes, so some of this might need to be contributed by a plugin as well.
Comment 2 Florian Thienel CLA 2010-11-08 03:05:32 EST
As far as I know there is no CSS property for scaling. To support this, we might have to extend CSS:

image-element {
  -vex-scale: attr(scale-attr);
}

I don't know how well this is handled by SAC.
Comment 3 David Carver CLA 2010-11-08 08:18:40 EST
(In reply to comment #2)
> As far as I know there is no CSS property for scaling. To support this, we
> might have to extend CSS:
> 
> image-element {
>   -vex-scale: attr(scale-attr);
> }
> 
> I don't know how well this is handled by SAC.

Some of this I would make be handled through plugin extension points that can be added into the core system.  Some items may have to be handled from the docbook document itself, and some may just be informational.
Comment 4 Florian Thienel CLA 2010-11-16 17:40:47 EST
@width and @height are evaluated as LengthProperty, attr(...) is also supported.
Comment 5 Florian Thienel CLA 2010-12-13 14:46:34 EST
done
Comment 6 Florian Thienel CLA 2011-11-09 17:36:51 EST
Moved to Mylyn Docs Vex.