mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1248708 - Part3: add reftests. r=jfkthame
This commit is contained in:
parent
1d4ec2ac91
commit
51c6f6da30
@ -330,6 +330,9 @@ include ../tables/reftests/reftest.list
|
||||
# text/
|
||||
include text/reftest.list
|
||||
|
||||
# text-stroke
|
||||
include text-stroke/reftest.list
|
||||
|
||||
# text-decoration/
|
||||
include text-decoration/reftest.list
|
||||
|
||||
|
7
layout/reftests/text-stroke/reftest.list
Normal file
7
layout/reftests/text-stroke/reftest.list
Normal file
@ -0,0 +1,7 @@
|
||||
# basic tests for webkit-text-stroke
|
||||
# fuzzy is needed here for platform dependent backends
|
||||
fuzzy-if(gtkWidget,255,20) fuzzy-if(winWidget,20,10) == webkit-text-stroke-property-001.html webkit-text-stroke-property-001-ref.html
|
||||
fuzzy-if(gtkWidget,255,20) fuzzy-if(winWidget,20,10) == webkit-text-stroke-property-002.html webkit-text-stroke-property-002-ref.html
|
||||
fuzzy-if(gtkWidget,255,20) fuzzy-if(winWidget,20,10) == webkit-text-stroke-property-003.html webkit-text-stroke-property-003-ref.html
|
||||
fuzzy-if(gtkWidget,255,20) fuzzy-if(winWidget,20,10) == webkit-text-stroke-property-004.html webkit-text-stroke-property-004-ref.html
|
||||
fuzzy-if(gtkWidget,255,20) fuzzy-if(winWidget,20,10) == webkit-text-stroke-property-005.html webkit-text-stroke-property-005-ref.html
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: SVG text reference</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<!-- set overflow to visible so that stroking near boundary won't be hidden -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%; overflow: visible;">
|
||||
<text x="0" y="100" font-size="64px" fill="transparent" stroke="green" stroke-width="2px">TEXT stroke</text>
|
||||
</svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: 2px green</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://compat.spec.whatwg.org/#the-webkit-text-stroke">
|
||||
<meta name="assert" content="The webkit-text-stroke of texts should take effect">
|
||||
<link rel="match" href="webkit-text-stroke-property-001-ref.html">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<text style="padding-left: 0px; color: transparent; font-size: 64px; -webkit-text-stroke: 2px green;">TEXT stroke</text>
|
||||
<!-- need this inline-block to make sure text is rendered at the same position as the SVG reference -->
|
||||
<div style="display:inline-block; width:0px; height:100px;"/>
|
||||
</div>
|
||||
<body>
|
||||
<html>
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: SVG text reference</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<!-- set overflow to visible so that stroking near boundary won't be hidden -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%; overflow: visible;">
|
||||
<text x="0" y="100" font-size="64px" fill="transparent" stroke="black" stroke-width="1px">TEXT stroke</text>
|
||||
</svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: thin black</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://compat.spec.whatwg.org/#the-webkit-text-stroke">
|
||||
<meta name="assert" content="thin keyword should take effect for webkit-text-stroke-width">
|
||||
<link rel="match" href="webkit-text-stroke-property-002-ref.html">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<text style="padding-left: 0px; color: transparent; font-size: 64px; -webkit-text-stroke: thin black;">TEXT stroke</text>
|
||||
<!-- need this inline-block to make sure text is rendered at the same position as the SVG reference -->
|
||||
<div style="display:inline-block; width:0px; height:100px;"/>
|
||||
</div>
|
||||
<body>
|
||||
<html>
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: SVG text reference</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<!-- set overflow to visible so that stroking near boundary won't be hidden -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%; overflow: visible;">
|
||||
<text x="0" y="100" font-size="64px" fill="transparent" stroke="black" stroke-width="3px">TEXT stroke</text>
|
||||
</svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: medium black</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://compat.spec.whatwg.org/#the-webkit-text-stroke">
|
||||
<meta name="assert" content="medium keyword should take effect for webkit-text-stroke-width">
|
||||
<link rel="match" href="webkit-text-stroke-property-003-ref.html">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<text style="padding-left: 0px; color: transparent; font-size: 64px; -webkit-text-stroke: medium black;">TEXT stroke</text>
|
||||
<!-- need this inline-block to make sure text is rendered at the same position as the SVG reference -->
|
||||
<div style="display:inline-block; width:0px; height:100px;"/>
|
||||
</div>
|
||||
<body>
|
||||
<html>
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: SVG text reference</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<!-- set overflow to visible so that stroking near boundary won't be hidden -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%; overflow: visible;">
|
||||
<text x="0" y="100" font-size="64px" fill="transparent" stroke="black" stroke-width="5px">TEXT stroke</text>
|
||||
</svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: thick black</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://compat.spec.whatwg.org/#the-webkit-text-stroke">
|
||||
<meta name="assert" content="thick keyword should take effect for webkit-text-stroke-width">
|
||||
<link rel="match" href="webkit-text-stroke-property-004-ref.html">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<text style="padding-left: 0px; color: transparent; font-size: 64px; -webkit-text-stroke: thick black;">TEXT stroke</text>
|
||||
<!-- need this inline-block to make sure text is rendered at the same position as the SVG reference -->
|
||||
<div style="display:inline-block; width:0px; height:100px;"/>
|
||||
</div>
|
||||
<body>
|
||||
<html>
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: SVG text reference</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<!-- set overflow to visible so that stroking near boundary won't be hidden -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%; overflow: visible;">
|
||||
<text x="0" y="100" font-size="64px" fill="transparent" stroke="green" stroke-width="2px">TEXT stroke</text>
|
||||
</svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta charset="utf-8">
|
||||
<title>webkit-text-stroke: 2px green</title>
|
||||
<link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://compat.spec.whatwg.org/#the-webkit-text-stroke">
|
||||
<meta name="assert" content="webkit-text-stroke-color should take effect">
|
||||
<link rel="match" href="webkit-text-stroke-property-005-ref.html">
|
||||
<style>
|
||||
text {
|
||||
padding-left: 0px;
|
||||
color: red;
|
||||
font-size: 64px;
|
||||
-webkit-text-fill-color: transparent;
|
||||
-webkit-text-stroke: 2px green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div style="width: 500px; height: 200px;">
|
||||
<text>TEXT stroke</text>
|
||||
<!-- need this inline-block to make sure text is rendered at the same position as the SVG reference -->
|
||||
<div style="display:inline-block; width:0px; height:100px;"/>
|
||||
</div>
|
||||
<body>
|
||||
<html>
|
Loading…
Reference in New Issue
Block a user