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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/background-image-size-serialization.html

Issue 1659903002: Fix background-size serializing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/background-image-size-serialization-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script src="../../resources/js-test.js"></script>
2 <style>
3 .noposition
4 {
5 background: url("foo.png");
6 background-size: contain;
7 }
8 .position1
9 {
10 background: url("foo.png");
11 background-position: 1px;
12 background-size: contain;
13 }
14 .position2
15 {
16 background: url("foo.png");
17 background-position-x: 1px;
18 background-size: contain;
19 }
20 .position3
21 {
22 background: url("foo.png");
23 background-position: 1px 1px;
24 background-size: contain;
25 }
26 </style>
27 <script>
28 var cssRules = document.styleSheets[1].cssRules;
29
30 shouldBe('cssRules.length', '4');
31 shouldBeEqualToString('cssRules[0].cssText', '.noposition { background: url("foo .png") 0% 0% / contain; }');
32 shouldBeEqualToString('cssRules[1].cssText', '.position1 { background: url("foo. png") 1px 50% / contain; }');
33 shouldBeEqualToString('cssRules[2].cssText', '.position2 { background: url("foo. png") 1px / contain; }');
34 shouldBeEqualToString('cssRules[3].cssText', '.position3 { background: url("foo. png") 1px 1px / contain; }');
35 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/background-image-size-serialization-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698