[cssom][css3-values] Serialization of initial from shorthand

When you serialize properties which have been set to its initial value by  
a shorthand, and the UA supports the 'initial' keyword, should the  
serialization use the 'initial' keyword or the actual initial value?

Example:

<style>
   p {
     background-position: center;
     background: blue;
   }
</style>
<script>
   alert(document.styleSheets[0].cssRules[0].style.backgroundPosition);
</script>

Output "0% 0%" or "initial"?


Also, is an explicit use of 'initial' different?:

<style>
   p {
     background-position: initial;
   }
</style>
<script>
   alert(document.styleSheets[0].cssRules[0].style.backgroundPosition);
</script>

Output "0% 0%" or "initial"?


-- 
Rune Lillesveen

Received on Monday, 24 June 2013 12:17:43 UTC