Skip to content

Implement HTMLElement.style #1721

Closed
Closed

Description

Activity

  1. bzbarsky commented on Feb 20, 2014

    @bzbarsky
    Contributor

    The PutForwards is not needed for web compat, fwiw; I think Gecko is the only engine implementing it so far.

    The CSS props come from the spec text that says:

    For each CSS property property that is a supported CSS property, the following partial interface
    applies where camel-cased attribute is obtained by running the CSS property to IDL attribute
    algorithm for property.

    and following IDL.

    In general, the CSSOM spec is ... unreliable and you shouldn't trust it too much. :(

  2. bzbarsky commented on Feb 20, 2014

    @bzbarsky
    Contributor

    Oh, yeah, that too. CSSStyleDeclaration is misused in current browser CSSOM for things inside font-face rules, which is why the props all live on CSS2Properties instead. There are a bunch of open issues on this spec. :(

  3. jdm commented on Apr 21, 2014

    @jdm
    MemberAuthor

    I propose the following to get us off the ground:

  4. self-assigned this
    on May 9, 2014
  5. added a commit that references this issue on May 12, 2014
  6. assigned and unassigned on Sep 18, 2014
  7. jdm commented on Sep 18, 2014

    @jdm
    MemberAuthor

    I'm doing the exploratory work to get this off the ground. Follow along at https://github.com/jdm/servo/tree/cssom.

  8. jdm commented on Sep 21, 2014

    @jdm
    MemberAuthor

    So much progress! The value serialization is still largely incorrect, but the getters and setters appear to work as expected! I haven't come up with a nice way to share the list of supported properties between libstyle and CSS2Properties.webidl, though, so I welcome suggestions. Lots of tests need to be written, too, and I should investigate what's already available in wpt.

  9. bzbarsky commented on Sep 21, 2014

    @bzbarsky
    Contributor

    Please note that for web compat you'll need the "dashed" versions of the properties as well.

  10. SimonSapin commented on Sep 21, 2014

    @SimonSapin
    Member

    I haven't come up with a nice way to share the list of supported properties between libstyle and CSS2Properties.webidl, though, so I welcome suggestions.

    That’d be nice, but in the meantime do we get build errors if the lists don’t match?

  11. jdm commented on Sep 21, 2014

    @jdm
    MemberAuthor

    No build errors yet, just property undefined errors if one's missing from the WebIDL or an empty string if it's missing from libstyle.

  12. jdm commented on Sep 21, 2014

    @jdm
    MemberAuthor
  13. bzbarsky commented on Sep 21, 2014

    @bzbarsky
    Contributor
  14. added this to the milestone on Oct 23, 2014
  15. added a commit that references this issue on Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/domB-interesting-project

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions