Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revisions to insertRule and deleteRule have algorithmic definitions that don't quite work #68

Closed
dbaron opened this issue Dec 12, 2018 · 3 comments · Fixed by #69
Closed

Comments

@dbaron
Copy link
Contributor

dbaron commented Dec 12, 2018

The revisions to insertRule and deleteRule in https://wicg.github.io/construct-stylesheets/index.html#modifying-constructed-stylesheets have a few problems:

  • they use a rule variable that isn't defined (and fixing this probably requires inserting new bits into the middle of the existing algorithm)
  • insertRule takes a different number of arguments as the original
  • they use different argument names from the original
@dbaron
Copy link
Contributor Author

dbaron commented Dec 12, 2018

(I got here from w3ctag/design-reviews#308.)

@rakina
Copy link
Member

rakina commented Dec 12, 2018

Ooh, yeah. And deleteRule shouldn't have the thing about @imports as well. I don't really understand what you meant by " (and fixing this probably requires inserting new bits into the middle of the existing algorithm)"? Since it's an argument to the function, can't we just reference it?

@dbaron
Copy link
Contributor Author

dbaron commented Dec 12, 2018

The thing that's an argument to the function is just a string of text, so the thing that parses it has to come before a test of whether it's an @import rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants