mirror of
https://github.com/servo/servo
synced 2026-05-02 20:32:02 +02:00
Update CSS tests to revision 0698c2aa9ead844b6d7d10eafb096cb1118e13ef
This commit is contained in:
@@ -34,19 +34,19 @@
|
||||
/*
|
||||
|
||||
1in : top
|
||||
+
|
||||
+
|
||||
auto (to solve): margin-top
|
||||
+
|
||||
+
|
||||
0 : border-top-width
|
||||
+
|
||||
+
|
||||
0 : padding-top
|
||||
+
|
||||
+
|
||||
auto (to solve) : height (may be constrained to use 0.5in by max-height)
|
||||
+
|
||||
0 : padding-bottom
|
||||
+
|
||||
+
|
||||
0 : border-bottom-width
|
||||
+
|
||||
+
|
||||
auto (to solve): margin-bottom
|
||||
+
|
||||
1in : bottom
|
||||
@@ -55,69 +55,69 @@
|
||||
|
||||
|
||||
"
|
||||
'top' is 'auto', 'height' and 'bottom' are not 'auto',
|
||||
then set 'auto' values for 'margin-top' and 'margin-bottom' to 0,
|
||||
'top' is 'auto', 'height' and 'bottom' are not 'auto',
|
||||
then set 'auto' values for 'margin-top' and 'margin-bottom' to 0,
|
||||
and solve for 'top'
|
||||
"
|
||||
|
||||
so this brings:
|
||||
|
||||
|
||||
1in : top
|
||||
+
|
||||
+
|
||||
0 (set): margin-top
|
||||
+
|
||||
+
|
||||
0 : border-top-width
|
||||
+
|
||||
+
|
||||
0 : padding-top
|
||||
+
|
||||
+
|
||||
1in (not constrained) : height (must be constrained to use 0.5in by max-height)
|
||||
+
|
||||
0 : padding-bottom
|
||||
+
|
||||
+
|
||||
0 : border-bottom-width
|
||||
+
|
||||
+
|
||||
0 (set): margin-bottom
|
||||
+
|
||||
1in : bottom
|
||||
=============
|
||||
3in : height of containing block
|
||||
|
||||
|
||||
So, here, we must reenter the algorithm since height is
|
||||
constrained and is no longer 'auto'.
|
||||
|
||||
|
||||
"
|
||||
If none of the three [top, height, bottom] are 'auto':
|
||||
If both 'margin-top' and 'margin-bottom' are 'auto',
|
||||
solve the equation under the extra constraint that
|
||||
If none of the three [top, height, bottom] are 'auto':
|
||||
If both 'margin-top' and 'margin-bottom' are 'auto',
|
||||
solve the equation under the extra constraint that
|
||||
the two margins get equal values.
|
||||
"
|
||||
|
||||
so this brings:
|
||||
|
||||
|
||||
1in : top
|
||||
+
|
||||
+
|
||||
auto (to solve): margin-top
|
||||
+
|
||||
+
|
||||
0 : border-top-width
|
||||
+
|
||||
+
|
||||
0 : padding-top
|
||||
+
|
||||
+
|
||||
0.5in (constrained) : height (constrained by max-height)
|
||||
+
|
||||
0 : padding-bottom
|
||||
+
|
||||
+
|
||||
0 : border-bottom-width
|
||||
+
|
||||
+
|
||||
auto (to solve): margin-bottom
|
||||
+
|
||||
1in : bottom
|
||||
=============
|
||||
3in : height of containing block
|
||||
|
||||
|
||||
So, here, margin-top must use 0.25in and margin-bottom must use 0.25in
|
||||
so that the equation remains balanced.
|
||||
|
||||
|
||||
So, here, margin-top must use 0.25in and margin-bottom must use 0.25in
|
||||
so that the equation remains balanced.
|
||||
|
||||
*/
|
||||
</style>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user