Skip to content

Move border-image-repeat outside of mako. #19142

Closed

Description

@emilio

As part of #19015

Activity

  1. added
    A-content/css
    E-less-complex
    on Nov 8, 2017
  2. highfive commented on Nov 8, 2017

    @highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

    If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

  3. emilio commented on Nov 8, 2017

    @emilio
    MemberAuthor

    @chansuke, would you be interested in taking this? Sorry for the lag!

  4. chansuke commented on Nov 8, 2017

    @chansuke
    Contributor

    @emilio Yes!Let me try this

  5. added
    C-assigned
    on Nov 8, 2017
  6. emilio commented on Nov 8, 2017

    @emilio
    MemberAuthor

    Awesome, thanks! Let me know if you need any help :)

  7. chansuke commented on Nov 13, 2017

    @chansuke
    Contributor

    @emilio Thanks.I implemented almost everything and will send a PR.I want to ask a question about Computed value.
    The document says two keywords, one for each axis so I implemented like below but I'm not sure
    this is a right approach for components/style/values/computed/border.rs.

    /// A computed value for the `border-image-repeat` property.
    pub type BorderImageRepeat = GenericBorderImageRepeat<Stretch, Repeat, Round, Space>;
    ~~~~~~~~~~~
    impl BorderImageRepeat {
        pub fn repeat() -> Self {
            BorderImageRepeat(RepeatKeyword::horizontal, RepeatKeyword::vertical)
        }
    }
    

    Or,Need an another approach for that? Thank you.

  8. emilio commented on Nov 13, 2017

    @emilio
    MemberAuthor

    Hmm, I don't understand that, why would you use generics for that? There is a single keyword, so I was expecting something just like:

    pub struct BorderImageRepeat(RepeatKeyword, RepeatKeyword);
    
    impl BorderImageRepeat {
        pub fn repeat() -> Self {
            BorderImageRepeat(RepeatKeyword::Repeat, RepeatKeyword::Repeat)
        }
    }

    Anyway, feel free to open a PR so we can comment on the code itself :)

  9. chansuke commented on Nov 13, 2017

    @chansuke
    Contributor

    @emilio Thank you for the comment:)I will fix it and send a PR.

  10. added
    C-has-open-pr
    on Jan 22, 2018
  11. atouchet commented on Feb 3, 2018

    @atouchet
    Contributor

    @emilio can this be closed now?

  12. jdm commented on Feb 3, 2018

    @jdm
    Member

    Yes.

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/cssC-assignedC-has-open-prE-less-complex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions