diff --git a/layout/painting/nsCSSRendering.cpp b/layout/painting/nsCSSRendering.cpp index b2366d0ef2b0..69e32cd3f5b4 100644 --- a/layout/painting/nsCSSRendering.cpp +++ b/layout/painting/nsCSSRendering.cpp @@ -532,16 +532,12 @@ static nsRect JoinBoxesForBlockAxisSlice(nsIFrame* aFrame, auto wm = aFrame->GetWritingMode(); nsIFrame* f = aFrame->GetNextContinuation(); for (; f; f = f->GetNextContinuation()) { - MOZ_ASSERT(!(f->GetStateBits() & NS_FRAME_PART_OF_IBSPLIT), - "anonymous ib-split block shouldn't have border/background"); bSize += f->BSize(wm); } (wm.IsVertical() ? borderArea.width : borderArea.height) += bSize; bSize = 0; f = aFrame->GetPrevContinuation(); for (; f; f = f->GetPrevContinuation()) { - MOZ_ASSERT(!(f->GetStateBits() & NS_FRAME_PART_OF_IBSPLIT), - "anonymous ib-split block shouldn't have border/background"); bSize += f->BSize(wm); } (wm.IsVertical() ? borderArea.x : borderArea.y) -= bSize; diff --git a/testing/web-platform/tests/css/css-masking/mask-image/mask-image-data-url-image.html b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-data-url-image.html new file mode 100644 index 000000000000..aac59f3c4aab --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-data-url-image.html @@ -0,0 +1,27 @@ + +CSS Test: mask-image: url(data:...) + + + + + +

The test passes if there is a blue-ish square with a 20px green border around it and a 40px blue-green-ish border around that.

+
diff --git a/testing/web-platform/tests/css/css-masking/mask-image/mask-image-ib-split-2.html b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-ib-split-2.html new file mode 100644 index 000000000000..94c653a5c471 --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-ib-split-2.html @@ -0,0 +1,24 @@ + +CSS Test: mask-image on a fragmented inline + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-masking/mask-image/mask-image-ib-split.html b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-ib-split.html new file mode 100644 index 000000000000..dab941b11183 --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/mask-image/mask-image-ib-split.html @@ -0,0 +1,14 @@ + +CSS Test: mask-image on an inline with a block inside split by a columnset + + + + + +
+ diff --git a/testing/web-platform/tests/css/css-masking/mask-image/reference/1x1-black-30-alpha.png b/testing/web-platform/tests/css/css-masking/mask-image/reference/1x1-black-30-alpha.png new file mode 100644 index 000000000000..e334f44a0384 Binary files /dev/null and b/testing/web-platform/tests/css/css-masking/mask-image/reference/1x1-black-30-alpha.png differ diff --git a/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-data-url-image-ref.html b/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-data-url-image-ref.html new file mode 100644 index 000000000000..c2e88b36571e --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-data-url-image-ref.html @@ -0,0 +1,24 @@ + +Reference: mask-image: url(data:...) + + +

The test passes if there is a blue-ish square with a 20px green border around it and a 40px blue-green-ish border around that.

+
diff --git a/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-ib-split-2-ref.html b/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-ib-split-2-ref.html new file mode 100644 index 000000000000..ee28190878ab --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-ib-split-2-ref.html @@ -0,0 +1,21 @@ + +CSS Test: mask-image on a fragmented inline + + +
+ diff --git a/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-ib-split-ref.html b/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-ib-split-ref.html new file mode 100644 index 000000000000..e5c09f9449d5 --- /dev/null +++ b/testing/web-platform/tests/css/css-masking/mask-image/reference/mask-image-ib-split-ref.html @@ -0,0 +1,11 @@ + +CSS Reference: mask-image on an inline with a block inside split by a columnset + + +
+