OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 #testDiv::before { |
| 6 background-image: url(http://dummy/bg.svg#frag1); |
| 7 } |
| 8 #testDiv::after { |
| 9 background-image: url(http://dummy/bg.svg#frag2); |
| 10 } |
| 11 </style> |
| 12 <div id="testDiv"></div> |
| 13 <script> |
| 14 test(() => { |
| 15 assert_equals(getComputedStyle(testDiv, "::before").backgroundImage, 'url("h
ttp://dummy/bg.svg#frag1")', "Computed backgroundImage of #testDiv::before."); |
| 16 assert_equals(getComputedStyle(testDiv, "::after").backgroundImage, 'url("ht
tp://dummy/bg.svg#frag2")', "Computed backgroundImage of #testDiv::after."); |
| 17 }, "Computed background-image of generated content contains correct fragment ide
ntifier."); |
| 18 </script> |
OLD | NEW |