W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

Re: [csswg-drafts] [css-cascade] About omitted subproperty value in shorthand

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Fri, 03 Mar 2017 00:12:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-283824499-1488499927-sysbot+gh@w3.org>
A probably more interesting one:
```html
<!DOCTYPE html>
<div style="background: none, none"></div>
<script>
var elem = document.querySelector('div');
alert(elem.style.cssText);
elem.style.backgroundPosition = elem.style.backgroundPosition;
alert(elem.style.cssText);
elem.style.cssText = elem.style.cssText;
alert(elem.style.cssText);
</script>
```
This has different behavior between Chrome and Safari, and they both 
fail to round-trip in this case. Their three output of `cssText` are 
completely different.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1068#issuecomment-283824499
 using your GitHub account
Received on Friday, 3 March 2017 00:12:15 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:29 UTC