[Webkit-unassigned] [Bug 191964] New: [css-grid] Resolution of percentage padding/margin is inconsistent for orthogonal writing-mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 26 04:03:05 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=191964
Bug ID: 191964
Summary: [css-grid] Resolution of percentage padding/margin is
inconsistent for orthogonal writing-mode
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jfernandez at igalia.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
Created attachment 355635
--> https://bugs.webkit.org/attachment.cgi?id=355635&action=review
Test case to reproduce the issue
Check the attached example.
There's a wrapper element with a fixed height of 100px.
Inside it there's an element with a fixed width of 500px.
That element has a vertical element inside (orthogonal) with some content and a margin-top of 10%.
The margin-top should be resolved against the width of the parent, so 10% of 500px is 50px.
The margin-top is computed correctly.
However, the problem comes when computing the available height of the orthogonal element.
We should use the 100px from the wrapper ans subtract the margin-top,
so the height of the orthogonal element should be 50px.
But we're subtracting only 10px (10% of 100px), and setting a 90px height which is wrong.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181126/16dfec07/attachment-0001.html>
More information about the webkit-unassigned
mailing list