Bug 138095 - [MathML] align-items and align-self are not resolved to 'stretch' when auto.
Summary: [MathML] align-items and align-self are not resolved to 'stretch' when auto.
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on: 153991
Blocks: 91512 111616 133359
  Show dependency treegraph
Reported: 2014-10-27 10:38 PDT by Javier Fernandez
Modified: 2016-07-07 15:17 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Javier Fernandez 2014-10-27 10:38:28 PDT
In the last version of the Box Alignment specification both align-items and align-self initial value is 'auto'. This value should be resolved later to determine the computed value depending on the type of object.

  - http://dev.w3.org/csswg/css-align-3/#propdef-align-items
  - http://dev.w3.org/csswg/css-align-3/#propdef-align-self

For Grid and Flex elements 'auto' must be resolved to 'stretch'. 

Since MathML renders implementation is based on the RenderFlexibleBox class, it's expected that 'auto' values are resolved to 'stretch' as well; however, since the nature of the element is based on the display property, some MathML renders have not these properties correctly resolved. 

In the case of grid and flex containers, there is even an additional resolution logic at rendering phase, after the style cascade have resolved the css property values to their appropriated computed values. The case of MathML layout mode is particularly problematic because of the various render wrappers and their style handling logic it implements.
Comment 1 Frédéric Wang (:fredw) 2016-07-07 15:17:06 PDT
Fixed by http://trac.webkit.org/changeset/202934. MathML does not inherit from RenderFlexibleBox anymore nor does it use any align properties in its implementation.