Skip to content

Conversation

@majido
Copy link
Contributor

@majido majido commented Jun 25, 2020

Fixing #5202 and #5211

Changes:

  • Fix IDL to make source nullable.
  • In CSS source will accept 'auto' and 'none' with none
    mapping to null.
  • In JS, we now map missing 'source' to document scrolling element
    (i.e., auto behavior) and explicitly null 'source' to null.
  • Correctly check null source when calculating offsets.

Other minor cleanups.

Changes:
 - Fix IDL to make source nullable.
 - In CSS source will accept 'auto' and 'none' with none
   mapping to null.
 - In JS, we now map missing 'source' to document scrolling element
   (i.e., auto behavior) and explicitly null 'source' to null.
 - Correctly check null source when calculating offsets.

Other minor cleanups.
@majido majido requested a review from birtles June 25, 2020 16:05
Copy link
Contributor

@birtles birtles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with some sort of fix to the early return issue.

@majido majido merged commit c705130 into w3c:master Jun 26, 2020
@majido
Copy link
Contributor Author

majido commented Jun 30, 2020

Spec is fixed. Have filed a bug to fix Chromium implementation.

andruud pushed a commit to andruud/csswg-drafts that referenced this pull request Aug 21, 2020
…source

Follow-up to w3c#5263, which specifies that a "missing" source shall
result in using the Document's scrollingElement, but if we give
source a default value of null, it can never be missing.
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.

2 participants