Skip to content

Commit

Permalink
[cssom] Throw on empty 'nested declarations rule' insertion
Browse files Browse the repository at this point in the history
The current text expects 'parse a CSS declaration block' to return
a syntax error, which it never actually returns.

Follow-up to 7d8f87c.
  • Loading branch information
andruud authored and emilio committed Jul 2, 2024
1 parent 1f2cb52 commit 1839d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cssom-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,7 @@ follow these steps:
<ul>
<li> Set <var>declarations</var> to the results of performing <a>parse a CSS declaration block</a>,
on argument <var>rule</var>.
<li> If <var>declarations</var> is a syntax error, <a>throw</a> a {{SyntaxError}} exception.
<li> If <var>declarations</var> is empty, <a>throw</a> a {{SyntaxError}} exception.
<li> Otherwise, set <var>new rule</var> to a new [=nested declarations rule=]
with <var>declarations</var> as it contents.
</ul>
Expand Down

0 comments on commit 1839d6a

Please sign in to comment.