mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: [css-grid] Make empty and all-whitespace strings in 'grid-template-areas' invalid.
Differential Revision: https://phabricator.services.mozilla.com/D84398
This commit is contained in:
parent
780beace00
commit
5382a99adb
1 changed files with 5 additions and 0 deletions
|
@ -710,6 +710,11 @@ impl TemplateAreas {
|
||||||
});
|
});
|
||||||
current_area_index = Some(index);
|
current_area_index = Some(index);
|
||||||
}
|
}
|
||||||
|
if column == 0 {
|
||||||
|
// Each string must produce a valid token.
|
||||||
|
// https://github.com/w3c/csswg-drafts/issues/5110
|
||||||
|
return Err(());
|
||||||
|
}
|
||||||
if let Some(index) = current_area_index {
|
if let Some(index) = current_area_index {
|
||||||
if areas[index].columns.end != column + 1 {
|
if areas[index].columns.end != column + 1 {
|
||||||
assert_ne!(areas[index].rows.start, row);
|
assert_ne!(areas[index].rows.start, row);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue