-
Notifications
You must be signed in to change notification settings - Fork 759
[css-highlight-api] should priority be a floating point number or an integer? #4592
Copy link
Copy link
Closed
Closed
Copy link
Labels
#4591), should the highlight priority be an integer instead of a double?
Downside of integers: likely to be used like BASIC line numbers, counting in 10s (or in 100s) to make insertion between two layers easy. Workable, but clumsy.
Downside of doubles: depending on the internal precision used to store these, in some browsers two very close numbers could be considered equal, while in other browsers they would be different. Depending on the order of insertion into CSS.highlights, this could result in the opposite ordering, and therefore interop problems.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Issue actions