- Start translation of "San Francisco International Airport" from Simple English to Spanish
- Translate Gallery section
- Open editing dialog and make some change
- Save changes
Result: Gallery images are misplaces and rendered incorrectly
• Petar.petkovic | |
May 7 2019, 11:37 AM |
F31919697: Capture d’écran_2020-07-07_15-23-43.png | |
Jul 7 2020, 1:43 PM |
F28952984: gallery.png | |
May 7 2019, 11:37 AM |
Result: Gallery images are misplaces and rendered incorrectly
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T102107 Enable Content Translation in Catalan Wikipedia for all logged-in users | |||
Open | None | T102964 [Epic] Better support for templates in Content Translation | |||
Open | None | T191389 CX2: Content type support (tracker) | |||
Open | None | T222708 Gallery rendered incorrectly after making a change |
It looks like the width and height attributes are missing from the ve.dm.MWGalleryImageNode. Given that this doesn't happen in plain VE, I would guess CX has dropped some data from the DOM at some point?
Parsoid DOM:
<li class="gallerybox" style="width: 155px;"> <div class="thumb" style="width: 150px; height: 150px;"> <figure-inline typeof="mw:Image"><a href="./File:Boeing_727-193,_Pacific_Air_Lines_JP6858513.jpg"> <img resource="./File:Boeing_727-193,_Pacific_Air_Lines_JP6858513.jpg" src="//upload.wikimedia.org/..." data-file-width="1024" data-file-height="661" data-file-type="bitmap" height="77" width="120" srcset="..."></a></figure-inline> </div> <div class="gallerytext">A <a rel="mw:WikiLink" href="./Pacific_Air_Lines" title="Pacific Air Lines" class="new">Pacific Air Lines</a> airplane at the airport in <a rel="mw:WikiLink" href="./1967" title="1967">1967</a>.</div> </li>
CX DOM
<li class="gallerybox" style="width: 155px;"> <div> <div class="thumb"> <div><a><img resource="File:Boeing 727-193, Pacific Air Lines JP6858513.jpg" src="//upload.wikimedia.org/..."></a></div> </div> </div> <div class="gallerytext"><span class="cx-segment" data-segmentid="270">A <a class="new cx-link" data-linkid="271" href="./Pacific_Air_Lines" rel="mw:WikiLink" title="Pacific Air Lines">Pacific Air Lines</a> airplane at the airport in <a class="cx-link" data-linkid="272" href="./1967" rel="mw:WikiLink" title="1967">1967</a>.</span></div> </li>