Page MenuHomePhabricator

Add wiki-specific CSS styles for Parsoid Cite output so that it renders exactly like core Cite output
Open, Stalled, MediumPublic

Description

Parsoid is trying to encourage wikis to rely on CSS for customizing Cite output instead of site messages. Parsoid's Cite output currently doesn't look at wiki's site messages. Since Parsoid output is used in VisualEditor, one way for wikis to identifying CSS styles that needed to be added is for them to look at Cite output in VE and add CSS styles that makes the output look similar to how their read html (non-Parsoid) currently looks.

These CSS styles would be added to the wiki's common.css (or wherever these wiki-specific styles reside).

However, this should be done after T156350: Add language-specific CSS modules for Parsoid's Cite output is done.

Related Objects

Event Timeline

The CSS in https://github.com/wikimedia/integration-visualdiff/blob/master/lib/parsoid.custom_styles.yaml is a good start. It now has entries for over 20 wikis. Most are ready to go, and some might need some tweaking. In couple of cases, we need to figure out how to replicate existing styling.

The CSS in https://github.com/wikimedia/integration-visualdiff/blob/master/lib/parsoid.custom_styles.yaml is a good start. It now has entries for over 20 wikis. Most are ready to go, and some might need some tweaking. In couple of cases, we need to figure out how to replicate existing styling.

Note: PDFLink no longer exists on en.WP.

I'm also not entirely sure why many of these rules would be loaded with Cite, anyway. Some/many of them appear outside of citations for dedicated templates or non-citation content.