mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:17:46 +00:00
LibWeb: Resolve effective overflow-x and overflow-y according to spec
Implements following rule from CSS Overflow Module Level 3: "The visible/clip values of overflow compute to auto/hidden (respectively) if one of overflow-x or overflow-y is neither visible nor clip."
This commit is contained in:
parent
b6292a2d7d
commit
623ad94582
6 changed files with 74 additions and 0 deletions
19
Tests/LibWeb/Ref/overflow-hidden-7.html
Normal file
19
Tests/LibWeb/Ref/overflow-hidden-7.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="reference/overflow-hidden-7-ref.html" />
|
||||
<style>
|
||||
.box {
|
||||
overflow-y: hidden;
|
||||
overflow-x: visible;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.inner {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background-color: darkblue;
|
||||
}
|
||||
</style>
|
||||
<div class="box">
|
||||
<div class="inner"></div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue