Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html

Issue 2562643002: Avoid visually transitioning on length CSS properties when zoom changes (Closed)
Patch Set: Use setup() Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html
diff --git a/third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html b/third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html
new file mode 100644
index 0000000000000000000000000000000000000000..6a8e9f4f332fab740435043189d4bf2d498f759f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/transition-zoomed-length.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+#target {
+ transition: 1s;
+ border-style: solid;
+ outline-style: solid;
+ column-rule-style: solid;
+}
+</style>
+<div id="target"></div>
+<script>
+var lengthProperties = [
+ 'baselineShift',
+ 'borderBottomWidth',
+ 'borderLeftWidth',
+ 'borderRightWidth',
+ 'borderTopWidth',
+ 'bottom',
+ 'cx',
+ 'cy',
+ 'flexBasis',
+ 'height',
+ 'left',
+ 'letterSpacing',
+ 'marginBottom',
+ 'marginLeft',
+ 'marginRight',
+ 'marginTop',
+ 'maxHeight',
+ 'maxWidth',
+ 'minHeight',
+ 'minWidth',
+ 'offsetDistance',
+ 'outlineOffset',
+ 'outlineWidth',
+ 'paddingBottom',
+ 'paddingLeft',
+ 'paddingRight',
+ 'paddingTop',
+ 'perspective',
+ 'r',
+ 'right',
+ 'rx',
+ 'ry',
+ 'shapeMargin',
+ 'strokeDashoffset',
+ 'strokeWidth',
+ 'top',
+ 'verticalAlign',
+ 'webkitBorderHorizontalSpacing',
+ 'webkitBorderVerticalSpacing',
+ 'columnGap',
+ 'columnRuleWidth',
+ 'columnWidth',
+ 'webkitPerspectiveOriginX',
+ 'webkitPerspectiveOriginY',
+ 'webkitTransformOriginX',
+ 'webkitTransformOriginY',
+ 'webkitTransformOriginZ',
+ 'width',
+ 'wordSpacing',
+ 'x',
+ 'y',
+ 'lineHeight',
+];
+var expected = {};
+
+setup(() => {
+ for (var property of lengthProperties) {
+ target.style[property] = '10px';
+ expected[property] = getComputedStyle(target)[property];
+ }
+ internals.setZoomFactor(2);
+});
+
+for (var property of lengthProperties) {
+ test(() => {
+ assert_equals(getComputedStyle(target)[property], expected[property]);
+ }, 'Computed value of transitionable ' + property + ' should not change when zoom changes');
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698