зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1864396 tests. Behaviour of transform-box: stroke-box with vector-effect: non-scaling-stroke. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D194764
This commit is contained in:
Родитель
eeaf379806
Коммит
237520de90
|
@ -0,0 +1,21 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<title>transform-box: stroke-box, stroke with vector-effect: non-scaling-stroke</title>
|
||||||
|
<link rel="author" title="Jonathan Watt" href="mailto:jwatt@jwatt.org">
|
||||||
|
<link rel="match" href="reference/svgbox-rect-ref.html">
|
||||||
|
<link rel="help" href="https://drafts.csswg.org/css-transforms-1/#transform-box">
|
||||||
|
<link rel="help" href="https://svgwg.org/svg2-draft/coords.html#VectorEffects">
|
||||||
|
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9640">
|
||||||
|
<meta name="assert" content="The used value of transform-box is fill-box on SVG with non-scaling-stroke"/>
|
||||||
|
<style>
|
||||||
|
#target {
|
||||||
|
fill: green;
|
||||||
|
stroke: black;
|
||||||
|
stroke-width: 20;
|
||||||
|
vector-effect: non-scaling-stroke;
|
||||||
|
transform-box: stroke-box;
|
||||||
|
transform: scale(0.5) translateY(-100%);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<svg width="400" height="300">
|
||||||
|
<rect id="target" width="100" height="200" x="50" y="180"/>
|
||||||
|
</svg>
|
|
@ -0,0 +1,21 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<title>transform-box: border-box, stroke with vector-effect: non-scaling-stroke</title>
|
||||||
|
<link rel="author" title="Jonathan Watt" href="mailto:jwatt@jwatt.org">
|
||||||
|
<link rel="match" href="reference/svgbox-rect-ref.html">
|
||||||
|
<link rel="help" href="https://drafts.csswg.org/css-transforms-1/#transform-box">
|
||||||
|
<link rel="help" href="https://svgwg.org/svg2-draft/coords.html#VectorEffects">
|
||||||
|
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9640">
|
||||||
|
<meta name="assert" content="The used value of transform-box is fill-box on SVG with non-scaling-stroke"/>
|
||||||
|
<style>
|
||||||
|
#target {
|
||||||
|
fill: green;
|
||||||
|
stroke: black;
|
||||||
|
stroke-width: 20;
|
||||||
|
vector-effect: non-scaling-stroke;
|
||||||
|
transform-box: border-box;
|
||||||
|
transform: scale(0.5) translateY(-100%);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<svg width="400" height="300">
|
||||||
|
<rect id="target" width="100" height="200" x="50" y="180"/>
|
||||||
|
</svg>
|
Загрузка…
Ссылка в новой задаче