This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19564 - Data Type:center causes weirdness
Summary: Data Type:center causes weirdness
Status: RESOLVED FIXED
Alias: None
Product: webplatform.org
Classification: Unclassified
Component: content (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Chris Mills
QA Contact: public-webplatform-bugs list
URL: http://docs.webplatform.org/wiki/css/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-16 22:17 UTC by Eliot Graff
Modified: 2012-10-17 09:21 UTC (History)
1 user (show)

See Also:


Attachments

Description Eliot Graff 2012-10-16 22:17:39 UTC
In pages such as the one referenced, having Data Type:center causes the value to disappear. The end of the description for that value contains "</div>" and the rest of the content after that point renders as centered. 

The source:

{{CSS Property Value
|Data Type=center
|Description=Flexbox items are packed toward the center of the line. All child elements are placed edge to edge with each other, as described in the descriptions for the [#start start] or [#end end] keywords. However, the group of child elements is centered between the starting and ending edges of the parent element so that all remaining space is evenly distributed before the first child element and after the last child element.
}}{{CSS Property Value

            </div> gets rendered here in the page
...Everything after this is centered


|Data Type=justify
|Description=Flexbox items are evenly distributed in the line. The starting edge of the first child element is placed at the start of the parent element; the ending edge of the last child element is placed edge to edge with the end of the parent box; and all remaining children are placed between the first and last child elements, so that any space that remains along the layout axis is equally distributed between child elements.
}}

...
Comment 1 Dominique Hazael-Massieux 2012-10-17 07:39:12 UTC
Fixed; the CSS Property Value was using the name of the value between < and >, which was then interpreted by mediawiki in <center> in the case of the center value.

I escaped the first "<" with <nowiki>, and it seems to be doing the trick:
http://docs.webplatform.org/w/index.php?title=Template%3ACSS_Property_Value&diff=14603&oldid=11354
http://docs.webplatform.org/wiki/css/properties/-ms-flex-pack
Comment 2 Dominique Hazael-Massieux 2012-10-17 09:21:12 UTC
forgot to mark as resolved