mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Implement basic support for display: inline-block.
This still needs a lot of work, but it covers the basic cases and improves wikipedia while passing all existing tests. Tweak reftest to deal with linux/travis black background.
This commit is contained in:
parent
20cde10e12
commit
98624c9576
11 changed files with 350 additions and 35 deletions
28
tests/ref/inline_block_baseline_a.html
Normal file
28
tests/ref/inline_block_baseline_a.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: 'ahem';
|
||||
src: url(fonts/ahem/ahem.ttf);
|
||||
}
|
||||
body {
|
||||
font-family: 'ahem';
|
||||
font-size: 400px;
|
||||
line-height: 1;
|
||||
margin: 0;
|
||||
}
|
||||
.test {
|
||||
color: green;
|
||||
display: inline-block;
|
||||
font-size: 300px;
|
||||
}
|
||||
.cdef {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cdef">X<span class="test">X</span></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue