Bug 138095
Summary: | [MathML] align-items and align-self are not resolved to 'stretch' when auto. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Javier Fernandez <jfernandez> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | fred.wang, jfernandez |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | 153991 | ||
Bug Blocks: | 91512, 111616, 133359 |
Javier Fernandez
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Frédéric Wang (:fredw)
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.