- From: <bugzilla@jessica.w3.org>
- Date: Thu, 01 Mar 2012 19:39:05 +0000
- To: public-css-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16185
Summary: Serialization of <angle> and <family-name> don't match
browsers
Product: CSS
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: CSSOM
AssignedTo: dave.null@w3.org
ReportedBy: ayg@aryeh.name
QAContact: public-css-bugzilla@w3.org
Really this should be two bugs, but I'm lazy.
Test-case:
data:text/html,<!doctype html>
<body style="font-family: Times New Roman, Arial, 'Ahem!', 'serif', serif;
transform:rotate(100grad)">
<script>
document.documentElement.textContent =
document.body.style.fontFamily
+ "; " +
document.body.style.transform
</script>
Font-family is serialized as:
IE10 Developer Preview: Times New Roman, Arial, "Ahem!", "serif", serif
Firefox 13.0a1: Times New Roman,Arial,'Ahem!','serif',serif
Chrome 18 dev: 'Times New Roman', Arial, 'Ahem!', serif, serif
Opera Next 12.00 alpha: "Times New Roman", "Arial", "Ahem!", "serif", serif
Spec seems to say like Opera, except it says to string-escape the unquoted
"serif" too (which is definitely not right). I suggest instead that the family
name be string-escaped if it has to be, i.e., if it contains special characters
or matches one of the built-in keywords like serif. Multiword font names that
contain no special characters should not be quoted, see
<https://bugs.webkit.org/show_bug.cgi?id=79448>. Double quotes should be used
for consistency.
Transform (mind the prefixes) is serialized as "rotate(100grad)" in every
browser except Opera, which serializes it as "rotate(90deg)". The spec seems
to support Opera, but I suspect that's just an error, maybe dating back to a
time when deg was the only angle unit. Angles should serialize like lengths,
as the appropriate <number> followed by the unit in canonical form.
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 1 March 2012 19:39:07 UTC