diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-text/white-space/ws-break-spaces-applies-to-012.html | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-text/white-space/ws-break-spaces-applies-to-012.html')
-rw-r--r-- | testing/web-platform/tests/css/css-text/white-space/ws-break-spaces-applies-to-012.html | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/white-space/ws-break-spaces-applies-to-012.html b/testing/web-platform/tests/css/css-text/white-space/ws-break-spaces-applies-to-012.html new file mode 100644 index 0000000000..2e708727f7 --- /dev/null +++ b/testing/web-platform/tests/css/css-text/white-space/ws-break-spaces-applies-to-012.html @@ -0,0 +1,102 @@ +<!DOCTYPE html> + + <meta charset="UTF-8"> + + <title>CSS Text Test: 'white-space: break-spaces' does not apply to 'display: table-column-group' element</title> + + <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> + <link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-property"> + <link rel="match" href="reference/ws-break-spaces-applies-to-012-ref.html"> + + <meta content="In this test, we verify that 'white-space: break-spaces' does not apply to element with 'display: table-column-group'." name="assert"> + + <!-- + + Testing of 'white-space: break-spaces': + + ws-break-spaces-applies-to-001: display: inline + + ws-break-spaces-applies-to-002: display: block + + ws-break-spaces-applies-to-003: display: list-item + + ws-break-spaces-applies-to-005: display: inline-block + + ws-break-spaces-applies-to-006: display: table + + ws-break-spaces-applies-to-007: display: inline-table + + ws-break-spaces-applies-to-008: display: table-row-group + + ws-break-spaces-applies-to-009: display: table-header-group + + ws-break-spaces-applies-to-010: display: table-footer-group + + ws-break-spaces-applies-to-011: display: table-row + + ws-break-spaces-applies-to-012: display: table-column-group + + ws-break-spaces-applies-to-013: display: table-column + + ws-break-spaces-applies-to-014: display: table-cell + + ws-break-spaces-applies-to-015: display: table-caption + + --> + + <style> + div#cell, td#reference + { + border: black solid 2px; + font-family: monospace; + font-size: 32px; + width: 4ch; + } + + div#table + { + display: table; + } + + div#test + { + display: table-column-group; + white-space: break-spaces; + } + + div#row + { + display: table-row; + } + + div#cell + { + display: table-cell; + } + + table + { + border-spacing: 0px; + margin-top: 0.5em; + } + + td#reference + { + padding: 0px; + white-space: normal; + } + </style> + + <p>Test passes if the characters inside of each black-bordered rectangles are laid out identically. + + <div id="table"> + <div id="test"></div> + <div id="row"> + <div id="cell">123 8</div> + <!-- 45678 --> + <!-- will wrap here ^ --> + </div> + </div> + + <table><tr><td id="reference">123 + 8</table> |