Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Reference tests for display:contents #1129

Merged
merged 4 commits into from Oct 5, 2016
Merged

Reference tests for display:contents #1129

merged 4 commits into from Oct 5, 2016

Conversation

ghost
Copy link

@ghost ghost commented Sep 19, 2016

It was not clear to me from the spec what the expected result of applying display:contents to replaced elements is. The added test for replace contents matches what Gecko implemented.


This change is Reviewable

@syncbot
Copy link
Collaborator

syncbot commented Sep 19, 2016

Automatic validation checks of commit 2c3cd00 discovered the following problems:

In css-display-3/display-contents-td-001-ref.html:

  • No author specified.

In css-display-3/display-contents-replaced-001-ref.html:

  • No author specified.

In css-display-3/display-contents-block-001-ref.html:

  • No author specified.

In css-display-3/display-contents-first-line-001-ref.html:

  • No author specified.

In css-display-3/display-contents-inline-001-ref.html:

  • No author specified.

In css-display-3/display-contents-tr-001-ref.html:

  • No author specified.

In css-display-3/display-contents-first-letter-001-ref.html:

  • No author specified.

In css-display-3/display-contents-before-after-001-ref.html:

  • No author specified.

@syncbot
Copy link
Collaborator

syncbot commented Sep 19, 2016

Automatic validation checks of commit b901323 passed.

<link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com">
<p>You should see the word PASS without extra spacing below.</p>
<table cellpadding="0">
<td>PASS</td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add <tr>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

</style>
<p>You should see the word PASS without extra spacing below.</p>
<table>
<td>P</td><td>A</td><td>S</td><td>S</td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add <tr>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

<link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com">
<p>You should see the word PASS below.</p>
<table cellpadding="0" cellspacing="0">
<td>PASS</td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add <tr>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

<title>CSS Reftest Reference</title>
<link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com">
<p>You should see the word PASS below.</p>
PASS
Copy link
Member

@zcorpan zcorpan Sep 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share reference file more? The first-line and first-letter ones are identical, at least, and most of the others that say "PASS" could be adjusted to be identical and share ref I think.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've re-organized a bit to do this. I split the margin-collapsing through display:contents into a separate test (block-002)

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Display: display:contents and ::first-line</title>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This test seems to fail in Gecko, though that seems like a bug in Gecko. Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1305951 )

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

<link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents">
<link rel="match" href="display-contents-td-001-ref.html">
<style>
td { display: contents }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add more padding so it's very clear when it fails

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@syncbot
Copy link
Collaborator

syncbot commented Sep 30, 2016

Automatic validation checks of commit 810299c passed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants