Skip to content

Test box-shadow serialization - #9519

Merged
gsnedders merged 2 commits into
web-platform-tests:masterfrom
csnardi:box-shadow-serialization
Apr 10, 2018
Merged

gsnedders merged 2 commits into
web-platform-tests:masterfrom
csnardi:box-shadow-serialization

Conversation

@csnardi

@csnardi csnardi commented Feb 14, 2018 •

Copy link
Copy Markdown
Member

Following w3c/csswg-drafts#2305, the canonical serialization for box-shadow was changed from inset? && <length>{2,4} && <color>? to <color>? && <length>{2,4} && inset?. Convert an existing box-shadow text into a testharness.js test in order to test serialization as well.

I added parsing-testcommon.js as a copy of https://github.com/w3c/web-platform-tests/blob/master/css/css-transforms/parsing/resources/parsing-testcommon.js (this should probably be moved into a css/resources directory), and also renamed the file as it seems the testharness reporting does not play nicely with XHTML (it had no styling).

@csnardi

csnardi commented Feb 14, 2018

Copy link
Copy Markdown
Member Author

@fantasai Since you made the edits and originally wrote this test, could you take a look?

Following w3c/csswg-drafts#2305, the canonical serialization for box-shadow was changed from inset? && <length>{2,4} && <color>? to <color>? && <length>{2,4} && inset?. Convert an existing box-shadow text into a testharness.js test in order to test serialization as well.
@csnardi
csnardi force-pushed the box-shadow-serialization branch from b5e246e to 8e9f916 Compare February 14, 2018 19:25
@ghost

ghost commented Feb 14, 2018

Copy link
Copy Markdown

Build PENDING

Started: None
Finished: None

View more information about this build on:

@fantasai

fantasai commented Apr 9, 2018

Copy link
Copy Markdown
Contributor

I defer to @gsnedders on this one.

@gsnedders

Copy link
Copy Markdown
Member

also renamed the file as it seems the testharness reporting does not play nicely with XHTML (it had no styling)

Hmm, that's odd; it should definitely work. http://w3c-test.org/css/cssom-view/media-query-list-interface.xht for example looks fine here? And having copied and renamed your file it works too once I add in the optional tags?

Otherwise this LGTM.

@csnardi

csnardi commented Apr 10, 2018

Copy link
Copy Markdown
Member Author

@gsnedders Huh, I probably just messed up something then. Should I change this back to XHTML, or leave it as-is?

@gsnedders
gsnedders merged commit 5a93530 into web-platform-tests:master Apr 10, 2018
@gsnedders

Copy link
Copy Markdown
Member

@csnardi No need; not sure why I didn't merge before?

@csnardi
csnardi deleted the box-shadow-serialization branch April 11, 2018 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants