mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
The corresponding handling code in the old style system can be found in: https://dxr.mozilla.org/mozilla-esr60/rev/dd52b41d2b775e5c7261ce52795268b7670635fc/layout/style/nsCSSDataBlock.cpp#65-106 mask-iage-url-hash.html is the test that don't pass without this change. Differential Revision: https://phabricator.services.mozilla.com/D4831 --HG-- extra : source : 6676693e3df3abe237494beed786153aeda44e79
28 lines
861 B
HTML
28 lines
861 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Test: mask-image: url(image.svg)</title>
|
|
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
|
|
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
|
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#mask-layer-image">
|
|
<link rel="match" href="reference/mask-image-ref.html">
|
|
<meta name="assert" content="mask-image can use an SVG file as an image">
|
|
<style>
|
|
#back {
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
width: 200px;
|
|
height: 200px;
|
|
border: 60px solid green;
|
|
background: red;
|
|
}
|
|
#front {
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
width: 200px;
|
|
height: 200px;
|
|
border: 40px solid red;
|
|
background: green;
|
|
mask-image: url(support/image.svg);
|
|
}
|
|
</style>
|
|
<p>The test passes if there is a green square and no red below.</p>
|
|
<div id="back"></div><div id="front"></div>
|