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

[css-grid] Add more tests for grid item containing block #1019

Merged
merged 4 commits into from
Feb 18, 2016

Conversation

tomalec
Copy link

@tomalec tomalec commented Jan 19, 2016

More tests for grid item sizing started at #1012

  • track sizes in %
  • track sizes in fr
  • track sizes in fr, within absolute positioned grid

@mrego, I'm not sure whether last one fits here, maybe it should go to tests for flex size calculation, or even for more complex, non-direct-spec tests folder?
I thought, it would be nice to have it, as current Chrome stable failed on it (IE, Firefox, and Canary passes it)

Review on Reviewable

 - track sizes in %
 - track sizes in fr
 - track sizes in fr, within absolute positioned grid
@syncbot
Copy link
Collaborator

syncbot commented Jan 19, 2016

Automatic validation checks of commit 2351ca1 passed.

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Test: Grid item sizing</title>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could change a little bit the title:
"Grid item sizing in a positioned grid container"

@mrego
Copy link
Member

mrego commented Jan 20, 2016

Thanks for the tests, they look really nice. I just have a few comments on the last one.

I'm fine with that test in this folder. It could be also in grid-definition.

But it happens with more tests, that are not easy to determine the right folder.

For more complex tests, I think we can use the root css-grid-1 folder.

Make sure test fails in browsers that does not support CSS Grid at all.
w3c#1019
@syncbot
Copy link
Collaborator

syncbot commented Jan 20, 2016

Automatic validation checks of commit f47ba57 passed.

@tomalec
Copy link
Author

tomalec commented Jan 20, 2016

Is it better now?

<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="grid">
<div id="test-item">
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Maybe call it test-item-overlapping-green.

@mrego
Copy link
Member

mrego commented Jan 21, 2016

Sorry but I think it's still not 100% right.

@mrego mrego added this to the css-grid-1_dev milestone Feb 12, 2016
@mrego
Copy link
Member

mrego commented Feb 12, 2016

@tomalec could you please take a look to my last comments so we can merge the tests? Thanks :)

Make sure test shows red in browsers that does not support CSS Grid at all.
w3c#1019
@syncbot
Copy link
Collaborator

syncbot commented Feb 15, 2016

Automatic validation checks of commit d72c4d2 passed.

@tomalec
Copy link
Author

tomalec commented Feb 15, 2016

Sorry, that it took that long.
What about now?

@syncbot
Copy link
Collaborator

syncbot commented Feb 15, 2016

Automatic validation checks of commit 32b3e1c passed.

mrego added a commit that referenced this pull request Feb 18, 2016
[css-grid] Add more tests for grid item containing block
@mrego mrego merged commit 0398d79 into w3c:master Feb 18, 2016
@mrego
Copy link
Member

mrego commented Feb 18, 2016

LGTM.

@tomalec no worries. Thank you very much!

CssBuildBot added a commit to jgraham/css-test-built that referenced this pull request Feb 18, 2016
Make sure test fails in browsers that does not support CSS Grid at all.
w3c/csswg-test#1019

Build from revision f47ba578bf0bb91743b67fc172c1b9a9e6e85297
CssBuildBot added a commit to jgraham/css-test-built that referenced this pull request Feb 18, 2016
Make sure test shows red in browsers that does not support CSS Grid at all.
w3c/csswg-test#1019

Build from revision d72c4d2b1375171899eb42e3436182e5a7d1dbb5
CssBuildBot added a commit to jgraham/css-test-built that referenced this pull request Feb 18, 2016
…ts flexible tracks

w3c/csswg-test#1019

Build from revision 32b3e1cafbe27313761cb963d7f60f8a054c5cff
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants