Open
Description
Let's say that the longhands of a shorthand have a resolved value which is different than their computed value.
How should the shorthand serialize? Some examples:
- For
position: relative; inset: auto
, all browsers serializetop
as0px
. But Firefox serializesinset
asauto
, while Blink and WebKit say0px
. - For
margin: auto
, all browsers serializemargin-top
as0px
. But Firefox serializesmargin
asauto
, while Blink and WebKit say0px
. - For
display: grid; grid-template-rows: repeat(2, 1px)
, all browsers serializegrid-template-rows
as1px 1px
. But Firefox and Blink serializegrid-template
asrepeat(2, 1px) / none
, while WebKit says1px 1px / none
. - For
display: grid; grid-template: 1px / 2px
and::before { content: ""; grid-row-end: 1 }
, all browsers serializegrid-template-rows
as0px 1px
. But Firefox and Blink serializegrid-template
as1px / 2px
, while WebKit says0px 1px / 2px
. - For
display: grid; grid-template: 1px / none; width: 100px
and::before { content: ""; grid-row-end: 1 }
, all browsers serializegrid-template-rows
as0px 1px
andgrid-template-columns
as100px
. But Firefox serializesgrid-template
as1px / none
, Blink as1px / 100px
, and WebKit as0px 1px / 100px
.
Grid is especially nonsensical.
I tend to agree with WebKit: shorthands should serialize as if the computed value of the longhands was their resolved value.
Metadata
Metadata
Assignees
Type
Projects
Status
Regular agenda items
Status
Regular agenda