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 = 2001; // From UseCounter.h |
| 9 |
| 10 let isCounted = () => internals.isUseCounted(document, ThreeValuedPositionBa
ckgroundPosition); |
| 11 var div = document.createElement('div'); |
| 12 |
| 13 // usecounter-position3value-background-position.html |
| 14 // tests that other position-using properties do not |
| 15 // increment the counter. |
| 16 |
| 17 div.style = 'background: left;'; |
| 18 div.style = 'background: left 10%;'; |
| 19 div.style = 'background: left 10% top 20%;'; |
| 20 assert_false(isCounted(), |
| 21 '1,2,4 values should not be counted'); |
| 22 |
| 23 div.style = 'background: left 10% top;'; |
| 24 assert_true(isCounted(), |
| 25 'background should be counted'); |
| 26 }, 'Three valued position syntax is use counted for background'); |
| 27 </script> |
OLD | NEW |