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

Make VTTRegion lines be a long. #461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gkatsev
Copy link
Collaborator

@gkatsev gkatsev commented Jun 24, 2019

Because WebIDL doesn't include an unsigned int, the VTTRegion interface
specifically calls out that negative numbers should cause an
IndexSizeError, and browser implementations are in the unsigned int,
switch over to using a regular long value.
Using a long gives us the correct range and with the definition that
specifies throwing means that negative values are not allowed.

This was discussed in the 20 June, 2019 TTWG call

Fixes #457.


Preview | Diff


Preview | Diff

@gkatsev
Copy link
Collaborator Author

gkatsev commented Jun 24, 2019

Once this lands, #460 can be updated with it and web-platform-tests/wpt#17400 can be updated to remove the now unnecessary lines-long.html test.

@silviapfeiffer
Copy link
Member

Was the HTML auto-created using bikeshed?

@gkatsev
Copy link
Collaborator Author

gkatsev commented Jun 25, 2019

It was, I just cherry-picked only the relevant changes. I can make a separate update-bikeshed PR and then rebase that against it.

gkatsev added a commit to gkatsev/webvtt that referenced this pull request Jun 26, 2019
Because WebIDL doesn't include an unsigned int, the VTTRegion interface
specifically calls out that negative numbers should cause an
IndexSizeError, and browser implementations are in the unsigned int,
switch over to using a regular long value.
Using a long gives us the correct range and with the definition that
specifies throwing means that negative values are not allowed.

This was discussed in the [20 June, 2019 TTWG call](https://www.w3.org/2019/06/20-tt-minutes.html#x02)

Fixes w3c#457.
@gkatsev gkatsev changed the base branch from gh-pages to main February 27, 2023 18:09
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 this pull request may close these issues.

Change line attribute to unsigned int
2 participants