From 7c9bf45b5fd89f2f478326586e0bb791b1b646ee Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Thu, 12 Dec 2024 20:53:59 +0000 Subject: [PATCH] Part 2 - Fix flex item's stretched cross size with box-sizing:border-box when computing flex container's intrinsic inline size. When the flex item has 'box-sizing:border-box', we should subtract its margin when computing its stretched cross size. The testcase is adapted from aspect-ratio-intrinsic-size-008.html, with "box-sizing:border-box" added to the flex item. Differential Revision: https://phabricator.services.mozilla.com/D231867 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1936370 gecko-commit: c9a7242c12e360a34bcbcec1824abd9fe8cdc81b gecko-reviewers: dholbert --- .../aspect-ratio-intrinsic-size-010.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 css/css-flexbox/aspect-ratio-intrinsic-size-010.html diff --git a/css/css-flexbox/aspect-ratio-intrinsic-size-010.html b/css/css-flexbox/aspect-ratio-intrinsic-size-010.html new file mode 100644 index 00000000000000..7afc53e751e495 --- /dev/null +++ b/css/css-flexbox/aspect-ratio-intrinsic-size-010.html @@ -0,0 +1,14 @@ + + + + + + + + + +

Test passes if there is a filled green square.

+
+
+