Last modified: 2014-02-19 22:15:59 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 T62542, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60542 - VisualEditor: Let skin variance for styling of <figures> in page content
VisualEditor: Let skin variance for styling of <figures> in page content
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2014-02-20
Assigned To: Ryan Kaldari
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-28 21:30 UTC by Ryan Kaldari
Modified: 2014-02-19 22:15 UTC (History)
8 users (show)

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


Attachments

Description Ryan Kaldari 2014-01-28 21:30:24 UTC
The CSS file modules/ve-mw/ce/styles/ve.ce.Node.css implements styling of page content. This styling should be handled by the skin, not by VisualEditor. It looks like someone already figured this out, as most of the styles include TODO notes about merging them into core styles.

As the mobile team is now implementing VE with a mobile-specific skin, now would be the best time to make these fixes. Otherwise, lots of !important overrides will be necessary.
Comment 1 James Forrester 2014-02-10 19:20:50 UTC
What's the solution to this issue, though? Re-write MW's skins to work with nodes? 'Cos right now they don'tâ€Ĥ

"Fix MW's skin system" is a bit of a large tangential bug.
Comment 2 Ryan Kaldari 2014-02-10 19:49:21 UTC
There are two possible solutions:

1. Make VE's page DOM more similar to the normal rendered page DOM. That way VE won't have to worry about styling them as they'll be styled by existing skin styles. (This seemed to be a solution favored by Trevor.)

2. Add support for some VE-specific elements to the skins, for example, figure elements. (This seemed to be a solution favored by Roan.)

Probably the best solution is a combination of both. I would be happy to help with solution 2, although it would be nice to get some guidance from the VE team on what approach (or approaches) they would prefer to see (and possibly help implement).
Comment 3 Ryan Kaldari 2014-02-10 20:06:46 UTC
Talked to Roan. He definitely favors solution 2 and gave me some advice on implementing it. Apparently VE already has some skin styling in it (modules/ve-mw/init/styles/), so most of these styles should just be moved there.
Comment 4 Gerrit Notification Bot 2014-02-11 01:14:47 UTC
Change 112618 had a related patch set uploaded by Kaldari:
Move some skin styling from ve.ce.Node.css to the skin styles

https://gerrit.wikimedia.org/r/112618
Comment 5 Gerrit Notification Bot 2014-02-19 21:33:07 UTC
Change 112618 merged by jenkins-bot:
Move some skin styling from ve.ce.Node.css to a shared skin css file

https://gerrit.wikimedia.org/r/112618

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


Navigation
Links