forked from burg/timelapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2008-08-21 Chris Marrin <cmarrin@apple.com>
Allow 0 (without units) for Time eg. duration Fix for https://bugs.webkit.org/show_bug.cgi?id=20467 Reviewed by Dave Hyatt. Test: css1/units/zero-duration-without-units.html * css/CSSParser.cpp: (WebCore::CSSParser::validUnit): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
dino@apple.com
committed
Aug 21, 2008
1 parent
ca11cd8
commit aa75e4c
Showing
5 changed files
with
72 additions
and
2 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
3 changes: 3 additions & 0 deletions
3
LayoutTests/css1/units/zero-duration-without-units-expected.txt
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,3 @@ | ||
Box should start moving left after left style is reset after 500ms | ||
|
||
PASS |
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,44 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
"http://www.w3.org/TR/html4/loose.dtd"> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>Zero Duration Without Units</title> | ||
<style type="text/css" media="screen"> | ||
#box { | ||
height: 100px; | ||
width: 100px; | ||
background-color: blue; | ||
-webkit-transition-property: top, left; | ||
-webkit-transition-duration: 1s; | ||
-webkit-transition-duration: 0; | ||
-webkit-transition-timing-function: linear; | ||
} | ||
</style> | ||
<script type="text/javascript" charset="utf-8"> | ||
if (window.layoutTestController) { | ||
layoutTestController.dumpAsText(); | ||
layoutTestController.waitUntilDone(); | ||
} | ||
|
||
function test() | ||
{ | ||
var box = document.getElementById('box'); | ||
var dur = parseInt(window.getComputedStyle(box).webkitTransitionDuration); | ||
document.getElementById('result').innerHTML = (dur == 0) ? "PASS" : "FAIL"; | ||
if (window.layoutTestController) | ||
layoutTestController.notifyDone(); | ||
} | ||
window.addEventListener('load', test, false) | ||
</script> | ||
</head> | ||
<body> | ||
|
||
<p>Box should start moving left after left style is reset after 500ms</p> | ||
<div id="box"> | ||
</div> | ||
<div id="result"> | ||
</div> | ||
</body> | ||
</html> |
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