mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Add more test codes for border-style. And remove a file for same test
This commit is contained in:
parent
160753ee27
commit
f96a0ac8b4
4 changed files with 41 additions and 30 deletions
|
@ -1,4 +0,0 @@
|
||||||
img {
|
|
||||||
border-width: 10px;
|
|
||||||
border-color: blue
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link rel="stylesheet" href="test-border.css" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<img src="test.jpeg"></img>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
<HTML>
|
|
||||||
<HEAD>
|
|
||||||
<TITLE>Examples of margins, padding, and borders</TITLE>
|
|
||||||
<STYLE type="text/css">
|
|
||||||
LI.withborder {
|
|
||||||
border-style: dashed;
|
|
||||||
border-width: 10px;
|
|
||||||
border-color: yellow black red green;
|
|
||||||
}
|
|
||||||
</STYLE>
|
|
||||||
</HEAD>
|
|
||||||
<BODY>
|
|
||||||
<LI class="withborder">Second element of list is a bit longer to illustrate wrapping.
|
|
||||||
</BODY>
|
|
||||||
</HTML>
|
|
41
src/test/html/test_border.html
Executable file
41
src/test/html/test_border.html
Executable file
|
@ -0,0 +1,41 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style>
|
||||||
|
#none{
|
||||||
|
border-style: none;
|
||||||
|
border-width: 10px;
|
||||||
|
border-color: green red yellow black;
|
||||||
|
}
|
||||||
|
#hidden{
|
||||||
|
border-style: hidden;
|
||||||
|
border-width: 10px;
|
||||||
|
border-color: green red yellow black;
|
||||||
|
}
|
||||||
|
#solid{
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 10px;
|
||||||
|
border-color: yellow green red black;
|
||||||
|
}
|
||||||
|
#dashed{
|
||||||
|
border-style: dashed;
|
||||||
|
border-width: 10px;
|
||||||
|
border-color: green yellow black red;
|
||||||
|
}
|
||||||
|
#dotted{
|
||||||
|
border-style: dotted;
|
||||||
|
border-width: 10px;
|
||||||
|
border-color: green red yellow black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="none"> none test.</div>
|
||||||
|
<div id="hidden"> hidden test.</div>
|
||||||
|
<!-- It doesn't work well yet. -->
|
||||||
|
<div id="solid"> solid test</div>
|
||||||
|
<!-- It shows almost same result with firefox. -->
|
||||||
|
<div id="dashed"> dashed test</div>
|
||||||
|
<!-- It doesn't show anything yet. -->
|
||||||
|
<div id="dotted"> dotted test. (dotted isn't supported yet)</div>
|
||||||
|
</body>
|
||||||
|
</HTML>
|
Loading…
Add table
Add a link
Reference in a new issue