Skip to content

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

Closed

Description

@dbaron

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

Activity

  1. dbaron commented on Dec 12, 2018

    @dbaron
    ContributorAuthor

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

  2. rakina commented on Dec 12, 2018

    @rakina
    Member

    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?

  3. dbaron commented on Dec 12, 2018

    @dbaron
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions