OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <script> | |
5 'use strict'; | |
6 | |
7 test(() => { | |
8 let ThreeValuedPositionBackgroundPosition = 1983; // From UseCounter.h | |
Bugs Nash
2017/05/22 23:07:09
should this be named differently from UseCounter.h
Eric Willigers
2017/05/23 03:20:01
I have copied the convention from other use counte
| |
9 | |
10 let isCounted = () => internals.isUseCounted(document, ThreeValuedPositionBa ckgroundPosition); | |
11 var div = document.createElement('div'); | |
12 | |
Bugs Nash
2017/05/22 23:07:09
some tests make sure that other properties with th
Eric Willigers
2017/05/23 03:20:01
Comments added. clearing the use counter is not po
| |
13 div.style = 'background: left;'; | |
14 div.style = 'background: left 10%;'; | |
15 div.style = 'background: left 10% top 20%;'; | |
16 assert_false(isCounted(), | |
17 '1,2,4 values should not be counted'); | |
18 | |
19 div.style = 'background: left 10% top;'; | |
20 assert_true(isCounted(), | |
21 'background should be counted'); | |
22 }, 'Three valued position syntax is use counted for background'); | |
23 </script> | |
OLD | NEW |