Skip to content
Permalink
Browse files

Ignore order when parsing inset and color for box-shadow

According to the spec [1], box-shadow should allow the inset keyword and
a color in any order. Our implementation allowed only 2 out of the 4
possible orders; fix our parsing to match the spec.

[1]: https://drafts.csswg.org/css-backgrounds/#typedef-shadow

Bug: 811083
Change-Id: I54c3d15c177702624994c45044b446fd82fc9d98
Reviewed-on: https://chromium-review.googlesource.com/911994
Commit-Queue: Chris Nardi <cnardi@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#536270}
  • Loading branch information...
csnardi authored and chromium-wpt-export-bot committed Feb 13, 2018
1 parent 826c76d commit f27d18849902bd9d995cbcd67342244c0e43b0e8
@@ -21,7 +21,7 @@
}
.inset {
color: green;
height: 13px;
height: 12px;
margin: -1px 0 -4px -4px;
}
@@ -10,6 +10,7 @@
border: solid green 4px;
padding-top: 1px;
border-style: none none solid solid;
height: 7px;
}
</style>
</head>

0 comments on commit f27d188

Please sign in to comment.
You can’t perform that action at this time.