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

Side by Side Diff: LayoutTests/fast/backgrounds/mask-box-image-width.html

Issue 81123002: Factor out common BorderImageLength code in CSSToStyleMap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add expected file too Created 7 years, 1 month 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 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <style>
6 .test * {
7 -webkit-mask-box-image-source: url(resources/dot.png);
8 -webkit-mask-box-image-slice: 3 fill;
9 width: 100px;
10 height: 100px;
11 background-color: blue;
12 visibility: hidden;
13 }
14
15 .test *:nth-child(2) {
Julien - ping for review 2013/11/24 22:53:01 Let's avoid nth-child selector, which makes the te
davve 2013/11/25 22:15:16 In combination with the next issue (about adding m
16 -webkit-mask-box-image-width: auto;
17 }
18
19 .test *:nth-child(3) {
20 -webkit-mask-box-image-width: 1;
21 }
22
23 .test *:nth-child(4) {
24 -webkit-mask-box-image-width: 0px;
25 }
Julien - ping for review 2013/11/24 22:53:01 If we are going to do some testing, how about perc
davve 2013/11/25 22:15:16 Done.
26 </style>
27 </head>
28 <body>
29 <div class="test">
30 <div></div>
31 <div></div>
32 <div></div>
33 <div></div>
34 </div>
35 <script>
36 description("Test getComputedStyle().webkitMaskBoxImageWidth");
Julien - ping for review 2013/11/24 22:53:01 That's a bit tense for a description IMO (it is ac
davve 2013/11/25 22:15:16 Done.
37 var elements = document.querySelectorAll('.test *');
38 shouldBeEqualToString("getComputedStyle(elements[0]).webkitMaskBoxImageWid th", "auto"); /* initial */
39 shouldBeEqualToString("getComputedStyle(elements[1]).webkitMaskBoxImageWid th", "auto");
40 shouldBeEqualToString("getComputedStyle(elements[2]).webkitMaskBoxImageWid th", "1");
41 shouldBeEqualToString("getComputedStyle(elements[3]).webkitMaskBoxImageWid th", "0px");
42 </script>
43 </body>
44 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/backgrounds/mask-box-image-width-expected.txt » ('j') | Source/core/css/CSSToStyleMap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698