[csswg-drafts] [css-syntax] consuming blocks inside a declaration's value (#3629)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax] consuming blocks inside a declaration's value ==
(migrated from mailing list)

**Daniel Glazman said:**

> I think there is an error in
> 
>   http://dev.w3.org/csswg/css-syntax/#consume-a-declaration
> 
> This does not handle the following case:
> 
> ```
>   <style>
>     p { color: red { ; background-color: red ; }
>   </style>
>   <p>blah</p>
> ```
> 
> No redness should show. But the current declaration consumption
> will parse the style rule above as
> 
> color: red {
> and     
> background-color: red
> 
> showing then a red background. Declarations need to consume all
> nested blocks.

------------

**Tab Atkins said:**

> In the "Consume a list of declarations" algo, actually.  (I was very
> confused, because "consume a declaration" properly uses "consume a
> component value" where it's supposed to.)  Thanks, fixed.
> 
> I also discovered a lingering off-by-one-token bug in the "parse a
> declaration" API entry point, which is now fixed.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3629 using your GitHub account

Received on Thursday, 7 February 2019 22:51:11 UTC