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

Custom properties, take 2 #7555

Merged
merged 10 commits into from Sep 17, 2015
Merged

Custom properties, take 2 #7555

merged 10 commits into from Sep 17, 2015

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented Sep 7, 2015

Support var() in shorthand properties, and fix various bugs.

r? @pcwalton

Review on Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented Sep 8, 2015

The latest upstream changes (presumably #7561) made this pull request unmergeable. Please resolve the merge conflicts.

@SimonSapin SimonSapin force-pushed the SimonSapin:custom-properties++ branch from a13b28f to f5999b7 Sep 8, 2015
@bors-servo
Copy link
Contributor

bors-servo commented Sep 9, 2015

The latest upstream changes (presumably #7576) made this pull request unmergeable. Please resolve the merge conflicts.

@SimonSapin SimonSapin force-pushed the SimonSapin:custom-properties++ branch from f5999b7 to a88dc2e Sep 9, 2015
@SimonSapin
Copy link
Member Author

SimonSapin commented Sep 9, 2015

Rebased.

@jdm jdm removed the S-needs-rebase label Sep 9, 2015
@SimonSapin SimonSapin force-pushed the SimonSapin:custom-properties++ branch from a88dc2e to a41cbed Sep 9, 2015
@SimonSapin
Copy link
Member Author

SimonSapin commented Sep 9, 2015

The remaining failing css-variables tests are:

  • Those with supports in the name fail because we don’t implement @support
  • w3c/csswg-test#853 should fix those with font-face in the name
  • test_variable_legal_values.htm fails because we don’t support stylesheet updates. This PR adds a copy that uses a style attribute instead and passes.
@SimonSapin SimonSapin force-pushed the SimonSapin:custom-properties++ branch from a41cbed to eef83fc Sep 9, 2015
@SimonSapin
Copy link
Member Author

SimonSapin commented Sep 9, 2015

@SimonSapin SimonSapin force-pushed the SimonSapin:custom-properties++ branch 2 times, most recently from 4bcbbfb to 8cfdabb Sep 16, 2015
@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 16, 2015

Reviewed 4 of 4 files at r1, 10 of 10 files at r2, 8 of 8 files at r3, 2 of 2 files at r4.
Review status: 15 of 38 files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 16, 2015

Reviewed 2 of 2 files at r5, 4 of 4 files at r6, 2 of 2 files at r7, 7 of 7 files at r8.
Review status: 25 of 38 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


tests/wpt/mozilla/tests/css/test_variable_legal_values.html, line 1 [r7] (raw file):
Should we change this filename to be different from the original?


Comments from the review on Reviewable.io

@SimonSapin
Copy link
Member Author

SimonSapin commented Sep 16, 2015

Review status: 25 of 38 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


tests/wpt/mozilla/tests/css/test_variable_legal_values.html, line 1 [r7] (raw file):
I don’t know. It does it differently, but it still tests legal values for variables.


Comments from the review on Reviewable.io

@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 17, 2015

Reviewed 6 of 6 files at r9, 9 of 9 files at r10.
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


tests/wpt/mozilla/tests/css/test_variable_serialization_specified.html, line 44 [r10] (raw file):
Is this serialization required by the spec, or is it implementation-defined?


Comments from the review on Reviewable.io

@SimonSapin
Copy link
Member Author

SimonSapin commented Sep 17, 2015

Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


tests/wpt/mozilla/tests/css/test_variable_serialization_specified.html, line 44 [r10] (raw file):
https://drafts.csswg.org/css2/syndata.html#unexpected-eof says “User agents must close all open constructs […] at the end of the style sheet.” (In CSS Syntax Level 3 this is not as succinct, but it’s a consequence of the consume a token and consume a component value algorithms.)

In this example:

<p style="background: var(--b) green; --a: url(foo.png); --b: var(--a /* unclosed comment">

… you want green to be parsed as a color after the foo.png image, not be part of the comment or the var function.

But yeah, the css-variables spec could probably specify this a bit more.


Comments from the review on Reviewable.io

@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 17, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Sep 17, 2015

📌 Commit 7569b49 has been approved by mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Sep 17, 2015

🔒 Merge conflict

@SimonSapin SimonSapin force-pushed the SimonSapin:custom-properties++ branch from 7569b49 to feaf6f4 Sep 17, 2015
@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 17, 2015

Reviewed 2 of 2 files at r12.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks pending.


Comments from the review on Reviewable.io

@mbrubeck
Copy link
Contributor

mbrubeck commented Sep 17, 2015

@bors-servo
Copy link
Contributor

bors-servo commented Sep 17, 2015

📌 Commit feaf6f4 has been approved by mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Sep 17, 2015

Testing commit feaf6f4 with merge 1b6d4da...

bors-servo pushed a commit that referenced this pull request Sep 17, 2015
Custom properties, take 2

Support `var()` in shorthand properties, and fix various bugs.

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7555)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 17, 2015

@bors-servo bors-servo merged commit feaf6f4 into servo:master Sep 17, 2015
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@SimonSapin SimonSapin deleted the SimonSapin:custom-properties++ branch Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.