diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-06-05 23:19:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-05 23:19:31 -0700 |
commit | eaa01223a7add99ce4cc241b686100856b7594d6 (patch) | |
tree | 40be7834cf405aa5f63390cba605862b08520861 /components/script/dom/bindings/codegen/parser | |
parent | 6ce567b776292bec2e9dd3489a8f29fa89970c9e (diff) | |
parent | 3bd78873df4bb63af08890fca6bdeab3064d4431 (diff) | |
download | servo-eaa01223a7add99ce4cc241b686100856b7594d6.tar.gz servo-eaa01223a7add99ce4cc241b686100856b7594d6.zip |
Auto merge of #17173 - Manishearth:supports-fixes, r=upsuper
Stop parsing @supports rules before Delimiter::Bang
Fixes #15482
Shorthand parsing uses `parse_entirely`, so we have to ask it to stop before the `!important`.
An alternate fix is to not use `parse_entirely` there and ensuring that all callers of `PropertyDeclaration::parse_into()` check that the input is exhausted. Two of the three callers do that anyway because they check for `!important`.
We also weren't checking for the end of the parser for `CSS.supports()`.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17173)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/codegen/parser')
0 files changed, 0 insertions, 0 deletions