mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: check precedence between min-width and max-width</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/CSS21/visudet.html#min-max-widths" />
|
||||
<meta name="assert" content="Test that the used value of 'width' is resolved properly." />
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
.tooltip {
|
||||
height: 68px;
|
||||
position: relative;
|
||||
max-width: 200px;
|
||||
min-width: 260px;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
#outer {
|
||||
background-color: blue;
|
||||
position: absolute;
|
||||
height: 136px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="outer">
|
||||
<div id="inner" class="tooltip" role="tooltip"></div>
|
||||
</div>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(document.querySelector("#outer")).width, '260px');
|
||||
}, "When used value is resolved, min-width should win over max-width");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue