Skip to content

Commit

Permalink
Bug 1877927 [wpt PR 44346] - html: Tests for field-sizing, a=testonly
Browse files Browse the repository at this point in the history
Automatic update from web-platform-tests
html: Tests for field-sizing (#44346)

This includes tests to confirm size/cols/rows are not presentational hints.

Issue: whatwg/html#6807
--

wpt-commits: df6595ec7e75fdf8fb524a039c32a030fc1075e9
wpt-pr: 44346

UltraBlame original commit: 8e4feaecb790a7e698dd0c2e84cd6d8386c6b13b
  • Loading branch information
marco-c committed Feb 16, 2024
1 parent 1e197ac commit 130cd94
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,26 @@
"
>
<
input
id
=
"
computedNone
"
style
=
"
display
:
none
"
size
=
"
17
"
>
<
script
>
test
Expand Down Expand Up @@ -404,11 +424,52 @@
attribute
value
affects
layout
-
dependent
computed
style
'
)
;
test
(
(
)
=
>
{
const
computedString
=
getComputedStyle
(
computedNone
)
.
width
;
assert_equals
(
computedString
'
auto
'
)
;
}
'
Size
attribute
value
is
not
a
presentational
hint
'
)
;
<
/
script
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,35 @@
id
=
"
computedNone
"
style
=
"
display
:
none
"
cols
=
"
17
"
rows
=
"
7
"
>
<
/
textarea
>
<
textarea
id
=
"
cols0
"
cols
Expand Down Expand Up @@ -611,11 +640,63 @@
attribute
values
affect
layout
-
dependent
computed
style
'
)
;
test
(
(
)
=
>
{
const
computedNoneStyle
=
getComputedStyle
(
computedNone
)
;
assert_equals
(
computedNoneStyle
.
width
'
auto
'
)
;
assert_equals
(
computedNoneStyle
.
height
'
auto
'
)
;
}
'
Cols
/
rows
attribute
values
are
not
presentational
hints
'
)
;
<
/
script
Expand Down

0 comments on commit 130cd94

Please sign in to comment.