1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 01:57:44 +00:00

LibWeb: Parse "none" value for box-shadow property

Previously, `box-shadow: none` would fail to parse, meaning that in this
example:

```css
p {
  box-shadow: 20px 10px 5px magenta;
}

p.foo {
  box-shadow: none;
}
```

... a `<p class="foo">` would still have a box-shadow, when it should
not have one. Now, we handle the `none` value. :^)
This commit is contained in:
Sam Atkins 2021-10-15 19:25:27 +01:00 committed by Linus Groh
parent 7879b98f60
commit 8b57e56d66
2 changed files with 11 additions and 1 deletions

View file

@ -415,7 +415,10 @@
},
"box-shadow": {
"inherited": false,
"initial": "none"
"initial": "none",
"valid-identifiers": [
"none"
]
},
"box-sizing": {
"inherited": false,