Revision 208cfc11c0a61d6d44ec395699ff32c6dcf6ab52 authored by Manuel Rego Casasnovas on 19 March 2018, 16:01:26 UTC, committed by Chromium WPT Sync on 19 March 2018, 16:01:26 UTC
LayoutBox::FillAvailableMeasure() was not considering the case of
orthogonal elements when computing the margins.
The margins ended up being properly calculated but the size of
the orthogonal elements was wrong, as they considered
to have more or less space than the available one.

The method is modified in order to use
the containing block inline size in order to resolve the percentages:
https://www.w3.org/TR/css-writing-modes-3/#dimension-mapping

BUG=808758
TEST=external/wpt/css/css-writing-modes/sizing-orthogonal-percentage-margin-00*.html

Change-Id: Ib8c81dcd14589b3fefe806de3f8f75c000b1cac9
Reviewed-on: https://chromium-review.googlesource.com/968522
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544047}
1 parent 5dee619
History
File Mode Size
OWNERS -rw-r--r-- 43 bytes
PrefixedLocalStorage.js -rw-r--r-- 4.2 KB
PrefixedLocalStorage.js.headers -rw-r--r-- 45 bytes
PrefixedPostMessage.js -rw-r--r-- 3.8 KB
PrefixedPostMessage.js.headers -rw-r--r-- 45 bytes
arrays.js -rw-r--r-- 405 bytes
blank.html -rw-r--r-- 0 bytes
canvas-frame.css -rw-r--r-- 222 bytes
canvas-frame.css.headers -rw-r--r-- 38 bytes
canvas-index.css -rw-r--r-- 334 bytes
canvas-index.css.headers -rw-r--r-- 38 bytes
canvas-spec.css -rw-r--r-- 682 bytes
canvas-spec.css.headers -rw-r--r-- 38 bytes
canvas-tests.css -rw-r--r-- 1.8 KB
canvas-tests.css.headers -rw-r--r-- 38 bytes
canvas-tests.js -rw-r--r-- 3.3 KB
canvas-tests.js.headers -rw-r--r-- 45 bytes
css-paint-tests.js.headers -rw-r--r-- 45 bytes
css-red.txt -rw-r--r-- 21 bytes
domain-setter.sub.html -rw-r--r-- 184 bytes
dummy.xhtml -rw-r--r-- 86 bytes
dummy.xml -rw-r--r-- 30 bytes
entities.json -rw-r--r-- 142.5 KB
form-submission.py -rw-r--r-- 414 bytes
get-host-info.sub.js -rw-r--r-- 1.5 KB
get-host-info.sub.js.headers -rw-r--r-- 45 bytes
large.py -rw-r--r-- 1.3 KB
media.js -rw-r--r-- 974 bytes
media.js.headers -rw-r--r-- 45 bytes
namespaces.js -rw-r--r-- 104 bytes
object-association.js -rw-r--r-- 2.3 KB
object-association.js.headers -rw-r--r-- 45 bytes
performance-timeline-utils.js -rw-r--r-- 1.7 KB
performance-timeline-utils.js.headers -rw-r--r-- 45 bytes
redirect-opt-in.py -rw-r--r-- 595 bytes
redirect.py -rw-r--r-- 542 bytes
reftest-wait.js -rw-r--r-- 209 bytes
reftest-wait.js.headers -rw-r--r-- 45 bytes
stringifiers.js -rw-r--r-- 1.4 KB
stringifiers.js.headers -rw-r--r-- 45 bytes
test-setting-immutable-prototype.js -rw-r--r-- 2.3 KB
test-setting-immutable-prototype.js.headers -rw-r--r-- 45 bytes
text-plain.txt -rw-r--r-- 70 bytes
utils.js -rw-r--r-- 1.9 KB
utils.js.headers -rw-r--r-- 45 bytes
worklet-reftest.js -rw-r--r-- 760 bytes

back to top