Re: [css-houdini-drafts] [css-typed-om] Stringification behavior

There's an issue for discussion here: what representation should we 
serialize?

Typed OM tries to provide a minimal representation for values - e.g. 
for positions, 'center' and '50%' are represented as identical values.
 This is the first option for serialization (minimal representation).

The old CSSOM has an arcane collection of rules around what's squashed
 and what isn't. 'center' is kept distinct from '50%' in specified 
style because keywords are represented differently to lengths. Trying 
to be faithful to these rules is the second option (existing 
representation).

A third option is to always use the source string when available 
(faithful representation).

What I've currently specced is a combination of these three 
representations, but we should work out exactly what behavior we want 
in what circumstance.

-- 
GitHub Notification of comment by shans
Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/268#issuecomment-246880094
 using your GitHub account

Received on Wednesday, 14 September 2016 01:38:27 UTC