- From: Jonathan Chan via GitHub <sysbot+gh@w3.org>
- Date: Tue, 06 Jun 2017 20:18:39 +0000
- To: public-css-archive@w3.org
jyc has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-syntax] "Serializing <an+b>" doesn't match what Firefox or Safari do == The "Serializing <an+b>" matches what Chrome does, but not what Safari or Firefox does. This section is referred to by the ["Serializing Selectors" section of CSS OM](https://drafts.csswg.org/cssom/#the-cssstyledeclaration-interface). Firefox just writes `n` when `a` is 1, while Safari separates fields with spaces. With the following page, here are some example serializations given by Firefox, Chrome, and Safari: ``` <style type="text/css"> :nth-child(X){} </style> <script type="text/javascript"> console.log(document.styleSheets[0].cssRules[0].cssText); </script> ``` :nth-child(X) | Firefox | Chrome | Safari ---|---|---|--- `1n - 0` | `n` | `1n` | `1n - 0` `n + 1` | `n+1` | `1n+1` | `n + 1` `-n - 5` | `-n-5` | `-n-5` | `-n - 5` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1504 using your GitHub account
Received on Tuesday, 6 June 2017 20:18:46 UTC