forked from chromium/chromium
-
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.
CSS Motion Path: Use counter for offset-rotate
offset-rotate now has a distinct use counter from offset-rotation. update_use_counter_css.py has been updated to take into account the effects of git cl format on UseCounter.cpp, where the case and return statements are now on separate lines. BUG=672264 Review-Url: https://codereview.chromium.org/2554263002 Cr-Commit-Position: refs/heads/master@{#437228}
- Loading branch information
1 parent
110efb2
commit 0e27a99
Showing
6 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-motion-rotation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
</head> | ||
|
||
<div id="target" class="p"></div> | ||
<script> | ||
test(function() { | ||
assert_false(internals.isCSSPropertyUseCounted(document, "motion-rotation")); | ||
|
||
var styleElement = document.createElement('style'); | ||
styleElement.textContent = ".p { motion-rotation: 0deg; }"; | ||
document.head.appendChild(styleElement); | ||
getComputedStyle(target); | ||
|
||
assert_true(internals.isCSSPropertyUseCounted(document, "motion-rotation")); | ||
assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotation")); | ||
assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotate")); | ||
}); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-offset-rotate.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
</head> | ||
|
||
<div id="target" class="p"></div> | ||
<script> | ||
test(function() { | ||
assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotate")); | ||
|
||
var styleElement = document.createElement('style'); | ||
styleElement.textContent = ".p { offset-rotate: 0deg; }"; | ||
document.head.appendChild(styleElement); | ||
getComputedStyle(target); | ||
|
||
assert_true(internals.isCSSPropertyUseCounted(document, "offset-rotate")); | ||
assert_false(internals.isCSSPropertyUseCounted(document, "motion-rotation")); | ||
assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotation")); | ||
}); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
third_party/WebKit/LayoutTests/css3/motion-path/property-use-count-offset-rotation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
</head> | ||
|
||
<div id="target" class="p"></div> | ||
<script> | ||
test(function() { | ||
assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotation")); | ||
|
||
var styleElement = document.createElement('style'); | ||
styleElement.textContent = ".p { offset-rotation: 0deg; }"; | ||
document.head.appendChild(styleElement); | ||
getComputedStyle(target); | ||
|
||
assert_true(internals.isCSSPropertyUseCounted(document, "offset-rotation")); | ||
assert_false(internals.isCSSPropertyUseCounted(document, "motion-rotation")); | ||
assert_false(internals.isCSSPropertyUseCounted(document, "offset-rotate")); | ||
}); | ||
</script> |
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