forked from mirrors/gecko-dev
Automatic update from web-platform-tests [CSS] Apply style when a property is defined on ::first-line This patch enables applying style to pseudo-elements when a property is defined on ::first-line. Currently, the properties on the ::after and ::before pseudo-elements are not applied on the first-line. So, we support kPseudoIdFirstLineInherited for the ::before/::after elements. Bug: 862423, 892983 Change-Id: I9474eece66921b8073091459cc254d5d1e27a9cf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2517339 Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Jaeyong Bae <jdragon.bae@gmail.com> Cr-Commit-Position: refs/heads/master@{#828638} -- wpt-commits: 22f3408425d7182ba5800276b0b87c46d491bb5b wpt-pr: 26532
15 lines
425 B
HTML
15 lines
425 B
HTML
<!DOCTYPE html>
|
|
<title>inline block ::before styles should apply inside ::first-line</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#generated-content">
|
|
<link rel="match" href="first-line-with-inline-block-before-ref.html">
|
|
<style>
|
|
#target::first-line {
|
|
color: red;
|
|
}
|
|
#target::before {
|
|
content: "green";
|
|
color: green;
|
|
display: inline-block;
|
|
}
|
|
</style>
|
|
<div id="target">red</div>
|