-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Labels
Needs EditsNeeds Testcase (WPT)css-grid-1css-grid-2Subgrid; Current WorkSubgrid; Current Workcssom-1Current WorkCurrent Work
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 serializetopas0px. But Firefox serializesinsetasauto, while Blink and WebKit say0px. - For
margin: auto, all browsers serializemargin-topas0px. But Firefox serializesmarginasauto, while Blink and WebKit say0px. - For
display: grid; grid-template-rows: repeat(2, 1px), all browsers serializegrid-template-rowsas1px 1px. But Firefox and Blink serializegrid-templateasrepeat(2, 1px) / none, while WebKit says1px 1px / none. - For
display: grid; grid-template: 1px / 2pxand::before { content: ""; grid-row-end: 1 }, all browsers serializegrid-template-rowsas0px 1px. But Firefox and Blink serializegrid-templateas1px / 2px, while WebKit says0px 1px / 2px. - For
display: grid; grid-template: 1px / none; width: 100pxand::before { content: ""; grid-row-end: 1 }, all browsers serializegrid-template-rowsas0px 1pxandgrid-template-columnsas100px. But Firefox serializesgrid-templateas1px / 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
Labels
Needs EditsNeeds Testcase (WPT)css-grid-1css-grid-2Subgrid; Current WorkSubgrid; Current Workcssom-1Current WorkCurrent Work
Type
Projects
Status
Regular agenda items
Status
Regular agenda