This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 329636 - Evaluate width and height CSS properties to scale images
Summary: Evaluate width and height CSS properties to scale images
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Florian Thienel CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-07 13:57 EST by Florian Thienel CLA
Modified: 2011-11-09 17:36 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.