Skip to content

Properly use [PutForwards] like we should in WebIDL interfaces #9990

Closed

Description

@nox

See #9350.

Activity

  1. added
    A-content/dom
    C-needs-test
    on Mar 14, 2016
  2. jdm commented on Mar 14, 2016

    @jdm
    Member

    Specifically, the PR looks good but is missing tests that the attributes using PutForwards do what they're supposed to.

  3. tbu- commented on Mar 15, 2016

    @tbu-

    I'd like to try this.

  4. jdm commented on Mar 15, 2016

    @jdm
    Member

    @tbu- Please do! Ask questions here if anything's unclear :)

  5. added
    C-assigned
    on Mar 15, 2016
  6. removed
    C-assigned
    on Apr 9, 2016
  7. nox commented on Oct 1, 2017

    @nox
    ContributorAuthor

    This still hasn't been done.

  8. pshaughn commented on Dec 12, 2019

    @pshaughn
    Contributor

    #25037 and #25038 were me not realizing that ElementCSSInlineStyle.webidl has the PutForwards part of HTMLElement.style commented out entirely.

  9. nox commented on Jan 6, 2020

    @nox
    ContributorAuthor

    Oops, misclick.

  10. reopened this on Jan 6, 2020
  11. added
    B-high-value
    on Jan 6, 2020
  12. jdm commented on Jan 6, 2020

    @jdm
    Member

    Marking this as high-value because code like foo.style = "display: none" just silently does not work in Servo right now, which likely leads to web compat issues.

  13. pshaughn commented on Jan 7, 2020

    @pshaughn
    Contributor

    I've tried to find every location that defines a PutForwards and note its current status. The only implemented attributes with a missing PutForwards appear to be ElementCSSInlineStyle.cssText and multiple instances of .relList, although it's possible I missed a relevant spec.

    from WHATWG HTML:

    • Document.location - already PutForwards in Servo
    • Window.location - already PutForwards in Servo
    • HTMLIFrameElement.sandbox - already PutForwards in Servo
    • HTMLAnchorElement.relList - attribute exists in Servo without PutForwards
    • HTMLAreaElement.relList - attribute exists in Servo without PutForwards
    • HTMLLinkElement.relList - attribute exists in Servo without PutForwards
    • HTMLFormElement.relList - attribute is entirely absent in Servo
    • HTMLLinkElement.sizes - attribute is commented out in Servo
    • HTMLOutputElement.htmlFor - attribute is commented out in Servo

    From CSSOM:

    • CSSStyleRule.cssText - already PutForwards in Servo
    • ElementCSSInlineStyle.cssText - attribute exists in Servo with commented-out PutForwards
    • CSSImportRule.mediaText - attribute is commented out in Servo
    • Stylesheet.mediaText - attribute is commented out in Servo
    • CSSPageRule.cssText - no IDL in servo
    • CSSMarginRule.cssText - no IDL in servo

    From CSS Fonts Module:

    • CSSFontFaceRule.style - not PutForwards in spec, attribute with PutForwards is commented out in Servo (probably just cut and paste from other CSS*Rule IDL)
  14. pshaughn commented on Jan 7, 2020

    @pshaughn
    Contributor

    The ElementCSSInlineStyle.cssText case has tests for it (and pass when the PutForwards is included); the .relList cases seem to be missing test coverage for PutForwards behavior.

  15. added a commit that references this issue on Jan 7, 2020
  16. pshaughn commented on Jan 7, 2020

    @pshaughn
    Contributor

    As far as I can tell, assuming the above PR merges, we will be up-to-date on [PutForwards] with respect to attributes that currently exist in Servo's IDL, and remaining lack of PutForwards behavior is because the entire attribute is unimplemented.

  17. added 3 commits that reference this issue on Jan 23, 2020
  18. jdm commented on Jan 23, 2020

    @jdm
    Member

    This should be fixed now!

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

    A-content/domB-high-valueC-needs-test

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions