forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rendering tests for the <search> element
See whatwg/html#7320
- Loading branch information
1 parent
3137350
commit 52f4b1d
Showing
2 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
html/rendering/non-replaced-elements/flow-content-0/search-styles-iso-8859-8.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!doctype html> | ||
<meta charset="ISO-8859-8"> | ||
<title>default styles for the search element, ISO-8859-8</title> | ||
<meta name="viewport" content="width=device-width"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/html/rendering/support/test-ua-stylesheet.js"></script> | ||
<style> | ||
/* Specify this bogus namespace, so the rules in this stylesheet only apply to the `fakeClone`d elements in #refs, not the HTML elements in #tests. */ | ||
@namespace url(urn:not-html); | ||
|
||
address, blockquote, center, dialog, div, figure, figcaption, footer, form, | ||
header, hr, legend, listing, main, p, plaintext, pre, search, xmp { | ||
display: block; | ||
} | ||
|
||
address, blockquote, center, div, figure, figcaption, footer, form, header, hr, | ||
legend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2, | ||
h3, h4, h5, h6, hgroup, nav, section, search, table, caption, colgroup, col, | ||
thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, bdi, output, | ||
[dir=ltr i], [dir=rtl i], [dir=auto i], * /* only apply to the bogus namespace */ { | ||
unicode-bidi: bidi-override; | ||
} | ||
|
||
</style> | ||
|
||
<div id="log"></div> | ||
|
||
<div id="tests"> | ||
<search></search> | ||
</div> | ||
|
||
<div id="refs"></div> | ||
|
||
<script> | ||
test(() => { | ||
assert_equals(document.characterSet, "ISO-8859-8") | ||
}, "Verify document.characterSet is ISO-8859-8"); | ||
|
||
const props = [ | ||
'display', | ||
'margin-top', | ||
'margin-right', | ||
'margin-bottom', | ||
'margin-left', | ||
'padding-top', | ||
'padding-right', | ||
'padding-bottom', | ||
'padding-left', | ||
'unicode-bidi', | ||
]; | ||
runUAStyleTests(props); | ||
|
||
</script> |
49 changes: 49 additions & 0 deletions
49
html/rendering/non-replaced-elements/flow-content-0/search-styles.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!doctype html> | ||
<title>default styles for the search element</title> | ||
<meta name="viewport" content="width=device-width"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/html/rendering/support/test-ua-stylesheet.js"></script> | ||
<style> | ||
/* Specify this bogus namespace, so the rules in this stylesheet only apply to the `fakeClone`d elements in #refs, not the HTML elements in #tests. */ | ||
@namespace url(urn:not-html); | ||
|
||
address, blockquote, center, dialog, div, figure, figcaption, footer, form, | ||
header, hr, legend, listing, main, p, plaintext, pre, search, xmp { | ||
display: block; | ||
} | ||
|
||
address, blockquote, center, div, figure, figcaption, footer, form, header, hr, | ||
legend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2, | ||
h3, h4, h5, h6, hgroup, nav, section, search, table, caption, colgroup, col, | ||
thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, bdi, output, | ||
[dir=ltr i], [dir=rtl i], [dir=auto i] { | ||
unicode-bidi: isolate; | ||
} | ||
|
||
</style> | ||
|
||
<div id="log"></div> | ||
|
||
<div id="tests"> | ||
<search></search> | ||
</div> | ||
|
||
<div id="refs"></div> | ||
|
||
<script> | ||
const props = [ | ||
'display', | ||
'margin-top', | ||
'margin-right', | ||
'margin-bottom', | ||
'margin-left', | ||
'padding-top', | ||
'padding-right', | ||
'padding-bottom', | ||
'padding-left', | ||
'unicode-bidi', | ||
]; | ||
runUAStyleTests(props); | ||
|
||
</script> |