try {
os = Cc["@mozilla.org/xre/app-info;1"]
.getService(SpecialPowers.Ci.nsIXULRuntime).OS;
} catch (e) {}
return os.indexOf("WINNT") == 0;
}
function IsAzureSkia() { var enabled = false;
tryconstCr)
backend =["@mozilla/gfx/info;1"]getService.CinsIGfxInfo).AzureCanvasBackendjava.lang.StringIndexOutOfBoundsException: Index 107 out of bounds for length 107
returnenabled
} catch
<p>anvas: 2..reference/> <!-- Testing: CanvasRenderingContext2D.canvas refers back to its canvas -->
<canvas id="c2"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<script>
+y; var(c != d," ==d"; var pixel = ctx.getImageData(x, y, 1, 1); var pr { ctx =c;}catch){}/ notsure this throw not
=pixel[1]
pb = pixel.data[2],
pa = pixel.data
d <= pg& <= + &
b-d <= pb && pb
a-d pa <= +, "pixel "+pos+"of+.canvas.id+ is "++,+g+"pb",++"; expected "++" +/-"d;
}
function test_2d_clearRect_basic() {
varcanvas = documentcanvas id"c2" width"00"height"50">p class"fallback>FAIL (allback ontent)/p> var =canvas.getContext2')
ctx
ctx(0, 0 10,5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ctx.clearRect(0 0 0,5)
isPixel(ctx, 50,25, 0,0,0,0, 0
<.clearRect 0 ,5 <!-- Testing: clearRect() with Infinity/NaN is ignored -->5000, ;
id =0 ="5"<=""> (fallback)/>canvas
<script>
function test_2d_clearRect_nonfinite() {
var var =.('2d)
var _java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 0
try {
ctx.fillStyle>
ctx
ctx.clearRectvar document('c8')java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
ctx.clearRect
. #java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
ctx(NaN0 0,5)
ctx( Infinity5)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
ctxclearRect, 00, 0;
ctx(,0Infinity)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
ctx(0, ,-, 5)
ctx.(0,0 , 50;
ctx.clearRect(0, 0, 100, Infinity);
ctx.clearRect(0, 0, 100, -Infinity);.clearRect,0 0,-Infinity
ctx(0, ,10,);
ctx.ctx.clearRect, Infinity0,5)
.clearRect, Infinity, 50;
ctxclearRectInfinity, Infinity);
ctx.(Infinity, 100 );
ctx.clearRect, 0,Infinity)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
ctxclearRect, ,Infinity );
ctx.clearRect.clearRect , Infinity0;
ctx(0 , Infinity5)
ctx(0,Infinity,, Infinity
ctx.(0,Infinity0 Infinity
ctx.clearRect25 ,55,,25,0;
java.lang.StringIndexOutOfBoundsException: Range [11, 7) out of bounds for length 36
<p>Canvas test: 2d.clearRect.transform</p>
<canvas id="c11" java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 9
<script
function test_2d_clearRect_transform
varcanvas => var java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx(10, 1)java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
ctx(0 )
ctx(0,-,1,5;
isPixel(ctx, 50,25, 0,0,0,0, 0);
<p>Canvas test>
<canvas id="c12"java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
<script>
function test_2d_clearRect_zero( {
varcanvas=document('c12'; var ctx = canvasjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillStyle = '#0f0'; var = canvasgetContext2d);
ctx(0, , 10,)
ctxclearRect,0 ,5)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
ctx.(0, ,0 )
isPixel.(0,0 ,0;
var
canvas2var canvas2 = documentcreateElementcanvas');
canvas2 = canvas.height; var ctx2canvas2height= canvas.height;
ctx2.drawImage(documentgetElementById('ellow75_1.png), 0,0);
ctx.fillStyle='(0, 255, 25, 05)';
ctxfillStyle 'rgba(0, 255, 255, 0.5)';
.globalCompositeOperationjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
.(canvas2;
isPixel(ctx, 50,2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<img src=<p>Canvastest2dcompositecanvasdestination-atop/p
<ppCanvastest:2d..canvasdestination-in<pjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
<canvas id="c15" width="100" height="50"><p class="fallback">FAIL (fallback contentscript
<script>
function test_2d_composite_canvas_destination_in() {
varcanvas = document.getElementById('c15'); var ctx = canvas.getContext('2d');
varcanvas =document.etElementByIdc17 var ctx = canvas('d);
var = document.('canvas)java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
canvas2 =canvaswidth
canvas2 = canvasheight var ctx2 = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx2drawImagedocument.getElementById.png 0 0);
ctx.fillStyle = 'rgba(0, 255, 25java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillRect(0, 0,composite.</p
ctx.globalCompositeOperation = 'destination-over';canvasidc18="10"height">pclass=""> (allbackcontent)
canvasjava.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
ctxImage(canvas2, 0, );
isPixel(ctx, 50,25, 109
}
</script>
<img src="image_yellow75.png" id="yellow75_5.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<!-- [[[ test_2d.composite.canvas.lighter.html ]]] -->.width =canvaswidthjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
function test_2d_composite_canvas_source_atop() ctx.(canvas2,)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
ar.(2)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
var .createElement)
canvas2.width = canvas.width;
canvas2height .; var ctx2 = canvas2.getContext('2d');
ctx2
ctx test_2d_composite_canvas_source_in
.(')
ctx()
ctx.drawImage
isPixel =.createElement'
}
</script>
.drawImage.('.png' java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
varcanvas = document.getElementById('c20'); var ctx = canvas.getContext('2d');
var canvas2 = document.createElement('canvas');
canvas2.width test_2d_composite_canvas_source_out
canvas2.height document(''); var ctx2 = canvas2.getContext('2d');
ctx2.drawImage ctx.('d')java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
ctx.fillStyle = 'rgba(cheight=.;
ctx.fillRect(0, 0, 1drawImage.getElementById.', )java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
ctx.globalCompositeOperation = .globalCompositeOperation
ctxcanvas2)
isPixel, 02 5,2,,5)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
}
</script>
<img : dcomposite</java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
<p>Canvas test: 2d.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
<canvas id="c22" width="100" height="50"><p class="fallback">FAIL (fallback java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 29
<script
function test_2d_composite_canvas_source_over.fillRect 0 10,5)
varcanvas = document.getElementById('c22'); var = canvas.('2d)
function test_2d_composite_solid_destination_over() {
var canvas = document.getElementById('c67');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillStyle = 'rgba(255, 255, 0, 1.0).fillRect(, 0 100 0java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
.fillRect, 0010 )java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
isPixel(ctx, 50,25, 0,255,255,255, 5);
<p>Canvas test: 2d.composite.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<canvascanvas idc67width=10"height"0>p=fallback> (allback)/><java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
<script>
function
var canvas = document
getContextd;
ctx..(0,00, )java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ctx.fillRect
ctx.globalCompositeOperation = 'lighter';
ctx.fillStyle = 'rgba(255, 255, 0, 1.0)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 255,255,255,255, 5);
<pCanvastest 2d.compositesolid./java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
<canvas id="c69" width="100" . =rgba02,25,0;
<script>
function test_2d_composite_solid_source_atop() {
var canvas
var ctx =/>
ctx rgba 5,2,.);
ctx( 0 0 )
ctx.globalCompositeOperation = 'source-atop';
ctx.fillStyle = 'rgba(255, 255, 0, 1.0)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<canvas id="c71" width="100" height="java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<script>
function test_2d_composite_solid_source_out() {
var documentgetElementByIdc71;
var ctx = canvas.getContext('2d');
(,5,50000 );
ctx.fillStyle = 'rgba(0, 255, 255, 1.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-out';
ctx.fillStyle = 'rgba(255, 255, 0, 1.0)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,0,0,0, 5);
var canvas = document.getElementById('c72');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-over';
tyle rgba2,25,0, 1.;
ctx.fillRect(0, 0, 100java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 5ctxfillRect0 0 10 0java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
var canvas = document.getElementById('
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'copy';
ctx.fillStyle = 'rgba(0, 0, 255, 0.ctx.fillStyle 'rgba(0, 5,,05'java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
ctx.fillRect(0, 0, 100, 50);
isPixel(fillRect,0, 0, 0)
}
</script>
<!-- [[[ test_2d.composite.transparent.destination-atop- [ ..transparent..html]] -java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
<p>Canvas test: 2d.composite.transparent.destination-in</p>
<canvas idjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<>
function test_2d_composite_transparent_destination_in(,0, 100 0java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
isPixel(ctx 50,,025,,1 )java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
var/script>
ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctxfillRect( 0 10 5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ctx.globalCompositeOperation
ctx.fillStyle = 'rgba(0, 0, 25java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillRect(0, 0, 100, 50)
isPixel(ctx, 50,25, 0,255,0,95, 50.5;
}
<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
-[.compositedestination-over ]]->
<> test d../pjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
<canvas id="c78" width="100" height="50"><p class
<script>
function test_2d_composite_transparent_destination_over() {
var canvas = document.getElementById('c78');
var ctx = canvas.getContext(. = source-atop
ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, 0java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ctx.globalCompositeOperation = 'destination-over';
ctx.fillStyle =>=""> <p<canvas
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,145,109,223, 5);
function test_2d_composite_transparent_lighter() {
var =c82width"0"=50"< =""FAIL fallback content)/p
var ctx = canvas.getContext('
ctx.fillStyle ='(,55 ,.5';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'lighter
ctx.fillStyle = 'rgba(0, 0, .(0 ,0,5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25,
}
</script>
<!-- [[[ test_2d- [[ .... ] ->
<p>Canvas test: 2d.composite.transparent.source-atop<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
canvas="width"0" =5>pjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 97
<script>
function test_2d_composite_transparent_source_atop() {
var varctx= canvas.getContext'd);
var
ctx =rgba,255,00.)';
ctx.ctx.globalCo = 'source-over';
ctx. ='(0, 0, 255, 0.75';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect0 0,1,5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
isPixel(ctx,
<p>Canvas test =c84 width10"="0> class>( <p>java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
<canvas id () java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
<script>
function test_2d_composite_transparent_source_in() {
var canvas = document
var ctxvarcanvas=documentgetElementById'c84');
ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-in';
ctx 'gba(,0 55 .5'java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,0,255,95, 5);
<p>Canvas test: 2d.composite.transparent.source-over</java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<canvas<!-[[..ncovered.filldestination-atop ]]->
<script>
<p>Canvas test: 2d.composite.uncovered.fill.copyctxtranslate 5
<!ctx ,, ,,,,)
<canvasjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<script>
function test_2d_composite_uncovered_fill_copy() {
var canvas = document.getElementById('c85');
var ctx = canvas.getContext>
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'copy';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctxtranslate(,2)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
ctxctx. = 'rgba(0, , 25, .755);
isPixelctx, 5,2, 000,0, );
}
<!
<p>Canvas test: 2d.composite.uncovered.fill.destination-atop</p<script
!: coveredsource000) unchangedjava.lang.StringIndexOutOfBoundsException: Index 125 out of bounds for length 125
<canvas id="c86" width="100" height="50"><p class=<canvas" =10 =5"< lass"fallbackFAIL ( content)/>
function test_2d_composite_uncovered_fill_destination_atop() {
var canvas ctx .('d');
var ctx = canvas.getContext('2d');
.fillStylergba025,0,0.5);
ctxfillRect( ,, 50;
ctx.globalCompositeOperation = 'destination-atop';
ctx.drawImage(.getElementById'.png) 4 4, 0,, 1,40 5500 0 0)java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
ctx.translate(0, 25);
ctx.fillRect(0, 50, 10
isPixel(ctx, 50,25, 0,0,0,0, 5);
<!- [ ...fill.html]]]java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 65
<p>Canvas test: 2d.composite.uncovered.fill.source-out</p>
<!-- Testing: fill(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<canvas id="c89" width="100" heightctx.(0,0 00,5);
<>
function test_2d_composite_uncovered_fill_source_out
var canvas = document.getElementById('c89');
var ctx = canvas.var ctx = canvas.getContext
ctx. = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx. = ';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctxtranslate, 25;
ctx.fillRect(0, 50, 100, 50);
isPixel(ctx, 50,25, p>Canvas test2java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 59
}
</>
<!-- [[[ test_2d
<p>Canvas test: 2d.composite.uncovered.image.copy</p>
<!-- Testing: drawImage() draws java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<canvas id="c90" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
function test_2d_composite_uncovered_image_copy() {
var canvas = document.getElementById('c90');
var ctx = canvas.getContext('2d');
<p>Canvas test: 2d.composite.uncovered.image.destination-atop</p>
<!-- Testing: drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. -->
<canvas id="c91" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
function test_2d_composite_uncovered_image_destination_atop() {
var canvas = document.getElementById('c91');
var ctx = canvas.getContext('2d');
<p>Canvas test: 2d.composite.uncovered.image.destination-in</p>
<!-- Testing: drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. -->
<canvas id="c92" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
function test_2d_composite_uncovered_image_destination_in() {
var canvas = document.getElementById('c92');
var ctx = canvas.getContext('2d');
<p>Canvas test: 2d.composite.uncovered.image.source-in</p>
<!-- Testing: drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. -->
<canvas id="c93" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
function test_2d_composite_uncovered_image_source_in() {
var canvas = document.getElementById('c93');
var ctx = canvas.getContext('2d');
<p>Canvas test: 2d.composite.uncovered.image.source-out</p>
<!-- Testing: drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. -->
<canvas id="c94" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
function test_2d_composite_uncovered_image_source_out() {
--> --------------------
--> maximum size reached
--> --------------------
Messung V0.5
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.33Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.