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

Side by Side Diff: third_party/WebKit/LayoutTests/typedcssom/styleValue-stringifier.html

Issue 2957603002: [CSS Typed OM] Re-implement ToCSSValue and AsMatrix for CSSRotation (Closed)
Patch Set: rebase Created 3 years, 5 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src='../resources/testharness.js'></script>
3 <script src='../resources/testharnessreport.js'></script>
4 <script>
5
6 var styleValues = {
7 // TODO(meade): Add each CSSStyleValue type here.
8 'initial': new CSSKeywordValue('initial'),
9 '10px': new CSSUnitValue(10, 'px'),
10 'rotate(10deg)': new CSSTransformValue(
11 [new CSSRotation(new CSSUnitValue(10, 'deg'))]),
12 };
13
14 for (var cssText in styleValues) {
15 test(function() {
16 assert_equals(styleValues[cssText].toString(), cssText);
17 assert_equals(styleValues[cssText].toString(), cssText);
18 }, 'Style value with type ' + styleValues[cssText].constructor.name +
19 'with value "' + cssText + '" serializes correctly');
20 }
21
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698