This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the fuzzy antialiasing artifacts around the edges of the rendered…
… background/border boxes. The coordinates for each shape are doubled, the coordinate system is halved, and the coordinate origin is shifted by 1; this makes vertical/horizontal lines lie directly along a pixel rather than halfway in between, eliminating the antialiasing artifacts.
- Loading branch information
Jason Johnston
committed
Apr 30, 2010
1 parent
e03ede9
commit 66de37a
Showing
3 changed files
with
110 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<title>Tests that VML boxes are sized exactly as the main element</title> | ||
|
||
<style> | ||
|
||
body { | ||
/*background:url(border.png);*/ | ||
} | ||
|
||
.test { | ||
behavior: url(../build/PIE_uncompressed.htc); | ||
position: relative; | ||
border-radius: 1em; | ||
margin: 0 0 2em; | ||
} | ||
.control { | ||
background: #FF0000; | ||
position: absolute; | ||
} | ||
|
||
#test1, | ||
#control1 { | ||
width: 200px; | ||
height: 201px; | ||
} | ||
#test1 { | ||
background: green; | ||
-pie-background: green; | ||
} | ||
|
||
#test2, | ||
#control2 { | ||
width: 200px; | ||
height: 100px; | ||
} | ||
#test2 { | ||
-pie-background: url(background2.gif); | ||
} | ||
|
||
|
||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<div id="control1" class="control">test 1</div> | ||
<div id="test1" class="test">test 1</div> | ||
|
||
<div id="control2" class="control">test 1</div> | ||
<div id="test2" class="test">test 1</div> | ||
</body> | ||
</html> |