Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / animation-pseudo-rem.html
blob8fb5a38128dd59c68b876ae2f5d6491390298ebc
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <style>
5 :root {
6 font-size: 1234px;
8 @keyframes remAnimation {
9 from {
10 width: 10rem;
12 to {
13 width: 10rem;
16 #element:before {
17 content: '';
18 display: block;
19 animation: remAnimation 1s forwards;
21 </style>
22 <div id='element'></div>
24 <script>
25 test(function() {
26 assert_equals(getComputedStyle(element, ':before').width, '12340px');
27 }, 'Check rem is calculated in animation keyframe');
28 </script>