Fix inheritance.sub.html WPT to work on Servo (#31534)

This commit is contained in:
Azhar Ismagulova 2024-03-08 10:13:39 +00:00 committed by GitHub
parent 0748579803
commit a5a0e1cb3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 29 deletions

View file

@ -1,21 +1,6 @@
[inheritance.sub.html]
[Inheritance of CSS Backgrounds and Borders properties]
expected: FAIL
[Property background-position has initial value 0% 0%]
expected: FAIL
[Property background-position does not inherit]
expected: FAIL
[Property border-bottom-width has initial value undefined]
expected: FAIL
[Property border-left-width has initial value undefined]
expected: FAIL
[Property border-right-width has initial value undefined]
expected: FAIL
[Property border-top-width has initial value undefined]
expected: FAIL

View file

@ -522299,7 +522299,7 @@
]
],
"inheritance.sub.html": [
"01bb8422991ee48da525087d5462c380c5eb8b84",
"8af2dada5217ccf1b59620ab400afba052ff460f",
[
null,
{}

View file

@ -1,12 +0,0 @@
[inheritance.sub.html]
[Property border-bottom-width has initial value undefined]
expected: FAIL
[Property border-left-width has initial value undefined]
expected: FAIL
[Property border-right-width has initial value undefined]
expected: FAIL
[Property border-top-width has initial value undefined]
expected: FAIL

View file

@ -31,7 +31,7 @@
</style>
<script>
const transparentColor = 'rgba(0, 0, 0, 0)'; // https://www.w3.org/TR/css-color-3/#transparent
const mediumWidth = getComputedStyle(document.getElementById('reference')).columnRuleWidth; // e.g. 3px
const mediumWidth = '3px'; // https://www.w3.org/TR/css-backgrounds-3/#valdef-line-width-medium
const currentColor = 'rgb(2, 3, 4)';
container.style.color = currentColor;