Last modified: 2014-03-21 21:12:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64938, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62938 - mw-default-size should be removed/made optional
mw-default-size should be removed/made optional
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: C. Scott Ananian
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-21 21:11 UTC by C. Scott Ananian
Modified: 2014-03-21 21:12 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description C. Scott Ananian 2014-03-21 21:11:45 UTC
For better interoperability with basic CE editors, we shouldn't let mw-default-size override the image size specified in the width/height attributes.

We should omit the size specification iff the bounding box specified by width/height is equal to the default one.  (A data-parsoid attribute can be used to preserve an explicit bounding box if one exists in the source, but this should be an unusual case.)

Need to think through the issues here, this might require adding an imageinfo pass to the wts and/or more expicitly passing the original image dimensions in data-parsoid (or data-mw).
Comment 1 C. Scott Ananian 2014-03-21 21:12:31 UTC
See bug 62881, which wants to add the original image dimensions to data-mw.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links