mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1099807 part 5 - Reftests for ruby intra-level whitespaces. r=dholbert
--HG-- extra : source : 0bbef725cf7f1abee96b98c7fe507f35115ecea9
This commit is contained in:
parent
8beb2f4821
commit
e3953dff5f
22
layout/reftests/css-ruby/intra-level-whitespace-1-ref.html
Normal file
22
layout/reftests/css-ruby/intra-level-whitespace-1-ref.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1099807 - Intra-level whitespace pairing</title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
</head>
|
||||
<body>
|
||||
<p><ruby>
|
||||
<rb>a</rb><rb pseudo><span> </span></rb><rb>b</rb>
|
||||
<rt>x</rt><rt pseudo><span> </span></rt><rt>y</rt>
|
||||
</ruby></p>
|
||||
<p><ruby>
|
||||
<rb>a</rb><rb pseudo><span> </span></rb><rb>b</rb>
|
||||
<rt>x</rt><rt pseudo></rt><rt>y</rt>
|
||||
</ruby></p>
|
||||
<p><ruby>
|
||||
<rb>a</rb><rb pseudo></rb><rb>b</rb>
|
||||
<rt>x</rt><rt pseudo><span> </span></rt><rt>y</rt>
|
||||
</ruby></p>
|
||||
</body>
|
||||
</html>
|
22
layout/reftests/css-ruby/intra-level-whitespace-1.html
Normal file
22
layout/reftests/css-ruby/intra-level-whitespace-1.html
Normal file
@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1099807 - Intra-level whitespace pairing</title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
</head>
|
||||
<body>
|
||||
<p><ruby>
|
||||
<rb>a</rb> <rb>b</rb>
|
||||
<rt>x</rt> <rt>y</rt>
|
||||
</ruby></p>
|
||||
<p><ruby>
|
||||
<rb>a</rb> <rb>b</rb>
|
||||
<rt>x</rt><rt>y</rt>
|
||||
</ruby></p>
|
||||
<p><ruby>
|
||||
<rb>a</rb><rb>b</rb>
|
||||
<rt>x</rt> <rt>y</rt>
|
||||
</ruby></p>
|
||||
</body>
|
||||
</html>
|
28
layout/reftests/css-ruby/intra-level-whitespace-2-ref.html
Normal file
28
layout/reftests/css-ruby/intra-level-whitespace-2-ref.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1099807 - Intra-level whitespace pairing</title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
<style>
|
||||
body { font-family: monospace; }
|
||||
.container { border: 1px solid blue; margin: 20px; }
|
||||
</style>
|
||||
<style id="style"></style>
|
||||
</head>
|
||||
<body>
|
||||
<span id="ref1">12345</span> <span id="ref2">12345 67890</span>
|
||||
<div class="container"><ruby><rb>12345</rb> <rb>67890</rb><rt>09876</rt><rt>54321</rt></ruby></div>
|
||||
<div class="container"><ruby><rb>12345</rb><rb>67890</rb><rt>09876</rt> <rt>54321</rt></ruby></div>
|
||||
<div class="container"><ruby><rb>12345</rb> <rb>67890</rb><rt>09876</rt> <rt>54321</rt></ruby></div>
|
||||
<script type="text/javascript">
|
||||
var ref2 = document.getElementById('ref2');
|
||||
var style = document.getElementById('style');
|
||||
var width2 = ref2.getBoundingClientRect().width + 'px';
|
||||
// This is the same as the script in the corresponding
|
||||
// testcase, except that here we skip the intermediate
|
||||
// size and jump straight to the final size.
|
||||
style.textContent = '.container { width: ' + width2 + '; }';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
33
layout/reftests/css-ruby/intra-level-whitespace-2.html
Normal file
33
layout/reftests/css-ruby/intra-level-whitespace-2.html
Normal file
@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1099807 - Intra-level whitespace pairing</title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
<style>
|
||||
body { font-family: monospace; }
|
||||
.container { border: 1px solid blue; margin: 20px; }
|
||||
</style>
|
||||
<style id="style"></style>
|
||||
</head>
|
||||
<body>
|
||||
<span id="ref1">12345</span> <span id="ref2">12345 67890</span>
|
||||
<div class="container"><ruby><rb>12345</rb> <rb>67890</rb><rt>09876</rt><rt>54321</rt></ruby></div>
|
||||
<div class="container"><ruby><rb>12345</rb><rb>67890</rb><rt>09876</rt> <rt>54321</rt></ruby></div>
|
||||
<div class="container"><ruby><rb>12345</rb> <rb>67890</rb><rt>09876</rt> <rt>54321</rt></ruby></div>
|
||||
<script type="text/javascript">
|
||||
var ref1 = document.getElementById('ref1');
|
||||
var ref2 = document.getElementById('ref2');
|
||||
var style = document.getElementById('style');
|
||||
var width1 = ref1.getBoundingClientRect().width + 'px';
|
||||
var width2 = ref2.getBoundingClientRect().width + 'px';
|
||||
// It changes the width of the containers to test incremental
|
||||
// layout with intra-level whitespace columns being pushed and
|
||||
// pulled up across a line-break.
|
||||
style.textContent = '.container { width: ' + width1 + '; }';
|
||||
document.body.offsetHeight; // force reflow
|
||||
style.textContent = '.container { width: ' + width2 + '; }';
|
||||
document.body.offsetHeight; // force reflow
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
14
layout/reftests/css-ruby/intra-level-whitespace-3-ref.html
Normal file
14
layout/reftests/css-ruby/intra-level-whitespace-3-ref.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1099807 - Intra-level whitespace pairing</title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
</head>
|
||||
<body>
|
||||
|<ruby>
|
||||
<rbc><rb>before</rb><rb>base</rb><rb> </rb></rbc>
|
||||
<rtc><rt> </rt><rt>text</rt><rt>after</rt></rtc>
|
||||
</ruby>|
|
||||
</body>
|
||||
</html>
|
34
layout/reftests/css-ruby/intra-level-whitespace-3.html
Normal file
34
layout/reftests/css-ruby/intra-level-whitespace-3.html
Normal file
@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 1099807 - Intra-level whitespace pairing</title>
|
||||
<link rel="stylesheet" href="common.css">
|
||||
<style>
|
||||
rbc::before {
|
||||
display: ruby-base;
|
||||
content: "before";
|
||||
}
|
||||
rbc::after {
|
||||
display: ruby-base;
|
||||
content: " ";
|
||||
}
|
||||
rtc::before {
|
||||
display: ruby-text;
|
||||
content: " ";
|
||||
}
|
||||
rtc::after {
|
||||
display: ruby-text;
|
||||
content: "after";
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- This test ensures that we don't treat all-whitespace
|
||||
::before/::after content as intra-level whitespace -->
|
||||
|<ruby>
|
||||
<rbc><rb>base</rb></rbc>
|
||||
<rtc><rt>text</rt></rtc>
|
||||
</ruby>|
|
||||
</body>
|
||||
</html>
|
@ -20,6 +20,9 @@ fuzzy-if(winWidget,35,1) == dynamic-removal-3.html dynamic-removal-3-ref.html #
|
||||
== inlinize-blocks-3.html inlinize-blocks-3-ref.html
|
||||
== inlinize-blocks-4.html inlinize-blocks-4-ref.html
|
||||
== inlinize-blocks-5.html inlinize-blocks-5-ref.html
|
||||
== intra-level-whitespace-1.html intra-level-whitespace-1-ref.html
|
||||
== intra-level-whitespace-2.html intra-level-whitespace-2-ref.html
|
||||
== intra-level-whitespace-3.html intra-level-whitespace-3-ref.html
|
||||
== justification-1.html justification-1-ref.html
|
||||
== justification-2.html justification-2-ref.html
|
||||
== line-height-1.html line-height-1-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user