Bug 1833491 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

wpt.fyi:
https://wpt.fyi/results/css/css-grid/parsing/grid-template-shorthand-areas-valid.html

Direct link to test:
http://wpt.live/css/css-grid/parsing/grid-template-shorthand-areas-valid.html

The test does the following:
```
let elem = document.documentElement;
elem.style.gridTemplate = "none / 1px" ;
elem.style.gridTemplateAreas = "";
elem.style.gridTemplateAreas = "a";
```
...and then it inspects `elem.style.gridTemplate`.


The second to last line there, clearing out `grid-template-areas`, seems to also reset the serialization of the `grid-template` shorthand property itself. If I skip over that line (and go directly to the assignment to `"a"`, then the serialization doesn't get stomped on.
wpt.fyi:
https://wpt.fyi/results/css/css-grid/parsing/grid-template-shorthand-areas-valid.html

Direct link to test:
http://wpt.live/css/css-grid/parsing/grid-template-shorthand-areas-valid.html

The test does something like the following:
```
let elem = document.documentElement;
elem.style.gridTemplate = "none / 1px" ;
elem.style.gridTemplateAreas = "";
elem.style.gridTemplateAreas = "a";
```
...and then it inspects `elem.style.gridTemplate`.


The second to last line there, clearing out `grid-template-areas`, seems to also reset the serialization of the `grid-template` shorthand property itself. If I skip over that line (and go directly to the assignment to `"a"`, then the serialization doesn't get stomped on.
wpt.fyi:
https://wpt.fyi/results/css/css-grid/parsing/grid-template-shorthand-areas-valid.html

Direct link to test:
http://wpt.live/css/css-grid/parsing/grid-template-shorthand-areas-valid.html

The test does something like the following:
```
let elem = document.documentElement;
elem.style.gridTemplate = "none / 1px" ;
elem.style.gridTemplateAreas = "";
elem.style.gridTemplateAreas = '"a"';
```
...and then it inspects `elem.style.gridTemplate`.


The lines that adjust `grid-template-areas` seem to also reset the serialization of the `grid-template` shorthand property itself.

Back to Bug 1833491 Comment 0