<!DOCTYPE html><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><divid='container'><divid='element'></div></div><script>varcontainer=document.getElementById('container');varelement=document.getElementById('element');test(function(){varkeyframes=[{fontSize:'larger'},{fontSize:'larger'}];container.style.fontSize='small';varplayer=element.animate(keyframes,10);player.pause();player.currentTime=5;fontSize=getComputedStyle(element).fontSize;container.style.fontSize='medium';assert_not_equals(getComputedStyle(element).fontSize,fontSize);},'Relative font size larger responsive to style changes');test(function(){varkeyframes=[{fontSize:'smaller'},{fontSize:'smaller'}];container.style.fontSize='large';varplayer=element.animate(keyframes,10);player.pause();player.currentTime=5;fontSize=getComputedStyle(element).fontSize;container.style.fontSize='medium';assert_not_equals(getComputedStyle(element).fontSize,fontSize);},'Relative font size smaller responsive to style changes');test(function(){varkeyframes=[{fontSize:'medium'},{fontSize:'medium'}];container.style.fontFamily='cursive';varplayer=element.animate(keyframes,10);player.pause();player.currentTime=5;fontSize=getComputedStyle(element).fontSize;container.style.fontFamily='monospace';assert_not_equals(getComputedStyle(element).fontSize,fontSize);},'Font size medium responsive to style changes');test(function(){varkeyframes=[{fontSize:'initial'},{fontSize:'initial'}];container.style.fontFamily='monospace';varplayer=element.animate(keyframes,10);player.pause();player.currentTime=5;fontSize=getComputedStyle(element).fontSize;container.style.fontFamily='serif';assert_not_equals(getComputedStyle(element).fontSize,fontSize);},'Font size initial responsive to style changes');</script>