mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
LibWeb: Resolve outline CSS property before paint commands recording
Refactor to resolve paint-only properties before painting, aiming to stop using layout nodes during recording of painting commands. Also adds a test, as we have not had any for outlines yet.
This commit is contained in:
parent
f19b17e089
commit
95d91a37d2
7 changed files with 64 additions and 11 deletions
11
Tests/LibWeb/Ref/outlines.html
Normal file
11
Tests/LibWeb/Ref/outlines.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="reference/outlines-ref.html" />
|
||||
<style>
|
||||
.outline {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
outline: 5px solid black;
|
||||
}
|
||||
</style>
|
||||
<div class="outline">hello from paintable box</div>
|
||||
<p><span class="outline">hello from inline paintable</span></p>
|
12
Tests/LibWeb/Ref/reference/outlines-ref.html
Normal file
12
Tests/LibWeb/Ref/reference/outlines-ref.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="reference/outlines-ref.html" />
|
||||
<style>
|
||||
.border {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 5px solid black;
|
||||
margin: -5px;
|
||||
}
|
||||
</style>
|
||||
<div class="border">hello from paintable box</div>
|
||||
<p><span class="border">hello from inline paintable</span></p>
|
Loading…
Add table
Add a link
Reference in a new issue