mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb/CSS: Discard unsupported style properties on pseudo-elements
Quite simply, ignore any declarations for properties we don't want, while computing a pseudo-element's style. I've imported a WPT test for this, which fails without this patch.
This commit is contained in:
parent
1108988656
commit
9e65291ebd
Notes:
github-actions[bot]
2025-03-24 09:50:54 +00:00
Author: https://github.com/AtkinsSJ
Commit: 9e65291ebd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4021
5 changed files with 46 additions and 9 deletions
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<title>::placeholder should not support 'writing-mode', 'direction', and 'text-orientation'</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#placeholder-pseudo">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-styling">
|
||||
<link rel="match" href="../../../../expected/wpt-import/css/css-pseudo/reference/placeholder-excluded-properties-ref.html">
|
||||
<style>
|
||||
.horizontal::placeholder {
|
||||
writing-mode: vertical-rl;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.vertical {
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
.vertical::placeholder {
|
||||
text-orientation: upright;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<input class="horizontal" placeholder="placeholder">
|
||||
<input class="vertical" placeholder="placeholder">
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue