Bug 1457123 [wpt PR 10651] - [css-writing-modes] Fix percentages on orthogonal replac...
commitece605540c0fbbc81b7f1b15fca100c12e815a20
authorManuel Rego Casasnovas <rego@igalia.com>
Tue, 1 May 2018 17:15:30 +0000 (1 17:15 +0000)
committerJames Graham <james@hoppipolla.co.uk>
Wed, 2 May 2018 06:49:21 +0000 (2 07:49 +0100)
tree3c4265693997d5d4dc957b9d52641ab7e29bbd8d
parentb5654f9aefb229bde62f8ab00f55496fccf467ed
Bug 1457123 [wpt PR 10651] - [css-writing-modes] Fix percentages on orthogonal replaced children, a=testonly

Automatic update from web-platform-tests[css-writing-modes] Fix percentages on orthogonal replaced children

This patch modifies LayoutBox::ComputeReplacedLogicalWidth|HeightUsing()
so it's aware of the orthogonal flow cases.

For example to compute the relative widths of replaced elements,
if the element direction is perpendicular to its containing block
it should use the containing block height instead of the width.

BUG=837146
TEST=external/wpt/css/css-writing-modes/sizing-percentages-replaced-orthogonal-001.html

Change-Id: I655c984703e2073be9a3a649ac79a63f8c136cc0
Reviewed-on: https://chromium-review.googlesource.com/1029852
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Commit-Queue: Manuel Rego Casasnovas <rego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#554731}

--

wpt-commits: 435b33acfe825349ac7c18262a8e0b11e2be38e5
wpt-pr: 10651
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-writing-modes/sizing-percentages-replaced-orthogonal-001-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/css-writing-modes/sizing-percentages-replaced-orthogonal-001.html [new file with mode: 0644]