[css-contain] Fix baseline on buttons with layout containment
Layout containment suppress baseline, so buttons with "contain: layout" should use the same baseline than an empty inline block. This means that it should use the margin box and not the content box. Spec (https://www.w3.org/TR/CSS2/visudet.html#propdef-vertical-align): "If the box does not have a baseline, align the bottom margin edge with the parent's baseline." Modified LayoutButton::BaselinePosition() to take into account layout containment. BUG=965740 TEST=external/wpt/css/css-contain/contain-layout-button-001.html Change-Id: I8752aa4f5aec00dbec2a6c93c16734b47d286c0b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1643536Reviewed-by:Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Manuel Rego <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#666181}
Showing
Please register or sign in to comment