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

New tests for CSS2 corresponding to the changes introduced by CSS 2.2 #1139

Closed
wants to merge 30 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d78c641
Tests for two errata for CSS 2.1.
bert-github Apr 7, 2016
f2c1de4
Merge remote-tracking branch 'upstream/master'
bert-github Apr 13, 2016
3ca3e12
Signs (+ or -) may precede numbers, but wihout intervening space or c…
bert-github Apr 13, 2016
4a13010
Added test for computed height in presence of min-height and max-height
bert-github Oct 26, 2016
b7db41d
Testing that overflow applies to elements that establish a formatting…
bert-github Oct 26, 2016
2ce0160
Testing escapes in URI tokens
bert-github Oct 26, 2016
0bd20ab
testing control characters in identifiers
bert-github Oct 26, 2016
3e18256
Testing that BOM overrides a UTF charset
bert-github Oct 26, 2016
b3c4cf4
testing height inherited as a percentage
bert-github Oct 26, 2016
ccde56c
Testing scientific notation
bert-github Oct 26, 2016
f1c22da
Testing that an element creates an inline formatting context.
bert-github Oct 26, 2016
c90c4c4
Select container by ID
bert-github Oct 26, 2016
65d5964
Just changing file permission bits
bert-github Oct 26, 2016
76f0e94
testing that fixex positioning makes a stacking context.
bert-github Oct 26, 2016
ef03ae1
Testing parsing errors involving the incorrect start of a declaration.
bert-github Oct 26, 2016
356c677
Corrected metadata.
bert-github Oct 26, 2016
e7be31f
Merge https://github.com/w3c/csswg-test
bert-github Oct 26, 2016
9352871
Removed help/match/assert tags that should not be in Reference Files
bert-github Oct 27, 2016
e98d808
Fixes in response to Geoffrey Sneddon's review, see https://github.co…
bert-github Nov 7, 2016
d031e72
Fixes in response to Geoffrey Sneddon's review, see https://github.co…
bert-github Nov 7, 2016
54e287a
Merge https://github.com/w3c/csswg-test
bert-github Nov 7, 2016
8aff98c
Point to /TR/CSS22 instead of /TR/CSS2
bert-github Dec 5, 2016
8f4f309
Point to /TR/CSS22 instead of /TR/CSS2
bert-github Dec 5, 2016
0701f4b
Point to /TR/CSS22 instead of /TR/CSS2
bert-github Dec 5, 2016
4eb0ef9
Point to /TR/CSS22 instead of /TR/CSS2
bert-github Dec 5, 2016
112e7cb
Point to /TR/CSS22 instead of /TR/CSS2
bert-github Dec 5, 2016
a272e01
Point to /TR/CSS22 instead of /TR/CSS2
bert-github Dec 5, 2016
e1798ef
Removed link headers that should not be in reference files.
bert-github Dec 5, 2016
7a4c19c
Merge https://github.com/w3c/csswg-test
bert-github Dec 5, 2016
15fb17d
Added an extra rel=help link, to the Changes section of CSS 2.2
bert-github Dec 7, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions css21/visudet/height-percentage-004.xht
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS test: inherited percentage height</title>

<link rel="help" href="http://www.w3.org/TR/CSS22/visudet.html#the-height-property" title="10.5 Content height: the 'height' property" />

Choose a reason for hiding this comment

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

Minor: We should probably ensure (and I haven't checked in the CSSOM or equivalent) that the computed statement is true. This is testing the overall layout, but not the computed value that is returned, at first glance I'm not seeing one. But maybe @gsnedders or @SimonSapin know of one.

<meta name="assert" content="If the resulting height is smaller than 'min-height', the rules above are applied again, but this time using the value of 'min-height' as the computed value for 'height'. Note: These steps do not affect the real computed value of 'height'." />
<link rel="match" href="height-percentage-004-ref.xht" />
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't exist in this commit (though it's added later in c90c4c42cc8fef3587897ba32eb90d35ef0d82fa) if you care about having a clean history (it certainly makes reviewing easier!)

<link rel="author" title="Bert Bos" href="mailto:bert@w3.org" />

<meta name="flags" content="" />

<style type="text/css">
p {margin-right: 7em}
div {height: 100%; background: red}
div div {position: absolute; top: 0; right: 0; background: lightblue;
Copy link
Contributor

Choose a reason for hiding this comment

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

lightblue isn't a colour in 2.2, suggest aqua instead.

height: inherit}
</style>
</head>

<body>
<p>Test passes if the light blue box ("Block A") is the full height
of the viewport and there is no red.</p>

<div>
<div>
Block A
</div>
</div>
</body>
</html>